diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-10-28 19:19:02 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-10-28 19:19:02 +0300 |
commit | 601607488ae529b7dfd9bd55afd0e89e42762281 (patch) | |
tree | 0006e7c0f7546452037362a10750f3f17e1924aa /src/defaults.cpp | |
parent | b29b80ccc9a22d8d4b3acf4b251bc2388b82027f (diff) | |
download | manaverse-601607488ae529b7dfd9bd55afd0e89e42762281.tar.gz manaverse-601607488ae529b7dfd9bd55afd0e89e42762281.tar.bz2 manaverse-601607488ae529b7dfd9bd55afd0e89e42762281.tar.xz manaverse-601607488ae529b7dfd9bd55afd0e89e42762281.zip |
Dehardcode default spells/commands.
Read commands from defaultcommands.xml.
Also improve a bit saving commands in spellmanager.
Diffstat (limited to 'src/defaults.cpp')
-rw-r--r-- | src/defaults.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/defaults.cpp b/src/defaults.cpp index edfd8c45d..a383c02f6 100644 --- a/src/defaults.cpp +++ b/src/defaults.cpp @@ -570,6 +570,9 @@ DefaultsData* getPathsDefaults() AddDEF("deadMessagesFile", "deadmessages.xml"); AddDEF("deadMessagesPatchFile", "deadmessages_patch.xml"); AddDEF("deadMessagesPatchDir", "deadmessages.d"); + AddDEF("defaultCommandsFile", "defaultcommands.xml"); + AddDEF("defaultcommandsPatchFile", "defaultcommands_patch.xml"); + AddDEF("defaultcommandsPatchDir", "defaultcommands.d"); AddDEF("poisonEffectName", "poison"); return configData; |