From ed8ada900e639a8273014444094f7b94eea4d369 Mon Sep 17 00:00:00 2001 From: Ahmed Yusuf <yusufa7@cardiff.ac.uk> Date: Wed, 26 Oct 2022 20:44:31 +0100 Subject: [PATCH] small changes --- Group_game/game.py | 2 ++ Group_game/items.py | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Group_game/game.py b/Group_game/game.py index 4a138e6..fe6399f 100644 --- a/Group_game/game.py +++ b/Group_game/game.py @@ -190,6 +190,8 @@ def execute_drop(item_id): def time_taken(): current_time = datetime.now() time_taken = (current_time - start_time).total_seconds() + if time_penalty: + time_taken = time_taken + 300 minutes = time_taken // 60 seconds = time_taken % 60 time = [round(minutes), round(seconds)] diff --git a/Group_game/items.py b/Group_game/items.py index 986086f..61bd5ef 100644 --- a/Group_game/items.py +++ b/Group_game/items.py @@ -44,7 +44,7 @@ unpowered_torch = { "pick-up": True } powered_torch = { - "id": "powered torch", + "id": "powered-torch", "name": "a torch with batteries", -- GitLab