From 5c30a24b51538c8a0656977caeeced94277aa5b8 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 4 Jul 2012 22:15:48 +0300 Subject: Add option to items.xml to set max floor item pixel offset. --- src/resources/itemdb.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/resources/itemdb.cpp') diff --git a/src/resources/itemdb.cpp b/src/resources/itemdb.cpp index cf05a28f0..38aa6d958 100644 --- a/src/resources/itemdb.cpp +++ b/src/resources/itemdb.cpp @@ -210,7 +210,8 @@ void ItemDB::load() std::string attackAction = XML::getProperty(node, "attack-action", ""); std::string drawBefore = XML::getProperty(node, "drawBefore", ""); std::string drawAfter = XML::getProperty(node, "drawAfter", ""); -// std::string removeSprite = XML::getProperty(node, "removeSprite", ""); + int maxFloorOffset = XML::getIntProperty( + node, "maxFloorOffset", 32, 0, 32); std::string colors; if (serverVersion >= 1) { @@ -307,6 +308,7 @@ void ItemDB::load() itemInfo->setDrawAfter(-1, parseSpriteName(drawAfter)); itemInfo->setDrawPriority(-1, drawPriority); itemInfo->setColorsList(colors); + itemInfo->setMaxFloorOffset(maxFloorOffset); std::string effect; for (size_t i = 0; i < sizeof(fields) / sizeof(fields[0]); ++ i) -- cgit v1.2.3-70-g09d2