StendhalRefactoringRP: Difference between revisions
Content deleted Content added
imported>MiguelAngelBlanchLardin |
imported>MiguelAngelBlanchLardin |
||
Line 28:
==Combat==
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 how much damage the target recieved.
The formula looks like:
<pre>
risk to hit = 2 * source[ATK] - target[DEF]+ roll 1D20 - 10
if risk to hit > 0:
attacker
maxdamage = 0.8 *
defender part = 0.6 * (roll 1D100 / 100) * target[DEF]^2 + 1.5 * shield + 2 * armor + helmet + boots
damage = ((attacker part - defender part) / maxdamage) * (maxdamage/10)
</pre>
See that it is very important the ATK and DEF value, but that you can also get big improvements using weapons, armors, shields, etc...
===Range combat===
| |||