diff options
author | Thorbjørn Lindeijer <bjorn@lindeijer.nl> | 2024-02-02 22:09:41 +0100 |
---|---|---|
committer | Thorbjørn Lindeijer <bjorn@lindeijer.nl> | 2024-02-02 22:10:21 +0100 |
commit | e8ec55df9173c588a774f50e71cfd2be77271166 (patch) | |
tree | f6d2b9611ae02850f9ab47e28499e0495cafe8bf /src/resources/settingsmanager.cpp | |
parent | 83df149da22fe69787b4b543022e8a1c18555643 (diff) | |
download | mana-e8ec55df9173c588a774f50e71cfd2be77271166.tar.gz mana-e8ec55df9173c588a774f50e71cfd2be77271166.tar.bz2 mana-e8ec55df9173c588a774f50e71cfd2be77271166.tar.xz mana-e8ec55df9173c588a774f50e71cfd2be77271166.zip |
Restored support for setting monster ID offset on monsters tag
Apparently this was supported before, but support for that was lost in
bd1fdd87eed48ba3ffcc413936d6a6a60a429a97.
Fixes #46
Diffstat (limited to 'src/resources/settingsmanager.cpp')
-rw-r--r-- | src/resources/settingsmanager.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/resources/settingsmanager.cpp b/src/resources/settingsmanager.cpp index b307d565..f4a40577 100644 --- a/src/resources/settingsmanager.cpp +++ b/src/resources/settingsmanager.cpp @@ -121,6 +121,14 @@ namespace SettingsManager return false; } + if (xmlStrEqual(node->name, BAD_CAST "monsters")) + { + if (XML::hasProperty(node, "offset")) + { + MonsterDB::setMonsterIdOffset(XML::getProperty(node, "offset", 0)); + } + } + // go through every node for_each_xml_child_node(childNode, node) { |