summaryrefslogtreecommitdiff
path: root/src/map/mob.c
diff options
context:
space:
mode:
authorshennetsind <shennetsind@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-01-04 18:05:41 +0000
committershennetsind <shennetsind@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-01-04 18:05:41 +0000
commitca8e7b4d7621570ee770dd6114eab9986f13accd (patch)
treefe0ed86847b3f9264d352d666fb1e6dcf3a54b6b /src/map/mob.c
parent38fc07331284161a3833c295dfa3633d3eecfa66 (diff)
downloadhercules-ca8e7b4d7621570ee770dd6114eab9986f13accd.tar.gz
hercules-ca8e7b4d7621570ee770dd6114eab9986f13accd.tar.bz2
hercules-ca8e7b4d7621570ee770dd6114eab9986f13accd.tar.xz
hercules-ca8e7b4d7621570ee770dd6114eab9986f13accd.zip
Re-designed /db/ folder structure as previously discussed.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@15390 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/mob.c')
-rw-r--r--src/map/mob.c27
1 files changed, 16 insertions, 11 deletions
diff --git a/src/map/mob.c b/src/map/mob.c
index d76f1eac6..427b0ae5f 100644
--- a/src/map/mob.c
+++ b/src/map/mob.c
@@ -3679,11 +3679,13 @@ static bool mob_readdb_sub(char* fields[], int columns, int current)
static void mob_readdb(void)
{
+ const char* filename[] = {
#if REMODE
- const char* filename[] = { "mob_db.txt", "mob_db_re.txt" , "mob_db2.txt" };
+ "re/mob_db.txt",
#else
- const char* filename[] = { "mob_db.txt" , "mob_db2.txt" };
+ "pre-re/mob_db.txt",
#endif
+ "mob_db2.txt" };
int fi;
for( fi = 0; fi < ARRAYLENGTH(filename); ++fi )
@@ -3812,9 +3814,14 @@ static int mob_read_randommonster(void)
int i,j;
const char* mobfile[] = {
- "mob_branch.txt",
+#if REMODE
+ "re/mob_branch.txt",
+ "re/mob_boss.txt",
+#else
+ "pre-re/mob_branch.txt",
+ "pre-re/mob_boss.txt",
+#endif
"mob_poring.txt",
- "mob_boss.txt",
"mob_pouch.txt"};
memset(&summon, 0, sizeof(summon));
@@ -4247,16 +4254,14 @@ static bool mob_parse_row_mobskilldb(char** str, int columns, int current)
/*==========================================
* mob_skill_db.txt reading
*------------------------------------------*/
-static void mob_readskilldb(void)
-{
- /**
- * Due to the way mob_skill_db is made entries cannot be overriden, only stacked, so this is the only case we use a full db file on renewal
- **/
+static void mob_readskilldb(void) {
+ const char* filename[] = {
#if REMODE
- const char* filename[] = { "mob_skill_db_re.txt", "mob_skill_db2.txt" };
+ "re/mob_skill_db.txt",
#else
- const char* filename[] = { "mob_skill_db.txt", "mob_skill_db2.txt" };
+ "pre-re/mob_skill_db.txt",
#endif
+ "mob_skill_db2.txt" };
int fi;
if( battle_config.mob_skill_rate == 0 )