summaryrefslogtreecommitdiff
path: root/src/map/config
diff options
context:
space:
mode:
authorshennetsind <shennetsind@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-05-17 06:57:05 +0000
committershennetsind <shennetsind@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-05-17 06:57:05 +0000
commit911ca1229c6651aec3d5f44c6558f3e60098bb2c (patch)
tree48c229f80465bfe5df5a186c6072c93da3f9eb83 /src/map/config
parentb2431685db5f9f045a8d949ffbb523230501ec60 (diff)
downloadhercules-911ca1229c6651aec3d5f44c6558f3e60098bb2c.tar.gz
hercules-911ca1229c6651aec3d5f44c6558f3e60098bb2c.tar.bz2
hercules-911ca1229c6651aec3d5f44c6558f3e60098bb2c.tar.xz
hercules-911ca1229c6651aec3d5f44c6558f3e60098bb2c.zip
Updated renewal's level modifier on damage formula.
Made the formula into a set of macros for easy customization. Added a switch for this feature (due to popular demand) RENEWAL_LVDMG in renewal.h git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@16118 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/config')
-rw-r--r--src/map/config/const.h18
-rw-r--r--src/map/config/renewal.h6
2 files changed, 24 insertions, 0 deletions
diff --git a/src/map/config/const.h b/src/map/config/const.h
index 2f9560803..7acc5e522 100644
--- a/src/map/config/const.h
+++ b/src/map/config/const.h
@@ -82,6 +82,24 @@
#define MOB_HIT(mob) ( mob->lv + mob->status.agi )
#endif
+/* Renewal's dmg level modifier, used as a macro for a easy way to turn off. */
+#ifdef RENEWAL_LVDMG
+ #define RE_LVL_DMOD() \
+ if( status_get_lv(src) > 100 ) \
+ skillratio = skillratio * status_get_lv(src) / 100;
+ #define RE_LVL_MDMOD() \
+ if( status_get_lv(src) > 100 ) \
+ md.damage = md.damage * status_get_lv(src) / 150;
+ /* ranger traps special */
+ #define RE_LVL_TMDMOD() \
+ if( status_get_lv(src) > 100 ) \
+ md.damage = md.damage * 150 / 100 + md.damage * status_get_lv(src) / 100;
+#else
+ #define RE_LVL_DMOD()
+ #define RE_LVL_MDMOD()
+ #define RE_LVL_TMDMOD()
+#endif
+
/**
* End of File
**/
diff --git a/src/map/config/renewal.h b/src/map/config/renewal.h
index 790eab936..f692a197b 100644
--- a/src/map/config/renewal.h
+++ b/src/map/config/renewal.h
@@ -43,6 +43,12 @@
/// while enabled a special modified based on the difference between the player and monster level is applied
#define RENEWAL_EXP
+/// renewal level modifier on damage
+/// (disable by commenting the line)
+///
+// 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.