Skip to content
Snippets Groups Projects
Commit f1702055 authored by Morgan Diment's avatar Morgan Diment
Browse files

working on trapdoor

parent 967a2088
No related branches found
No related tags found
No related merge requests found
......@@ -130,6 +130,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?")
......@@ -263,6 +265,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?")
......
......@@ -62,7 +62,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")
......
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