summaryrefslogtreecommitdiff
path: root/src/resources/monsterdb.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/resources/monsterdb.cpp')
-rw-r--r--src/resources/monsterdb.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/resources/monsterdb.cpp b/src/resources/monsterdb.cpp
index f574053a..21f15a90 100644
--- a/src/resources/monsterdb.cpp
+++ b/src/resources/monsterdb.cpp
@@ -54,6 +54,8 @@ void MonsterDB::load()
logger->error("Monster Database: Error while loading monster.xml!");
}
+ int offset = XML::getProperty(rootNode, "offset", 0);
+
//iterate <monster>s
for_each_xml_child_node(monsterNode, rootNode)
{
@@ -143,7 +145,7 @@ void MonsterDB::load()
(const char*) spriteNode->xmlChildrenNode->content);
}
}
- mMonsterInfos[XML::getProperty(monsterNode, "id", 0)] = currentInfo;
+ mMonsterInfos[XML::getProperty(monsterNode, "id", 0) + offset] = currentInfo;
}
mLoaded = true;