summaryrefslogtreecommitdiff
path: root/src/map/config/const.h
diff options
context:
space:
mode:
authorrud0lp20 <rud0lp20@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-06-08 12:28:14 +0000
committerrud0lp20 <rud0lp20@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-06-08 12:28:14 +0000
commitcf31daa59894d5f19f0090b824de335e56e2a06d (patch)
tree16f9d1f1e619d05af1f79f4dc6b69aa66c06ad91 /src/map/config/const.h
parent315d632e69c60d2996872c9330164133101befdf (diff)
downloadhercules-cf31daa59894d5f19f0090b824de335e56e2a06d.tar.gz
hercules-cf31daa59894d5f19f0090b824de335e56e2a06d.tar.bz2
hercules-cf31daa59894d5f19f0090b824de335e56e2a06d.tar.xz
hercules-cf31daa59894d5f19f0090b824de335e56e2a06d.zip
Follow up on r16240 update RK_CRUSHTRIKE formula and weapon break percentage.
Fixed bugreport:5953 GC_CROSSRIPPERSLASHER range is now (8 + 1 * skill level) cells. Fixed bugreport:5943 SC_GROOMY is now really remove selected mounts. Updated Guillotine cross skills formula base on re-balancing formulas... git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@16243 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/config/const.h')
-rw-r--r--src/map/config/const.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/map/config/const.h b/src/map/config/const.h
index 1287219aa..6b46a6061 100644
--- a/src/map/config/const.h
+++ b/src/map/config/const.h
@@ -84,9 +84,9 @@
/* 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_DMOD(val) \
+ if( status_get_lv(src) > 100 && val > 0 ) \
+ skillratio = skillratio * status_get_lv(src) / val;
#define RE_LVL_MDMOD(val) \
if( status_get_lv(src) > 100 && val > 0) \
md.damage = md.damage * status_get_lv(src) / val;
@@ -95,7 +95,7 @@
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_DMOD(val)
#define RE_LVL_MDMOD(val)
#define RE_LVL_TMDMOD()
#endif