summaryrefslogtreecommitdiff
path: root/src/resources/itemdb.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-05-15 19:00:10 +0300
committerAndrei Karas <akaras@inbox.ru>2013-05-15 19:00:10 +0300
commit3216d6caf93ebdb24bee3d9a859ea9e562d8ff4d (patch)
tree45a6fc90339ac63f4af1c282baa5875bf3d890cb /src/resources/itemdb.cpp
parentf03dfb3f143ee10329a10d093d6d31c1ab480007 (diff)
downloadmv-3216d6caf93ebdb24bee3d9a859ea9e562d8ff4d.tar.gz
mv-3216d6caf93ebdb24bee3d9a859ea9e562d8ff4d.tar.bz2
mv-3216d6caf93ebdb24bee3d9a859ea9e562d8ff4d.tar.xz
mv-3216d6caf93ebdb24bee3d9a859ea9e562d8ff4d.zip
add item option what can prevent sell item to npc without confirmation.
Diffstat (limited to 'src/resources/itemdb.cpp')
-rw-r--r--src/resources/itemdb.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/resources/itemdb.cpp b/src/resources/itemdb.cpp
index 346ddb9de..b4ae544ba 100644
--- a/src/resources/itemdb.cpp
+++ b/src/resources/itemdb.cpp
@@ -269,6 +269,9 @@ void ItemDB::load()
itemInfo->setType(itemTypeFromString(typeStr));
itemInfo->addTag(mTags["All"]);
itemInfo->setPet(pet);
+ itemInfo->setProtected(XML::getBoolProperty(
+ node, "sellProtected", false));
+
switch (itemInfo->getType())
{
case ITEM_USABLE: