summaryrefslogtreecommitdiff
path: root/src/being/being.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-11-08 23:40:50 +0300
committerAndrei Karas <akaras@inbox.ru>2017-11-08 23:40:50 +0300
commit80792e881942a1cdbc10050177df888bbad44a9e (patch)
tree2477945c0a6d3bc50c46fd9aeb9d52d87d5b52d1 /src/being/being.h
parent7ca06be4b1a8dab21d21ddbab078ef7fed8cd1f8 (diff)
downloadplus-80792e881942a1cdbc10050177df888bbad44a9e.tar.gz
plus-80792e881942a1cdbc10050177df888bbad44a9e.tar.bz2
plus-80792e881942a1cdbc10050177df888bbad44a9e.tar.xz
plus-80792e881942a1cdbc10050177df888bbad44a9e.zip
Add npc option for allow equipment.
New option: allowEquipment Default value: false
Diffstat (limited to 'src/being/being.h')
-rw-r--r--src/being/being.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/being/being.h b/src/being/being.h
index 775c875f9..feb686740 100644
--- a/src/being/being.h
+++ b/src/being/being.h
@@ -1097,6 +1097,9 @@ class Being notfinal : public ActorSprite,
void fixDirectionOffsets(int &offsetX,
int &offsetY) const;
+ bool getAllowNpcEquipment() const noexcept2 A_WARN_UNUSED
+ { return mAllowNpcEquipment; }
+
static Being *createBeing(const BeingId id,
const ActorTypeT type,
const BeingTypeId subtype,
@@ -1377,6 +1380,7 @@ class Being notfinal : public ActorSprite,
bool mInactive;
bool mNeedPosUpdate;
bool mBotAi;
+ bool mAllowNpcEquipment;
};
extern std::list<BeingCacheEntry*> beingInfoCache;