diff options
author | Andrei Karas <akaras@inbox.ru> | 2017-11-08 23:40:50 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2017-11-08 23:40:50 +0300 |
commit | 80792e881942a1cdbc10050177df888bbad44a9e (patch) | |
tree | 2477945c0a6d3bc50c46fd9aeb9d52d87d5b52d1 /src/resources/db | |
parent | 7ca06be4b1a8dab21d21ddbab078ef7fed8cd1f8 (diff) | |
download | manaverse-80792e881942a1cdbc10050177df888bbad44a9e.tar.gz manaverse-80792e881942a1cdbc10050177df888bbad44a9e.tar.bz2 manaverse-80792e881942a1cdbc10050177df888bbad44a9e.tar.xz manaverse-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.cpp | 3 |
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) |