Sunday, May 24, 2015

Defenses

Currently working on the programming for defensive items like shields, armor and stuff.
Each attackable thing has a "defense" variable, which determines the percentage of the damage that is blocked, for example, if the defense is 0 and an attack is equal to 10, then the damage is 10, but if defense is 20%, then 2 damage is taken off from the attack, resulting in an 8 damage attack. 

This all means that, well, Jon ain't gonna equip just weapons anymore.

No comments:

Post a Comment