summaryrefslogtreecommitdiff
path: root/src/resources
diff options
context:
space:
mode:
Diffstat (limited to 'src/resources')
-rw-r--r--src/resources/itemdb.cpp5
-rw-r--r--src/resources/spritedef.h1
2 files changed, 6 insertions, 0 deletions
diff --git a/src/resources/itemdb.cpp b/src/resources/itemdb.cpp
index e2775c8e8..826912b33 100644
--- a/src/resources/itemdb.cpp
+++ b/src/resources/itemdb.cpp
@@ -199,6 +199,7 @@ void ItemDB::load()
std::string name = XML::getProperty(node, "name", "");
std::string image = XML::getProperty(node, "image", "");
+ std::string floor = XML::getProperty(node, "floor", "");
std::string description = XML::getProperty(node, "description", "");
std::string attackAction = XML::getProperty(node, "attack-action", "");
std::string drawBefore = XML::getProperty(node, "drawBefore", "");
@@ -218,6 +219,10 @@ void ItemDB::load()
SpriteDisplay display;
display.image = image;
+ if (floor != "")
+ display.floor = floor;
+ else
+ display.floor = image;
ItemInfo *itemInfo = new ItemInfo;
itemInfo->setId(id);
diff --git a/src/resources/spritedef.h b/src/resources/spritedef.h
index 84582c779..5ab4bcc2b 100644
--- a/src/resources/spritedef.h
+++ b/src/resources/spritedef.h
@@ -51,6 +51,7 @@ struct SpriteReference
struct SpriteDisplay
{
std::string image;
+ std::string floor;
std::list<SpriteReference*> sprites;
std::list<std::string> particles;
};