Skip to content

Commit

Permalink
v1.8.9 - Quickloot deaktiviert wenn gerade mit MOB interagiert wird
Browse files Browse the repository at this point in the history
  • Loading branch information
kirides committed Feb 9, 2021
1 parent 57353bc commit 2d278f0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion Ninja/Quickloot/CONTENT/Quickloot/INIT.D
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const string NINJA_QUICKLOOT_VERSION = "Quickloot v1.8.8";
const string NINJA_QUICKLOOT_VERSION = "Quickloot v1.8.9";

FUNC VOID _Ninja_Quickloot_NPC_CollectFocusVob (var C_NPC slfInstance, var int force) {
var int npcPtr; npcPtr = MEM_InstToPtr(slfInstance);
Expand Down Expand Up @@ -194,6 +194,8 @@ func void _Ninja_Quickloot_TakeOrStealItem(var C_NPC taker, var int itemPtr) {
};

func int _Ninja_Quickloot_NpcHasValidBodyState(var oCNPC npc) {
if (npc.interactMob) { return 0; };

return (((npc.bitfield[4] & BS_STAND) > 0)
|| ((npc.bitfield[4] & BS_WALK) > 0)
|| ((npc.bitfield[4] & BS_SNEAK) > 0)
Expand Down
2 changes: 1 addition & 1 deletion Quickloot.vm
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[BEGINVDF]
Comment=Rightclick to Quickloot! (v1.8.8, G1+G2)
Comment=Rightclick to Quickloot! (v1.8.9, G1+G2)
BaseDir=.\
VDFName=.\Quickloot.vdf
[FILES]
Expand Down

0 comments on commit 2d278f0

Please sign in to comment.