summaryrefslogtreecommitdiff
path: root/src/map/skill.c
diff options
context:
space:
mode:
authorHaru <haru@dotalux.com>2018-05-01 19:36:15 +0200
committerHaru <haru@dotalux.com>2018-05-01 19:36:15 +0200
commit5c9ae7b9559438654265e3dd9afd26f30d499fcc (patch)
tree2d842a87ecc950eec2c0223e7dcbde97acfe0a27 /src/map/skill.c
parent3f6e0922d66d7ffc6a655fbd4e8bc59736e844fb (diff)
downloadhercules-5c9ae7b9559438654265e3dd9afd26f30d499fcc.tar.gz
hercules-5c9ae7b9559438654265e3dd9afd26f30d499fcc.tar.bz2
hercules-5c9ae7b9559438654265e3dd9afd26f30d499fcc.tar.xz
hercules-5c9ae7b9559438654265e3dd9afd26f30d499fcc.zip
Replace "--ja--" and "--en--" with constants (source only)
- Use `DEFAULT_MOB_NAME` instead of a literal "--en--" - Use `DEFAULT_MOB_JNAME` instead of a literal "--ja--" Signed-off-by: Haru <haru@dotalux.com>
Diffstat (limited to 'src/map/skill.c')
-rw-r--r--src/map/skill.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/map/skill.c b/src/map/skill.c
index 15a2cfa27..1ab8ce871 100644
--- a/src/map/skill.c
+++ b/src/map/skill.c
@@ -6305,7 +6305,7 @@ int skill_castend_nodamage_id(struct block_list *src, struct block_list *bl, uin
case SA_SUMMONMONSTER:
clif->skill_nodamage(src,bl,skill_id,skill_lv,1);
if (sd != NULL)
- mob->once_spawn(sd, src->m, src->x, src->y, "--ja--", -1, 1, "", SZ_SMALL, AI_NONE);
+ mob->once_spawn(sd, src->m, src->x, src->y, DEFAULT_MOB_JNAME, -1, 1, "", SZ_SMALL, AI_NONE);
break;
case SA_LEVELUP:
clif->skill_nodamage(src,bl,skill_id,skill_lv,1);
@@ -11430,7 +11430,7 @@ int skill_castend_pos2(struct block_list* src, int x, int y, uint16 skill_id, ui
clif->skill_fail(sd,skill_id,USESKILL_FAIL_LEVEL,0);
} else {
int mob_id = skill_lv < 2 ? MOBID_BLACK_MUSHROOM + rnd()%2 : MOBID_RED_PLANT + rnd()%6;
- struct mob_data *md = mob->once_spawn_sub(src, src->m, x, y, "--ja--", mob_id, "", SZ_SMALL, AI_NONE);
+ struct mob_data *md = mob->once_spawn_sub(src, src->m, x, y, DEFAULT_MOB_JNAME, mob_id, "", SZ_SMALL, AI_NONE);
int i;
if (md == NULL)
break;