From d45daadc603dc1a09b1f182fa3cd004bad358221 Mon Sep 17 00:00:00 2001 From: Marcin Kostrzewski Date: Fri, 15 May 2020 08:58:07 +0200 Subject: [PATCH] Player may now die out of exhaustion --- src/entities/Player.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/entities/Player.py b/src/entities/Player.py index 70ed5d4..4a64a1f 100644 --- a/src/entities/Player.py +++ b/src/entities/Player.py @@ -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: