diff options
author | Haru <haru@dotalux.com> | 2015-11-03 14:42:46 +0100 |
---|---|---|
committer | Haru <haru@dotalux.com> | 2015-11-12 00:01:31 +0100 |
commit | 556ea4c20bb7ca06adb572ccefc1986f71e6a5c0 (patch) | |
tree | 914ab8bb4dbe3f34ead24698e5ca3c587200ca17 /src/map/mob.c | |
parent | 8db74e2781bb71be6cf58d495739dcd1787428e3 (diff) | |
download | hercules-556ea4c20bb7ca06adb572ccefc1986f71e6a5c0.tar.gz hercules-556ea4c20bb7ca06adb572ccefc1986f71e6a5c0.tar.bz2 hercules-556ea4c20bb7ca06adb572ccefc1986f71e6a5c0.tar.xz hercules-556ea4c20bb7ca06adb572ccefc1986f71e6a5c0.zip |
Moved class and dir initializers to npc_create_npc
Signed-off-by: Haru <haru@dotalux.com>
Diffstat (limited to 'src/map/mob.c')
-rw-r--r-- | src/map/mob.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/map/mob.c b/src/map/mob.c index 2b519462d..c925d02ce 100644 --- a/src/map/mob.c +++ b/src/map/mob.c @@ -142,15 +142,11 @@ void mvptomb_create(struct mob_data *md, char *killer, time_t time) if ( md->tomb_nid ) mob->mvptomb_destroy(md); - nd = npc->create_npc(md->bl.m, md->bl.x, md->bl.y); + nd = npc->create_npc(md->bl.m, md->bl.x, md->bl.y, md->ud.dir, MOB_TOMB); md->tomb_nid = nd->bl.id; - nd->dir = md->ud.dir; - nd->bl.type = BL_NPC; safestrncpy(nd->name, msg_txt(856), sizeof(nd->name)); // "Tomb" - nd->class_ = 565; - nd->speed = 200; nd->subtype = TOMB; nd->u.tomb.md = md; @@ -165,7 +161,6 @@ void mvptomb_create(struct mob_data *md, char *killer, time_t time) map->addblock(&nd->bl); status->set_viewdata(&nd->bl, nd->class_); clif->spawn(&nd->bl); - } void mvptomb_destroy(struct mob_data *md) { |