summaryrefslogtreecommitdiff
path: root/src/config
diff options
context:
space:
mode:
authormalufett <malufett.eat.my.binaries@gmail.com>2014-12-28 03:00:19 +0800
committermalufett <malufett.eat.my.binaries@gmail.com>2014-12-28 03:00:19 +0800
commit990c25267aeefe4d792bf941a366a6603afcb42b (patch)
tree2d905365e695a4b97c95ea41c145500f1d9cff37 /src/config
parent2a95225bcca4114b496556156ab277ebcb5563ec (diff)
downloadhercules-990c25267aeefe4d792bf941a366a6603afcb42b.tar.gz
hercules-990c25267aeefe4d792bf941a366a6603afcb42b.tar.bz2
hercules-990c25267aeefe4d792bf941a366a6603afcb42b.tar.xz
hercules-990c25267aeefe4d792bf941a366a6603afcb42b.zip
Fixed offensive skill formulas of KG/OB to official.
Signed-off-by: malufett <malufett.eat.my.binaries@gmail.com>
Diffstat (limited to 'src/config')
-rw-r--r--src/config/const.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/config/const.h b/src/config/const.h
index 7b5ed5506..e10d2ad2a 100644
--- a/src/config/const.h
+++ b/src/config/const.h
@@ -73,17 +73,16 @@
/* Renewal's dmg level modifier, used as a macro for a easy way to turn off. */
#ifdef RENEWAL_LVDMG
#define RE_LVL_DMOD(val) do { \
- if( status->get_lv(src) > 100 && (val) > 0 ) \
+ if( (val) > 0 ) \
skillratio = skillratio * status->get_lv(src) / (val); \
} while(0)
#define RE_LVL_MDMOD(val) do { \
- if( status->get_lv(src) > 100 && (val) > 0) \
+ if ( (val) > 0 ) \
md.damage = md.damage * status->get_lv(src) / (val); \
} while(0)
/* ranger traps special */
#define RE_LVL_TMDMOD() do { \
- if( status->get_lv(src) > 100 ) \
- md.damage = md.damage * 150 / 100 + md.damage * status->get_lv(src) / 100; \
+ md.damage = md.damage * 150 / 100 + md.damage * status->get_lv(src) / 100; \
} while(0)
#else
#define RE_LVL_DMOD(val)