From aefa8d6bd88e5056080f45ed89f86258f1bf81d7 Mon Sep 17 00:00:00 2001 From: shennetsind Date: Thu, 4 Jul 2013 17:22:10 -0300 Subject: Follow up b9889903e89bd4127c7503a512cfe215b9ccc740 Fixed pre-re support. Special Thanks to ossi0110 for bringing this to our attention. Signed-off-by: shennetsind --- src/map/status.c | 2 ++ src/map/status.h | 5 ++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/map/status.c b/src/map/status.c index 97e897f38..682d7410c 100644 --- a/src/map/status.c +++ b/src/map/status.c @@ -11682,10 +11682,12 @@ void status_defaults(void) { iStatus->calc_mdef = status_calc_mdef; iStatus->calc_mdef2 = status_calc_mdef2; iStatus->calc_batk = status_calc_batk; +#ifdef RENEWAL iStatus->base_matk = status_base_matk; iStatus->get_weapon_atk = status_get_weapon_atk; iStatus->get_total_mdef = status_get_total_mdef; iStatus->get_total_def = status_get_total_def; +#endif iStatus->get_matk = status_get_matk; diff --git a/src/map/status.h b/src/map/status.h index 2f65ff1b9..11a78dc9f 100644 --- a/src/map/status.h +++ b/src/map/status.h @@ -1871,11 +1871,14 @@ struct status_interface { defType (*calc_mdef) (struct block_list *bl, struct status_change *sc, int, bool); short (*calc_mdef2) (struct block_list *, struct status_change *, int, bool); unsigned short (*calc_batk) (struct block_list *, struct status_change *, int, bool); + +#ifdef RENEWAL unsigned short (*base_matk) (const struct status_data* status, int level); int (*get_weapon_atk) (struct block_list *src, struct weapon_atk *watk, int flag); int (*get_total_mdef) (struct block_list *src); int (*get_total_def) (struct block_list *src); - +#endif + int (*get_matk) (struct block_list *src, int flag); int (*readdb) (void); -- cgit v1.2.3-60-g2f50