diff --git a/Group_game/game.py b/Group_game/game.py index 4a138e6a42a651c54f17149d466445adb164b0d3..fe6399f133feb653f3a6316c19230189db186c72 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 986086f937e578c078ecec1af720a1018569ff2f..61bd5efd7298f1a0245058634c76f5e994434a52 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",