Jump to content

Elin:Code Analysis/Combat: Difference between revisions

Line 212: Line 212:
| TO HIT = TO HIT + 25 + sqrt([attacker's two handed skill] * 2)
| TO HIT = TO HIT + 25 + sqrt([attacker's two handed skill] * 2)
|-
|-
| Attack is Dual Wield
| Attack is Dual Wield ^
| TO HIT = TO HIT * 100 / (115 * 15 * (2000 / (20 + [attacker's DualWield skill])[Clamped to 0-100]))
| TO HIT(DW) = TO HIT * 100 / (115 + Slot# * 15 + Slot# * (2000/(20+ attacker's dual wield skill)) [Clamped to 1-100]
|-
|-
| Attacker is Blind
| Attacker is Blind
Line 227: Line 227:
| EVASION + 20%
| EVASION + 20%
|}
|}
^ Where Slot# represents the main hand / off hand and any indexed hand after two. Only the (2000/(20 + attacker's dual wielding skill)) is clamped between 1-100. This means optimally the best dual wielding scenario occurs when you have 1980 dual wielding.


Now the system has the TO HIT and EVASION values, it uses these to calculate if an attack was a hit, miss, or crit in this order
Now the system has the TO HIT and EVASION values, it uses these to calculate if an attack was a hit, miss, or crit in this order
Line 336: Line 338:
Penetration is calculated at '''(Martial Arts/10)+5''', with a minimum of '''5%''' and a maximum of '''20% + Penetration.'''
Penetration is calculated at '''(Martial Arts/10)+5''', with a minimum of '''5%''' and a maximum of '''20% + Penetration.'''


If weilding Martial Art Weapon:
If wielding Martial Art Weapon:


Damage Bonus is your empty hand Damage Bonus + '''Weapon's''' '''Damage Bonus'''
Damage Bonus is your empty hand Damage Bonus + '''Weapon's''' '''Damage Bonus'''
21

edits