Talk:StendhalRefactoringRP: Difference between revisions

Content deleted Content added
imported>Suppenkasper
mNo edit summary
imported>Suppenkasper
mNo edit summary
Line 9:
According to the formula max_defence gets subtracted from max_attack and also divides (8 * max_attack * random[0..1] - max_defense * random[0..1]). So it decreases the damage.
 
> ''damage = (8 * max_attack * random[0..1] - max_defence * random[0..1]) / max_defence);''
 
If I interpreted this correctly the source[Armor] changes the max_defence value of the attacked target. This makes me wonder why, because I don't see any connection between the defensive equipment the character wears and the max_defence value of the target. The better the character's equipment (Armor, Helmet, Legs, Boots, Shield, Cloak) is the higher is the target's defence? I believe it should be target[ARMOR] instead but as mentioned in the article there doesn't seem to be a target[ARMOR] value for creatures.
Return to "StendhalRefactoringRP" page.