Player may now die out of exhaustion
This commit is contained in:
parent
492f37bda5
commit
d45daadc60
@ -97,6 +97,9 @@ class Player(Entity):
|
|||||||
elif self.statistics.hp == 0:
|
elif self.statistics.hp == 0:
|
||||||
self.alive = False
|
self.alive = False
|
||||||
self.deathReason = StatisticNames.HP
|
self.deathReason = StatisticNames.HP
|
||||||
|
elif self.statistics.stamina == 0:
|
||||||
|
self.alive = False
|
||||||
|
self.deathReason = StatisticNames.STAMINA
|
||||||
|
|
||||||
# Change texture after dying
|
# Change texture after dying
|
||||||
if not self.alive:
|
if not self.alive:
|
||||||
|
Loading…
Reference in New Issue
Block a user