summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-07-06 00:39:26 +0300
committerAndrei Karas <akaras@inbox.ru>2016-07-06 00:39:26 +0300
commit1260aba0fb6114cf52200dc0e5a25fd005644f7d (patch)
tree9d7a635b13ff3b59bb7aea83cebf9bfec2159211
parent4bbed18ded183c528aebdf3918d63e06b6896821 (diff)
downloadevol-hercules-1260aba0fb6114cf52200dc0e5a25fd005644f7d.tar.gz
evol-hercules-1260aba0fb6114cf52200dc0e5a25fd005644f7d.tar.bz2
evol-hercules-1260aba0fb6114cf52200dc0e5a25fd005644f7d.tar.xz
evol-hercules-1260aba0fb6114cf52200dc0e5a25fd005644f7d.zip
Remove copy/paste static method from server to plugin (eset_sc)
Now this method in server included in interfaces.
-rw-r--r--src/emap/status.c24
1 files changed, 4 insertions, 20 deletions
diff --git a/src/emap/status.c b/src/emap/status.c
index 861bbd8..99408b8 100644
--- a/src/emap/status.c
+++ b/src/emap/status.c
@@ -36,28 +36,12 @@
int class_move_speed[CLASS_COUNT];
-// copy of set_sc from map/status.c, because it's not exported
-static void eset_sc(uint16 skill_id, sc_type sc, int icon, unsigned int flag)
-{
- uint16 idx;
- if( (idx = skill->get_index(skill_id)) == 0 ) {
- ShowError("eset_sc: Unsupported skill id %d\n", skill_id);
- return;
- }
- if( sc < 0 || sc >= SC_MAX ) {
- ShowError("eset_sc: Unsupported status change id %d\n", sc);
- return;
- }
-
- status->dbs->SkillChangeTable[sc] = skill_id;
- status->dbs->IconChangeTable[sc] = icon;
- status->dbs->ChangeFlagTable[sc] |= flag;
- status->dbs->Skill2SCTable[idx] = sc;
-}
-
void eInitChangeTables(void)
{
- eset_sc(EVOL_PHYSICAL_SHIELD, (sc_type)SC_PHYSICAL_SHIELD, SI_PHYSICAL_SHIELD, SCB_DEF|SCB_DEF2|SCB_ASPD);
+ status->set_sc(EVOL_PHYSICAL_SHIELD,
+ (sc_type)SC_PHYSICAL_SHIELD,
+ SI_PHYSICAL_SHIELD,
+ SCB_DEF | SCB_DEF2 | SCB_ASPD);
}
int estatus_init_post(int retVal,