diff options
Diffstat (limited to 'src/config')
-rw-r--r-- | src/config/const.h | 29 | ||||
-rw-r--r-- | src/config/renewal.h | 7 |
2 files changed, 7 insertions, 29 deletions
diff --git a/src/config/const.h b/src/config/const.h index 9447d85a1..d874c73ec 100644 --- a/src/config/const.h +++ b/src/config/const.h @@ -13,28 +13,6 @@ */ /** - * "Constants" - **/ -#ifdef RENEWAL_CAST - - #ifndef RENEWAL - #error RENEWAL_CAST requires RENEWAL enabled - #endif - - #define CONST_CASTRATE_SCALE RENEWAL_CAST_VMIN - /** - * Cast Rate Formula: (DEX x 2)+INT - **/ - #define CONST_CASTRATE_CALC ((status_get_dex(bl)*2)+status_get_int(bl)) -#else - #define CONST_CASTRATE_SCALE battle_config.castrate_dex_scale - /** - * Cast Rate Formula: (DEX) - **/ - #define CONST_CASTRATE_CALC (status_get_dex(bl)) -#endif - -/** * "Sane Checks" to save you from compiling with cool bugs **/ #if SECURE_NPCTIMEOUT_INTERVAL <= 0 @@ -108,6 +86,13 @@ #define MAX_CARTS 5 #endif +// Renewal variable cast time reduction +#ifdef RENEWAL_CAST + #define VARCAST_REDUCTION(val){ \ + if( (varcast_r += val) != 0 && varcast_r >= 0 ) \ + time = time * (1 - (float)min(val, 100) / 100); \ + } +#endif /** * End of File **/ diff --git a/src/config/renewal.h b/src/config/renewal.h index 33e9a995b..4713cc185 100644 --- a/src/config/renewal.h +++ b/src/config/renewal.h @@ -49,13 +49,6 @@ // leave this line to enable renewal base level modifier on skill damage (selected skills only) #define RENEWAL_LVDMG -/// renewal cast time variable cast requirement -/// -/// this is the value required for no variable cast-time with stats. -/// formula: (DEX * 2) + INT -/// default: 530 -#define RENEWAL_CAST_VMIN 530 - /// renewal enchant deadly poison algorithm /// /// leave this line to enable the renewed EDP algorithm |