From dc7023adfaae613e1658e0eedfb57146aba0280e Mon Sep 17 00:00:00 2001 From: Marcin Kostrzewski Date: Sun, 5 Apr 2020 22:02:15 +0200 Subject: [PATCH] Fixed: statistics now change by invoking methods instead of variable change --- src/entities/Player.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/entities/Player.py b/src/entities/Player.py index cad65ac..d9a3c0c 100644 --- a/src/entities/Player.py +++ b/src/entities/Player.py @@ -14,7 +14,7 @@ class Player(Entity): # Move in a desired direction def move(self, rotation): - self.statistics.stamina -= 1 + self.statistics.set_stamina(-1) if rotation.value == Rotations.NORTH.value: self.rect.y -= self.rect.w elif rotation.value == Rotations.EAST.value: