-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy patheaster_egg.py
54 lines (47 loc) · 3.57 KB
/
easter_egg.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
#!/usr/bin/env python3
import creatures, user, time, puzzles
from textFormat import print_s, input_s, input_ss
from sass import sample_sass
def easter_egg(player):
shelf = '''
_________________________________________________________
||-------------------------------------------------------||
||.--. .-._ .----. ||
|||==|____| |H|___ .---.___|""""|_____.--.___ ||
||| |====|P| |xxx|_ |+++|=-=|_ _|-=+=-|==|---|||
|||==| |E| | | \ | | |_\/_|Black| | ^ |||
||| | |R| | R |\ \ .--. | |=-=|_/\_|-=+=-| | ^ |||
||| | |L| | |_\ \_( oo )| | | |Magic| | ^ |||
|||==|====| |H|xxx| \ \ |''| |+++|=-=|""""|-=+=-|==|---|||
||`--^----'-^-^---' `-' "" '---^---^----^-----^--^---^||
||-------------------------------------------------------||
||-------------------------------------------------------||
|| ___ .-.__.-===-. .---.||
|| |===| .---. __ .---| |XX| P |_|^^^|||
|| /(| |_|III|__|''|__|:x:|=| | Y |=| = |||
|| / (|===|+| |++| |==| | | | T | | |||
|| /\\\/ _(|===|-| | |''| |:x:|=| | H | | |||
||_____ -\{___(| |-| | | | | | | | O | | = |||
|| _(____)|===|+|[I]|DK|''|==|:x:|=|XX| N |=|^^^|||
|| `---^-^---^--^--'--^---^-^--^-===-^-^---^||
||-------------------------------------------------------||
|| \033[8mChoose [read] for secret room\033[8m\033[0m ||
||_______________________________________________________||
'''
print_s("You scan the room. It appears mostly empty apart from a dusty bookshelf that seems to contain questionably old and outdated textbooks.")
time.sleep(2)
decision = input_ss('You may not have time for assing about with useless scholarly nonsense, but it may prove fruitful. Do you [leave] or stay and [search]?', player)
if decision == 'search':
print(shelf)
input_s("You begin scanning the bookshelf for something entertaining and/or educational. An ancient text, bound in thousand year old embossed centaur leather, briefly catches your eye. Its title, 'Mastery of Python and Complex Systems', reminds you of an ancient teaching you once received. The effects of amnesia are taking their toll, and the memory fades.", player)
book_decision = input_ss('You question your existence and past life before the prison. Before you break down into an existential crisis, you [leave] the room. Or do you?\n', secrets="read", user=player)
if book_decision == 'read':
input_s('You impulsively decide to read the book about Pythons. Perhaps in some attempt of mastering creature control? However, pulling the book from the shelf, you realise the book is no book at all. Instead, the bookshelf swings open to reveal a secret room.\n', player, color = 'green')
print_s("Inside, you find ancient texts and writings in languages you barely know the name of (assembly, java, and visual basic??). You study them for some time in an attempt to gain some knowledge.")
hidden_room = puzzles.Puzzles()
room_puzzle = hidden_room.do_puzzle(user = player)
if room_puzzle == True:
input_s("After a few hours your hard work pays off and you gain 1 intelligence, and leave the room.", player)
player.intelligence += 1
else:
input_s('Unfortunately your mental capacity is restricted by inactivity from your time in the cell, and you do not solve the mysteries of the ancient texts. You leave the room.', player)