StendhalRefactoringRP: Difference between revisions
Jump to navigation
Jump to search
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: | Line 52: | ||
if risk_to_hit > 0: |
if risk_to_hit > 0: |
||
max_defence = √(target[DEF] * (10 + |
max_defence = √(target[DEF] * (10 + target[ARMOR])) * (10 + 0.03 * (target[LEVEL] + 5)); |
||
max_attack = source[ATK] * (1 + source[WEAPON])* (1 + 0.03 * (source[LEVEL + 5)) * speed_effect; |
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; |
where: speed_effect = 1.0 - 0.5 * speed_part * level_part^2; |
||
| 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. |
||
See that it is very important the ATK and DEF value, but that you can also get big improvements using weapons, armors, shields, etc... |
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 |
The benefits you get from your items and skills are directly proportional to your level. The <code>speed_part</code> is responsible for making slow weapons more effective against strong enemies, and fast weapons better against weak enemies. |
||
Creatures are balanced without items, and have constant item DEF of 0 and item ATK 5. |
|||
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 ). |
|||
===Range Combat=== |
===Range Combat=== |
||