StendhalRefactoringRP: Difference between revisions
Content deleted Content added
imported>Neoneurone No edit summary |
imported>Kiheru Melee Combat; the new formula |
||
Line 39:
Combat right now works as follows:
# We compute the ''risk'' to hit the target, using their ATK and DEF attributes-
# If risk>0 then we compute if the target blocks the attack, or how much damage the target
The formula looks like:
<pre>
risk_to_hit =
if risk_to_hit > 0:
where: speed_effect = 1.0 - 0.5 * speed_part * level_part^2;
where: speed_part = 8 / (source[ATTACK_RATE] + 3.0);
level_part = 1.0 - (target[LEVEL] + 5) / (1.2 * (source[LEVEL] + 5));
</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
The formula is nicer than previous one because it gives a good range of damages and it adds lineal damage increase for using weapons and lineal damage absortion for using armors. Now the point is to give values to monsters that will always lack of equipment ( to simplify everything ).
| |||