summaryrefslogtreecommitdiff
path: root/src/map/status.c
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-11-09 15:26:00 +0300
committerAndrei Karas <akaras@inbox.ru>2014-11-10 22:44:01 +0300
commitcfd535c7f5b442ae3d96a192a2dbe8650cae99af (patch)
tree158feeb6ecbfcffdc766ec8ac1b2917383c744d3 /src/map/status.c
parent3742a813233edca6a59cc027209b8cd6bfd6b70b (diff)
downloadhercules-cfd535c7f5b442ae3d96a192a2dbe8650cae99af.tar.gz
hercules-cfd535c7f5b442ae3d96a192a2dbe8650cae99af.tar.bz2
hercules-cfd535c7f5b442ae3d96a192a2dbe8650cae99af.tar.xz
hercules-cfd535c7f5b442ae3d96a192a2dbe8650cae99af.zip
Fix interfaces methods usage.
In some places was used direct methods.
Diffstat (limited to 'src/map/status.c')
-rw-r--r--src/map/status.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/map/status.c b/src/map/status.c
index 66f7db3fa..4b31b9486 100644
--- a/src/map/status.c
+++ b/src/map/status.c
@@ -6390,7 +6390,7 @@ int status_get_sc_def(struct block_list *src, struct block_list *bl, enum sc_typ
sd = BL_CAST(BL_PC,bl);
st = status->get_status_data(bl);
- bst = status_get_base_status(bl);
+ bst = status->get_base_status(bl);
sc = status->get_sc(bl);
if( sc && !sc->count )
sc = NULL;
@@ -10985,7 +10985,7 @@ int status_change_timer(int tid, int64 tick, int id, intptr_t data) {
case SC__REPRODUCE:
if( --(sce->val4) >= 0 ) {
- if( !status_charge(bl, 0, 9 - (1 + sce->val1) / 2) )
+ if( !status->charge(bl, 0, 9 - (1 + sce->val1) / 2) )
break;
sc_timer_next(1000 + tick, status->change_timer, bl->id, data);
return 0;
@@ -11056,10 +11056,10 @@ int status_change_timer(int tid, int64 tick, int id, intptr_t data) {
case SC_SIRCLEOFNATURE:
if( --(sce->val4) >= 0 ) {
- if( !status_charge(bl,0,sce->val3) )
+ if( !status->charge(bl,0,sce->val3) )
break;
status->heal(bl, sce->val2, 0, 1);
- sc_timer_next(1000 + tick, status_change_timer, bl->id, data);
+ sc_timer_next(1000 + tick, status->change_timer, bl->id, data);
return 0;
}
break;
@@ -11075,7 +11075,7 @@ int status_change_timer(int tid, int64 tick, int id, intptr_t data) {
case SC_SATURDAY_NIGHT_FEVER:
if( --(sce->val3) >= 0 ) {
- if( !status_charge(bl, st->max_hp * 1 / 100, st->max_sp * 1 / 100) )
+ if( !status->charge(bl, st->max_hp * 1 / 100, st->max_sp * 1 / 100) )
break;
sc_timer_next(3000+tick, status->change_timer, bl->id, data);
return 0;
@@ -11084,7 +11084,7 @@ int status_change_timer(int tid, int64 tick, int id, intptr_t data) {
case SC_MELODYOFSINK:
if( --(sce->val4) >= 0 ) {
- status_charge(bl, 0, st->max_sp * ( 2 * sce->val1 + 2 * sce->val2 ) / 100);
+ status->charge(bl, 0, st->max_sp * ( 2 * sce->val1 + 2 * sce->val2 ) / 100);
sc_timer_next(1000+tick, status->change_timer, bl->id, data);
return 0;
}
@@ -11167,7 +11167,7 @@ int status_change_timer(int tid, int64 tick, int id, intptr_t data) {
if( st->sp <= sp )
status_change_end(bl,SC_STEALTHFIELD_MASTER,INVALID_TIMER);
- if( !status_charge(bl,0,sp) )
+ if( !status->charge(bl,0,sp) )
break;
if( !sc->data[SC_STEALTHFIELD_MASTER] )