summaryrefslogtreecommitdiff
path: root/src/resources/db
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/db
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/db')
-rw-r--r--src/resources/db/npcdb.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/resources/db/npcdb.cpp b/src/resources/db/npcdb.cpp
index 26034de12..3432ed4b5 100644
--- a/src/resources/db/npcdb.cpp
+++ b/src/resources/db/npcdb.cpp
@@ -118,6 +118,9 @@ void NPCDB::loadXmlFile(const std::string &fileName,
currentInfo->setAllowDelete(XML::getBoolProperty(npcNode,
"allowDelete", true));
+ currentInfo->setAllowEquipment(XML::getBoolProperty(npcNode,
+ "allowEquipment", false));
+
const std::string currency = XML::getProperty(npcNode,
"currency", "default");
if (UnitsDb::existsCurrency(currency) == false)