From a0bbee30d15421f632fca2d01d103ca8d6ae2426 Mon Sep 17 00:00:00 2001 From: Marcin Kostrzewski Date: Sun, 5 Apr 2020 21:59:40 +0200 Subject: [PATCH] Player movement now costs stamina --- src/entities/Player.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/entities/Player.py b/src/entities/Player.py index 7234cc7..cad65ac 100644 --- a/src/entities/Player.py +++ b/src/entities/Player.py @@ -14,6 +14,7 @@ class Player(Entity): # Move in a desired direction def move(self, rotation): + self.statistics.stamina -= 1 if rotation.value == Rotations.NORTH.value: self.rect.y -= self.rect.w elif rotation.value == Rotations.EAST.value: