Player may now die out of exhaustion

This commit is contained in:
Marcin Kostrzewski 2020-05-15 08:58:07 +02:00
parent 492f37bda5
commit d45daadc60

View File

@ -97,6 +97,9 @@ class Player(Entity):
elif self.statistics.hp == 0:
self.alive = False
self.deathReason = StatisticNames.HP
elif self.statistics.stamina == 0:
self.alive = False
self.deathReason = StatisticNames.STAMINA
# Change texture after dying
if not self.alive: