diff options
author | Earisu <bruant.bastien@gmail.com> | 2013-07-29 07:17:59 -0700 |
---|---|---|
committer | Earisu <bruant.bastien@gmail.com> | 2013-07-29 07:17:59 -0700 |
commit | 309ffb2a4990596e86ff16fccd38fe80972ce49d (patch) | |
tree | e0e393585bc5b831a0a53ec1c8d89d7401f2ce65 /src/map/status.c | |
parent | 15a3f6a5270943af44eb82fa01203464ce396aec (diff) | |
parent | 328525e468c35e8b266b160adbf09792faa64669 (diff) | |
download | hercules-309ffb2a4990596e86ff16fccd38fe80972ce49d.tar.gz hercules-309ffb2a4990596e86ff16fccd38fe80972ce49d.tar.bz2 hercules-309ffb2a4990596e86ff16fccd38fe80972ce49d.tar.xz hercules-309ffb2a4990596e86ff16fccd38fe80972ce49d.zip |
Merge pull request #77 from Earisu/master
Added new HPM interface
Diffstat (limited to 'src/map/status.c')
-rw-r--r-- | src/map/status.c | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/src/map/status.c b/src/map/status.c index a8b61f2d6..1ea86e163 100644 --- a/src/map/status.c +++ b/src/map/status.c @@ -1242,8 +1242,8 @@ int status_damage(struct block_list *src,struct block_list *target,int hp, int s case BL_PC: pc->damage((TBL_PC*)target,src,hp,sp); break; case BL_MOB: mob_damage((TBL_MOB*)target, src, hp); break; case BL_HOM: homun->damaged((TBL_HOM*)target); break; - case BL_MER: mercenary_heal((TBL_MER*)target,hp,sp); break; - case BL_ELEM: elemental_heal((TBL_ELEM*)target,hp,sp); break; + case BL_MER: mercenary->heal((TBL_MER*)target,hp,sp); break; + case BL_ELEM: elemental->heal((TBL_ELEM*)target,hp,sp); break; } if( src && target->type == BL_PC && (((TBL_PC*)target)->disguise) > 0 ) {// stop walking when attacked in disguise to prevent walk-delay bug @@ -1267,8 +1267,8 @@ int status_damage(struct block_list *src,struct block_list *target,int hp, int s case BL_PC: flag = pc->dead((TBL_PC*)target,src); break; case BL_MOB: flag = mob_dead((TBL_MOB*)target, src, flag&4?3:0); break; case BL_HOM: flag = homun->dead((TBL_HOM*)target); break; - case BL_MER: flag = mercenary_dead((TBL_MER*)target); break; - case BL_ELEM: flag = elemental_dead((TBL_ELEM*)target); break; + case BL_MER: flag = mercenary->dead((TBL_MER*)target); break; + case BL_ELEM: flag = elemental->dead((TBL_ELEM*)target); break; default: //Unhandled case, do nothing to object. flag = 0; break; @@ -1413,8 +1413,8 @@ int status_heal(struct block_list *bl,int hp,int sp, int flag) case BL_PC: pc->heal((TBL_PC*)bl,hp,sp,flag&2?1:0); break; case BL_MOB: mob_heal((TBL_MOB*)bl,hp); break; case BL_HOM: homun->healed((TBL_HOM*)bl); break; - case BL_MER: mercenary_heal((TBL_MER*)bl,hp,sp); break; - case BL_ELEM: elemental_heal((TBL_ELEM*)bl,hp,sp); break; + case BL_MER: mercenary->heal((TBL_MER*)bl,hp,sp); break; + case BL_ELEM: elemental->heal((TBL_ELEM*)bl,hp,sp); break; } return hp+sp; @@ -6055,10 +6055,10 @@ void status_set_viewdata(struct block_list *bl, int class_) vd = npc_get_viewdata(class_); else if (homdb_checkid(class_)) vd = homun->get_viewdata(class_); - else if (merc_class(class_)) - vd = merc_get_viewdata(class_); - else if (elemental_class(class_)) - vd = elemental_get_viewdata(class_); + else if (mercenary->merc_class(class_)) + vd = mercenary->merc_get_viewdata(class_); + else if (elemental->class(class_)) + vd = elemental->get_viewdata(class_); else vd = NULL; @@ -8331,7 +8331,7 @@ int status_change_start(struct block_list* bl,enum sc_type type,int rate,int val if( pc_isfalcon(sd) ) pc->setoption(sd, sd->sc.option&~OPTION_FALCON); if( sd->status.pet_id > 0 ) pet_menu(sd, 3); if( homun_alive(sd->hd) ) homun->vaporize(sd,1); - if( sd->md ) merc_delete(sd->md,3); + if( sd->md ) mercenary->merc_delete(sd->md,3); } break; case SC__LAZINESS: |