StendhalRefactoringRP: Difference between revisions
Content deleted Content added
imported>Kiheru Fixed an error in melee damage formula. Updated the description to correspond better to it |
imported>Kiheru m →Melee Combat: removed surplus trailing parenthesis |
||
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.
| |||