summaryrefslogtreecommitdiff
path: root/wiki
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2019-10-09 19:09:37 -0300
committerJesusaves <cpntb1@ymail.com>2019-10-09 19:09:37 -0300
commit5e7afdbdd96c9f8c4bcfb9c668f51780db9fc2d8 (patch)
tree1c723ced3830ff3a0f6b7bbfa4f6e2b3ce3957bc /wiki
parent084033fba65cd45bf7cf3c25d7eef66b6f0ff777 (diff)
downloadtools-5e7afdbdd96c9f8c4bcfb9c668f51780db9fc2d8.tar.gz
tools-5e7afdbdd96c9f8c4bcfb9c668f51780db9fc2d8.tar.bz2
tools-5e7afdbdd96c9f8c4bcfb9c668f51780db9fc2d8.tar.xz
tools-5e7afdbdd96c9f8c4bcfb9c668f51780db9fc2d8.zip
Rewrite attack range damage reduction formula
Diffstat (limited to 'wiki')
-rwxr-xr-xwiki/redesign.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/wiki/redesign.py b/wiki/redesign.py
index d09f562..3d3f7ff 100755
--- a/wiki/redesign.py
+++ b/wiki/redesign.py
@@ -612,8 +612,12 @@ def mb_stgen(mb):
# Fórmula da HPTable: 400+(x*50)
# MASTERED
- lat=(lv*40+lv**1.2+lv*(st/100))/ar
- hat=(lv*40+lv**1.5+lv*(st/100))/ar
+ lat=(lv*40+lv**1.2+lv*(st/100))
+ hat=(lv*40+lv**1.5+lv*(st/100))
+ if (ar > 1):
+ lat*=max(0.5, 1.0-((ar-1)/10.0))
+ hat*=max(0.5, 1.0-((ar-1)/10.0))
+
# Casos especiais
if mb.boss:
lat*=1.2