StendhalRefactoringRP: Difference between revisions
Jump to navigation
Jump to search
Content deleted Content added
imported>Kiheru Melee Combat; the new formula |
imported>Kiheru |
||
| Line 46: | Line 46: | ||
if risk_to_hit > 0: |
if risk_to_hit > 0: |
||
max_defence = √(target[DEF] * (10 + source[ARMOR])) * (10 + 0.03 * (target[LEVEL] + 5)) |
max_defence = √(target[DEF] * (10 + source[ARMOR])) * (10 + 0.03 * (target[LEVEL] + 5)); |
||
max_attack = source[ATK] * (1 + source[WEAPON])* (1 + 0.03 * (source[LEVEL + 5)) * speed_effect |
max_attack = source[ATK] * (1 + source[WEAPON])* (1 + 0.03 * (source[LEVEL + 5)) * speed_effect; |
||
where: speed_effect = 1.0 - 0.5 * speed_part * level_part^2; |
where: speed_effect = 1.0 - 0.5 * speed_part * level_part^2; |
||
where: speed_part = 8 / (source[ATTACK_RATE] + 3.0); |
where: speed_part = 8 / (source[ATTACK_RATE] + 3.0); |
||