diff options
Diffstat (limited to 'src/map/npc.c')
-rw-r--r-- | src/map/npc.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/map/npc.c b/src/map/npc.c index 038c2804c..92d36d9c4 100644 --- a/src/map/npc.c +++ b/src/map/npc.c @@ -2175,7 +2175,17 @@ int npc_parse_mob (char *w1, char *w2, char *w3, char *w4) return 1;
}
+ //Use db names instead of the spawn file ones.
+ if(battle_config.override_mob_names==1)
+ strcpy(mob.name,"--en--");
+ else if (battle_config.override_mob_names==2)
+ strcpy(mob.name,"--ja--");
+ else
+ strncpy(data->name,mob_db(data->class_)->jname,NAME_LENGTH-1);
+
+
strncpy(mob.name, mobname, NAME_LENGTH-1);
+
if (!mob_parse_dataset(&mob)) //Verify dataset.
return 1;
|