From e8ec55df9173c588a774f50e71cfd2be77271166 Mon Sep 17 00:00:00 2001 From: Thorbjørn Lindeijer Date: Fri, 2 Feb 2024 22:09:41 +0100 Subject: 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 --- src/resources/settingsmanager.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/resources/settingsmanager.cpp') 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) { -- cgit v1.2.3-70-g09d2