Monday, April 8, 2013

Equip defense

I haven't done any development for a while (curse you, Kerbal Space Program), but today I again did something: I implemented equipment defense. Each piece of equipment can now have a defense value. Optionally, it can also have a different defense value against specific elements. When it hasn't got a specific value against an attack, the general defense value is used.

When an attack hits a player, each piece of equipment removes a random amount of damage which is between 0 and the applicable defense value.

No comments:

Post a Comment