summaryrefslogtreecommitdiff
path: root/src/resources/beinginfo.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/resources/beinginfo.h
parent7ca06be4b1a8dab21d21ddbab078ef7fed8cd1f8 (diff)
downloadmanaplus-80792e881942a1cdbc10050177df888bbad44a9e.tar.gz
manaplus-80792e881942a1cdbc10050177df888bbad44a9e.tar.bz2
manaplus-80792e881942a1cdbc10050177df888bbad44a9e.tar.xz
manaplus-80792e881942a1cdbc10050177df888bbad44a9e.zip
Add npc option for allow equipment.
New option: allowEquipment Default value: false
Diffstat (limited to 'src/resources/beinginfo.h')
-rw-r--r--src/resources/beinginfo.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/resources/beinginfo.h b/src/resources/beinginfo.h
index bd60131c8..b4139d0b4 100644
--- a/src/resources/beinginfo.h
+++ b/src/resources/beinginfo.h
@@ -320,6 +320,12 @@ class BeingInfo final
int getAllowDelete() const noexcept2 A_WARN_UNUSED
{ return static_cast<int>(mAllowDelete); }
+ void setAllowEquipment(const bool b)
+ { mAllowEquipment = b; }
+
+ bool getAllowEquipment() const noexcept2 A_WARN_UNUSED
+ { return mAllowEquipment; }
+
void setQuickActionEffectId(const int n)
{ mQuickActionEffectId = n; }
@@ -396,6 +402,7 @@ class BeingInfo final
bool mStaticMaxHP;
bool mTargetSelection;
bool mAllowDelete;
+ bool mAllowEquipment;
};
typedef std::map<BeingTypeId, BeingInfo*> BeingInfos;