summaryrefslogtreecommitdiff
path: root/src/config
diff options
context:
space:
mode:
authorrud0lp20 <rud0lp20@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-08-18 07:52:11 +0000
committerrud0lp20 <rud0lp20@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-08-18 07:52:11 +0000
commit611350370ef3ecf8fc939005df37a14b55a8f69c (patch)
tree1da4119c85685bed98adb79cad4cbcd144ca0ba8 /src/config
parent15e7b5f4c91f2bd50fdaee6edcaa19ef849d3875 (diff)
downloadhercules-611350370ef3ecf8fc939005df37a14b55a8f69c.tar.gz
hercules-611350370ef3ecf8fc939005df37a14b55a8f69c.tar.bz2
hercules-611350370ef3ecf8fc939005df37a14b55a8f69c.tar.xz
hercules-611350370ef3ecf8fc939005df37a14b55a8f69c.zip
Implemented Renewal Casting System.
Fixed bugreport:2018 where CH_PALMSTRIKE deals damage to hidden targets. Fixed bugreport:6473, bugreport:6325 SC_DEADLYINFECT should now spread status ailments properly. Fixed bugreport:5541, bugreport:6179, bugreport:6281 where self buff skill is transfer to targets when doing a combo. Updated AC_VULTURE where in renewal it doesn't show the hit bonus anymore in the status window. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@16661 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/config')
-rw-r--r--src/config/const.h29
-rw-r--r--src/config/renewal.h7
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