Dec-11-2019, 07:38 PM
(Dec-10-2019, 07:09 PM)michael1789 Wrote: Here:
if self.player.leather_chest_plate_on == True: self.leather_chest_plate_protection -= ZOMBIE_DAMAGEI would expect to see this:
if self.player.leather_chest_plate_on == True: self.player.health -= ZOMBIE_DAMAGE - self.leather_chest_plate_protectionYour code doesn't show any place where the player gets hit and armor reduces damage each hit. It's the value of self.leather_chest_plate_protection that gets reduced to 0 then the player takes all subsequent damage.
Hmm...seem's logic but it doesn't work.
![Undecided Undecided](https://python-forum.io/images/smilies/undecided.png)