summaryrefslogtreecommitdiff
path: root/src/map/mob.c
diff options
context:
space:
mode:
authormalufett <malufett.eat.my.binaries@gmail.com>2014-12-28 17:42:33 +0800
committermalufett <malufett.eat.my.binaries@gmail.com>2014-12-28 17:42:33 +0800
commit23a88d62725074068be31b54e4f406051dbc93a4 (patch)
tree29a43f56841619887542e13ed86e999d109de068 /src/map/mob.c
parentda6a2bb9f242101dcb1e2addd130ac879a63bc67 (diff)
downloadhercules-23a88d62725074068be31b54e4f406051dbc93a4.tar.gz
hercules-23a88d62725074068be31b54e4f406051dbc93a4.tar.bz2
hercules-23a88d62725074068be31b54e4f406051dbc93a4.tar.xz
hercules-23a88d62725074068be31b54e4f406051dbc93a4.zip
Split mob sql database into mob_db and mob_db_re.
-http://hercules.ws/board/topic/8084-separate-the-mob-db-and-mob-db-re/
Diffstat (limited to 'src/map/mob.c')
-rw-r--r--src/map/mob.c16
1 files changed, 14 insertions, 2 deletions
diff --git a/src/map/mob.c b/src/map/mob.c
index 8fe3e3cef..4db8cb2f6 100644
--- a/src/map/mob.c
+++ b/src/map/mob.c
@@ -3942,7 +3942,13 @@ void mob_readdb(void) {
* mob_db table reading
*------------------------------------------*/
int mob_read_sqldb(void) {
- const char* mob_db_name[] = { map->mob_db_db, map->mob_db2_db };
+ const char* mob_db_name[] = {
+#ifdef RENEWAL
+ map->mob_db_re_db
+#else
+ map->mob_db_db
+#endif
+ , map->mob_db2_db };
int fi;
for( fi = 0; fi < ARRAYLENGTH(mob_db_name); ++fi ) {
@@ -4515,7 +4521,13 @@ void mob_readskilldb(void) {
* seems to work though...
*/
int mob_read_sqlskilldb(void) {
- const char* mob_skill_db_name[] = { map->mob_skill_db_db, map->mob_skill_db2_db };
+ const char* mob_skill_db_name[] = {
+#ifdef RENEWAL
+ map->mob_skill_db_re_db
+#else
+ map->mob_skill_db_db
+#endif
+ , map->mob_skill_db2_db };
int fi;
if( battle_config.mob_skill_rate == 0 ) {