summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorshennetsind <ind@henn.et>2013-07-04 17:22:10 -0300
committershennetsind <ind@henn.et>2013-07-04 17:22:10 -0300
commitaefa8d6bd88e5056080f45ed89f86258f1bf81d7 (patch)
treeba5bf8c00683a99e475bae8b0429987b7c7a5396 /src
parentebb63d99223043559ff9f9e60d02133fa8ba6878 (diff)
downloadhercules-aefa8d6bd88e5056080f45ed89f86258f1bf81d7.tar.gz
hercules-aefa8d6bd88e5056080f45ed89f86258f1bf81d7.tar.bz2
hercules-aefa8d6bd88e5056080f45ed89f86258f1bf81d7.tar.xz
hercules-aefa8d6bd88e5056080f45ed89f86258f1bf81d7.zip
Follow up b9889903e89bd4127c7503a512cfe215b9ccc740
Fixed pre-re support. Special Thanks to ossi0110 for bringing this to our attention. Signed-off-by: shennetsind <ind@henn.et>
Diffstat (limited to 'src')
-rw-r--r--src/map/status.c2
-rw-r--r--src/map/status.h5
2 files changed, 6 insertions, 1 deletions
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);