summaryrefslogtreecommitdiff
path: root/src/client.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-06-01 22:33:00 +0300
committerAndrei Karas <akaras@inbox.ru>2016-06-02 00:06:13 +0300
commitd37ddaddbfb7e936fbe1994273d4d4ac58358a26 (patch)
tree1bf51f37ca8ee6889ab3fabfab8af54cd7a35aee /src/client.cpp
parentff53770b5a3d4c9911ffba93f9a62697dd5b6d81 (diff)
downloadplus-d37ddaddbfb7e936fbe1994273d4d4ac58358a26.tar.gz
plus-d37ddaddbfb7e936fbe1994273d4d4ac58358a26.tar.bz2
plus-d37ddaddbfb7e936fbe1994273d4d4ac58358a26.tar.xz
plus-d37ddaddbfb7e936fbe1994273d4d4ac58358a26.zip
Add support for configurable item stat fields.
This fields defined in itemfields.xml Can be used in items.xml All default fields removed from ManaPlus. If need use it, please add fields to itemfields.xml in client data.
Diffstat (limited to 'src/client.cpp')
-rw-r--r--src/client.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/client.cpp b/src/client.cpp
index a9f75bcba..075c6335e 100644
--- a/src/client.cpp
+++ b/src/client.cpp
@@ -109,6 +109,7 @@
#include "resources/db/homunculusdb.h"
#include "resources/db/horsedb.h"
#include "resources/db/itemdb.h"
+#include "resources/db/itemfielddb.h"
#include "resources/db/sounddb.h"
#include "resources/db/mapdb.h"
#include "resources/db/mercenarydb.h"
@@ -586,6 +587,7 @@ void Client::gameClear()
SoundDB::unload();
EmoteDB::unload();
ItemDB::unload();
+ ItemFieldDb::unload();
#ifdef EATHENA_SUPPORT
const ServerTypeT type = Net::getNetworkType();
if (type == ServerType::EATHENA ||
@@ -1310,6 +1312,7 @@ int Client::gameExec()
ColorDB::load();
SoundDB::load();
MapDB::load();
+ ItemFieldDb::load();
ItemDB::load();
Being::load();
#ifdef EATHENA_SUPPORT