diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-10-13 23:39:29 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-10-13 23:39:29 +0300 |
commit | 4ba35c456af28479b547f2ab2c0bd02c40c292f6 (patch) | |
tree | 007ba5942a6e9a62ee64f9b85e21cc5780eceae4 /src/resources/db/npcdb.cpp | |
parent | 2c302cc6cb54881fbe354cc9d5a9997788f63e56 (diff) | |
download | manaplus-4ba35c456af28479b547f2ab2c0bd02c40c292f6.tar.gz manaplus-4ba35c456af28479b547f2ab2c0bd02c40c292f6.tar.bz2 manaplus-4ba35c456af28479b547f2ab2c0bd02c40c292f6.tar.xz manaplus-4ba35c456af28479b547f2ab2c0bd02c40c292f6.zip |
Add npc attribute what allow or prevent removing npc after out of sight.
New npc attribute: allowDelete
Diffstat (limited to 'src/resources/db/npcdb.cpp')
-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 8b47d33b4..1d2cf4899 100644 --- a/src/resources/db/npcdb.cpp +++ b/src/resources/db/npcdb.cpp @@ -109,6 +109,9 @@ void NPCDB::loadXmlFile(const std::string &fileName) currentInfo->setAvatarId(fromInt(XML::getProperty( npcNode, "avatar", 0), BeingTypeId)); + currentInfo->setAllowDelete(XML::getBoolProperty(npcNode, + "allowDelete", true)); + SpriteDisplay display; for_each_xml_child_node(spriteNode, npcNode) { |