From d37ddaddbfb7e936fbe1994273d4d4ac58358a26 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 1 Jun 2016 22:33:00 +0300 Subject: 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. --- src/client.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/client.cpp') 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 -- cgit v1.2.3-70-g09d2