summaryrefslogtreecommitdiff
path: root/src/resources/db/npcdb.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-01-06 14:47:39 +0300
committerAndrei Karas <akaras@inbox.ru>2014-01-06 14:47:39 +0300
commitb7ee14cadb1e5675f7e36565aec1fe39e55ccc34 (patch)
treed92328178a64cd15891802ced4a0db5a0a751e11 /src/resources/db/npcdb.cpp
parent3cb15a8f777bd9907d8dc4ba57774c762ec1f67f (diff)
downloadManaVerse-b7ee14cadb1e5675f7e36565aec1fe39e55ccc34.tar.gz
ManaVerse-b7ee14cadb1e5675f7e36565aec1fe39e55ccc34.tar.bz2
ManaVerse-b7ee14cadb1e5675f7e36565aec1fe39e55ccc34.tar.xz
ManaVerse-b7ee14cadb1e5675f7e36565aec1fe39e55ccc34.zip
add ability to inlude config parts from subdirs for items, monsters, npcs.
Diffstat (limited to 'src/resources/db/npcdb.cpp')
-rw-r--r--src/resources/db/npcdb.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/resources/db/npcdb.cpp b/src/resources/db/npcdb.cpp
index 7c983160c..c8b29c9da 100644
--- a/src/resources/db/npcdb.cpp
+++ b/src/resources/db/npcdb.cpp
@@ -49,6 +49,13 @@ void NPCDB::load()
loadXmlFile(paths.getStringValue("npcsFile"));
loadXmlFile(paths.getStringValue("npcsPatchFile"));
+
+ StringVect list;
+ BeingCommon::getIncludeFiles(paths.getStringValue(
+ "npcsPatchDir"), list);
+ FOR_EACH (StringVectCIter, it, list)
+ loadXmlFile(*it);
+
mLoaded = true;
}