StendhalRefactoringRP: Difference between revisions
Content deleted Content added
imported>Kymara No edit summary |
imported>Kiheru Fixed an error in melee damage formula. Updated the description to correspond better to it |
||
Line 52:
if risk_to_hit > 0:
max_defence = √(target[DEF] * (10 +
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;
Line 58:
level_part = 1.0 - (target[LEVEL] + 5) / (1.2 * (source[LEVEL] + 5));
damage = (8 * max_attack * random[0..1] - max_defence * random[0..1]) / max_defence);
</pre>
There's also small karma effect for both the hitting chance and damage.
See that it is very important the ATK and DEF value, but that you can also get big improvements using weapons, armors, shields, etc...
The benefits you get from
Creatures are balanced without items, and have constant item DEF of 0 and item ATK 5.
===Range Combat===
| |||