summaryrefslogtreecommitdiff
path: root/src/map/itemdb.c
diff options
context:
space:
mode:
authorMatheus Macabu <mkbu95@gmail.com>2013-07-04 17:36:16 -0300
committerMatheus Macabu <mkbu95@gmail.com>2013-07-04 17:36:16 -0300
commit0f2899cf48bd4a324e92dc33dc2bc28d1edcdae3 (patch)
tree28a722e533422e2d05b662f533d311a88b4edb6a /src/map/itemdb.c
parent5b1d3c5ebcbeab9730f8f4603c769c090ca4c8d1 (diff)
downloadhercules-0f2899cf48bd4a324e92dc33dc2bc28d1edcdae3.tar.gz
hercules-0f2899cf48bd4a324e92dc33dc2bc28d1edcdae3.tar.bz2
hercules-0f2899cf48bd4a324e92dc33dc2bc28d1edcdae3.tar.xz
hercules-0f2899cf48bd4a324e92dc33dc2bc28d1edcdae3.zip
Split use_sql_db into the three available: item_db, mob_db, mob_skill_db.
Signed-off-by: Matheus Macabu <mkbu95@gmail.com>
Diffstat (limited to 'src/map/itemdb.c')
-rw-r--r--src/map/itemdb.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/map/itemdb.c b/src/map/itemdb.c
index 4e0477b75..7b6fd0ed7 100644
--- a/src/map/itemdb.c
+++ b/src/map/itemdb.c
@@ -1346,7 +1346,7 @@ int itemdb_parse_dbrow(char** str, const char* source, int line, int scriptopt)
id->weight = atoi(str[6]);
#ifdef RENEWAL
- if( iMap->db_use_sqldbs ) {
+ if( iMap->db_use_sql_item_db ) {
id->atk = atoi(str[7]);
id->matk = atoi(str[8]);
offset += 1;
@@ -1376,7 +1376,7 @@ int itemdb_parse_dbrow(char** str, const char* source, int line, int scriptopt)
id->wlv = cap_value(atoi(str[15+offset]), REFINE_TYPE_ARMOR, REFINE_TYPE_MAX);
#ifdef RENEWAL
- if( iMap->db_use_sqldbs ) {
+ if( iMap->db_use_sql_item_db ) {
id->elv = atoi(str[16+offset]);
id->elvmax = atoi(str[17+offset]);
offset += 1;
@@ -1639,7 +1639,7 @@ int itemdb_uid_load() {
* read all item-related databases
*------------------------------------*/
static void itemdb_read(void) {
- if (iMap->db_use_sqldbs)
+ if (iMap->db_use_sql_item_db)
itemdb_read_sqldb();
else
itemdb_readdb();