From c292b398588764d8d2674b12142630119a06786e Mon Sep 17 00:00:00 2001 From: Haru Date: Fri, 8 May 2015 15:28:56 +0200 Subject: Added support for RENEWAL constants in scripts Supported constants: - RENEWAL (globally enabled renewal mode) - RENEWAL_CAST (renewal cast time) - RENEWAL_DROP (renewal drop rate algorithms) - RENEWAL_EXP (renewal exp rate algorithms) - RENEWAL_LVDMG (renewal level modifier on damage) - RENEWAL_EDP (renewal enchant deadly poison algorithm) - RENEWAL_ASPD (renewal ASPD) Signed-off-by: Haru --- src/map/script.c | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) diff --git a/src/map/script.c b/src/map/script.c index 51bb344fe..0bef11160 100644 --- a/src/map/script.c +++ b/src/map/script.c @@ -20372,6 +20372,43 @@ void script_hardcoded_constants(void) { script->set_constant("BG_AREA",BG_AREA,false); script->set_constant("BG_AREA_WOS",BG_AREA_WOS,false); script->set_constant("BG_QUEUE",BG_QUEUE,false); + + /* Renewal */ +#ifdef RENEWAL + script->set_constant("RENEWAL", 1, false); +#else + script->set_constant("RENEWAL", 0, false); +#endif +#ifdef RENEWAL_CAST + script->set_constant("RENEWAL_CAST", 1, false); +#else + script->set_constant("RENEWAL_CAST", 0, false); +#endif +#ifdef RENEWAL_DROP + script->set_constant("RENEWAL_DROP", 1, false); +#else + script->set_constant("RENEWAL_DROP", 0, false); +#endif +#ifdef RENEWAL_EXP + script->set_constant("RENEWAL_EXP", 1, false); +#else + script->set_constant("RENEWAL_EXP", 0, false); +#endif +#ifdef RENEWAL_LVDMG + script->set_constant("RENEWAL_LVDMG", 1, false); +#else + script->set_constant("RENEWAL_LVDMG", 0, false); +#endif +#ifdef RENEWAL_EDP + script->set_constant("RENEWAL_EDP", 1, false); +#else + script->set_constant("RENEWAL_EDP", 0, false); +#endif +#ifdef RENEWAL_ASPD + script->set_constant("RENEWAL_ASPD", 1, false); +#else + script->set_constant("RENEWAL_ASPD", 0, false); +#endif } /** -- cgit v1.2.3-60-g2f50