Skip to content
Snippets Groups Projects

Compare revisions

Changes are shown as if the source revision was being merged into the target revision. Learn more about comparing revisions.

Source

Select target project
No results found

Target

Select target project
  • c22027697/group-project
1 result
Show changes
Commits on Source (2)
......@@ -131,6 +131,8 @@ def print_menu(exits, room_items, inv_items):
time.sleep(0.2)
if current_room==trap_door and item_batteries in inventory:
print("USE BATTERIES for LOCK to place the batteries in the electrical lock")
if current_room==trap_door and item_lock["batteries"] == True:
print("OPEN TRAP DOOR to open the trap door and exit out of it")
print("What do you want to do?")
......@@ -267,6 +269,8 @@ def execute_command(command):
open_diary(current_room["items"])
elif command[1] == "safe":
open_safe(current_room["items"])
elif command[1] == "trap door":
open_trapdoor()
else:
print("open what?")
......
......@@ -66,7 +66,7 @@ def close_valve():
def open_trapdoor():
if current_room == trap_door:
if item_lock["batteries"]:
if item_keycard in inventory:
if key_card in inventory:
trap_door["open"] = True
else:
print("You need a key card to open the lock")
......