StendhalRefactoringRP: Difference between revisions

Jump to navigation Jump to search
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: Line 58:
level_part = 1.0 - (target[LEVEL] + 5) / (1.2 * (source[LEVEL] + 5));
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);
damage = (8 * max_attack * random[0..1] - max_defence * random[0..1]) / max_defence;
</pre>
</pre>
There's also small karma effect for both the hitting chance and damage.
There's also small karma effect for both the hitting chance and damage.