From 3216d6caf93ebdb24bee3d9a859ea9e562d8ff4d Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 15 May 2013 19:00:10 +0300 Subject: add item option what can prevent sell item to npc without confirmation. --- src/resources/itemdb.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/resources/itemdb.cpp') 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: -- cgit v1.2.3-60-g2f50