Skip to content
Snippets Groups Projects
Commit 78dae183 authored by Ahmed Yusuf's avatar Ahmed Yusuf
Browse files

few changes

parent 0211f8aa
No related branches found
No related tags found
No related merge requests found
......@@ -16,6 +16,7 @@ global current_level
gas_starttime = ""
time_penalty = False
def list_of_items(items):
time.sleep(0.1)
new_list = ""
......@@ -381,7 +382,9 @@ def main():
if location_boileroom["valve_open"]:
gastime = current_time - gas_starttime
gastime_left = 180 - gastime.total_seconds()
if gastime_left < 0:
if time_penalty:
gastime_left = gastime_left - 300
if gastime_left <= 0:
print("OH NO! The floor was filled with gas and you died")
break
# Display game status (room description, inventory etc.)
......
from items import *
from map import *
inventory = [item_key]
inventory = []
# Start game at the centre
current_room = locations["centre"]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment