Skip to content
Snippets Groups Projects
Commit 2854134e authored by Lucas Von Mullen Brown's avatar Lucas Von Mullen Brown
Browse files

time sleep changes

parent 7b2e5277
No related branches found
No related tags found
No related merge requests found
...@@ -18,16 +18,19 @@ def open_diary(room_items): ...@@ -18,16 +18,19 @@ def open_diary(room_items):
def open_safe(room_items): def open_safe(room_items):
print("To open this safe you need a passcode.") print("To open this safe you need a passcode.")
time.sleep(0.8)
print("Please enter the passcode.") print("Please enter the passcode.")
passcode = input() passcode = input()
if passcode == "042": if passcode == "042":
print("THE PASSCODE WAS CORRECT!") print("THE PASSCODE WAS CORRECT!")
time.sleep(0.8)
print("Inside the safe you found a pair of batteries.") print("Inside the safe you found a pair of batteries.")
time.sleep(0.8) time.sleep(0.8)
room_items.append(item_batteries) room_items.append(item_batteries)
item_safe.update({"open": True}) item_safe.update({"open": True})
else: else:
print("You try the code", passcode, "but the safe wouldn't open.") print("You try the code", passcode, "but the safe wouldn't open.")
time.sleep(0.8)
print("TRY AGAIN.") print("TRY AGAIN.")
time.sleep(0.8) time.sleep(0.8)
...@@ -64,15 +67,21 @@ def use_torch(room): ...@@ -64,15 +67,21 @@ def use_torch(room):
time.sleep(0.8) time.sleep(0.8)
else: else:
print("You cannot do that") print("You cannot do that")
time.sleep(0.4)
def read_note(): def read_note():
if item_note in inventory: if item_note in inventory:
print("You read the note and notice a strange puzzle") print("You read the note and notice a strange puzzle")
time.sleep(0.8)
print("682 >> one digit is correct & well placed") print("682 >> one digit is correct & well placed")
time.sleep(0.8)
print("614 >> one digit is correct but wrong placed") print("614 >> one digit is correct but wrong placed")
time.sleep(0.8)
print("206 >> two numbers are correct but wrong placed") print("206 >> two numbers are correct but wrong placed")
time.sleep(0.8)
print("738 >> nothing is correct") print("738 >> nothing is correct")
time.sleep(0.8)
print("870 >> one number is correct but wrong placed") print("870 >> one number is correct but wrong placed")
time.sleep(5) time.sleep(5)
else: else:
......
...@@ -16,7 +16,9 @@ def drink_wine(): ...@@ -16,7 +16,9 @@ def drink_wine():
if counter < 1: if counter < 1:
time.sleep(1) time.sleep(1)
print('You drink a glass of the wine, but have not got much closer to getting the clue.') print('You drink a glass of the wine, but have not got much closer to getting the clue.')
time.sleep(0.8)
print('Would you like to drink another glass?') print('Would you like to drink another glass?')
time.sleep(0.8)
print('YES or NO') print('YES or NO')
more = str(input('> ')) more = str(input('> '))
if more == 'yes': if more == 'yes':
...@@ -28,7 +30,9 @@ def drink_wine(): ...@@ -28,7 +30,9 @@ def drink_wine():
time.sleep(1) time.sleep(1)
print() print()
print('You enjoy a second glass of wine, but can not see the bottom yet.') print('You enjoy a second glass of wine, but can not see the bottom yet.')
time.sleep(0.8)
print('Would you like to drink another glass?') print('Would you like to drink another glass?')
time.sleep(0.8)
print('YES or NO') print('YES or NO')
more = str(input('> ')) more = str(input('> '))
if more == 'yes': if more == 'yes':
...@@ -38,8 +42,14 @@ def drink_wine(): ...@@ -38,8 +42,14 @@ def drink_wine():
x = 2 x = 2
else: else:
time.sleep(1) time.sleep(1)
print() print(".")
time.sleep(0.2)
print(".")
time.sleep(0.2)
print(".")
time.sleep(0.2)
print('You pass out from too much alchohol consumption.') print('You pass out from too much alchohol consumption.')
time.sleep(0.8)
print('You wake up 5 minutes later on the floor of the wine cellar.') print('You wake up 5 minutes later on the floor of the wine cellar.')
time.sleep(1) time.sleep(1)
print('...') print('...')
...@@ -56,10 +66,13 @@ def close_valve(): ...@@ -56,10 +66,13 @@ def close_valve():
if location_boileroom["valve_open"]: if location_boileroom["valve_open"]:
location_boileroom["valve_open"] = False location_boileroom["valve_open"] = False
print("Well done! You stopped the leak!") print("Well done! You stopped the leak!")
time.sleep(0.8)
else: else:
print("Valve is closed") print("Valve is closed")
time.sleep(0.8)
else: else:
print("You need a screwdriver to close the valve") print("You need a screwdriver to close the valve")
time.sleep(0.8)
...@@ -69,10 +82,13 @@ def open_trapdoor(room): ...@@ -69,10 +82,13 @@ def open_trapdoor(room):
if key_card in inventory: if key_card in inventory:
trap_door["open"] = True trap_door["open"] = True
else: else:
time.sleep(0.8)
print("You need a key card to open the lock.") print("You need a key card to open the lock.")
else: else:
time.sleep(0.8)
print("The electrical lock requires batteries to open.") print("The electrical lock requires batteries to open.")
else: else:
time.sleep(0.8)
print("Command isn't available in this room") print("Command isn't available in this room")
...@@ -85,6 +101,7 @@ def use_battery_lock(room): ...@@ -85,6 +101,7 @@ def use_battery_lock(room):
time.sleep(1) time.sleep(1)
def gas_timer(timer): def gas_timer(timer):
time.sleep(0.8)
current_time = datetime.now() current_time = datetime.now()
time_taken = current_time - timer time_taken = current_time - timer
time_left = 180 - time_taken.total_seconds() time_left = 180 - time_taken.total_seconds()
......
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