neelthee-mansion 3.23.9__py3-none-any.whl → 3.23.10__py3-none-any.whl
Sign up to get free protection for your applications and to get access to all the features.
- neelthee_mansion/Mansion_of_Amnesia.py +2 -20
- neelthee_mansion/Rooms.py +25 -25
- neelthee_mansion/utils.py +4 -0
- {neelthee_mansion-3.23.9.dist-info → neelthee_mansion-3.23.10.dist-info}/METADATA +1 -1
- neelthee_mansion-3.23.10.dist-info/RECORD +16 -0
- neelthee_mansion-3.23.9.dist-info/RECORD +0 -16
- {neelthee_mansion-3.23.9.dist-info → neelthee_mansion-3.23.10.dist-info}/LICENSE.md +0 -0
- {neelthee_mansion-3.23.9.dist-info → neelthee_mansion-3.23.10.dist-info}/WHEEL +0 -0
- {neelthee_mansion-3.23.9.dist-info → neelthee_mansion-3.23.10.dist-info}/entry_points.txt +0 -0
- {neelthee_mansion-3.23.9.dist-info → neelthee_mansion-3.23.10.dist-info}/top_level.txt +0 -0
@@ -17,7 +17,7 @@ GameState = {
|
|
17
17
|
Neel-thee's Mansion of Amnesia
|
18
18
|
"""
|
19
19
|
|
20
|
-
global player, evil_mage, commands, NOTE_NUM, credits,
|
20
|
+
global player, evil_mage, commands, NOTE_NUM, credits, quest_manager, revealer, CHARACTERSLIST, BACKGROUNDS, info_text_area
|
21
21
|
|
22
22
|
player_info_root = None
|
23
23
|
player_info_label = None
|
@@ -33,8 +33,6 @@ revealer = KeyRevealer()
|
|
33
33
|
|
34
34
|
quest_manager = QuestManager()
|
35
35
|
|
36
|
-
color_coding = False
|
37
|
-
|
38
36
|
credits = """
|
39
37
|
Made by: Alexander.E.F
|
40
38
|
AI assisted the creation"""
|
@@ -349,7 +347,7 @@ def Move(move):
|
|
349
347
|
def move_to_room():
|
350
348
|
global player
|
351
349
|
player.LASTROOM = player.CURRENTROOM
|
352
|
-
if "descovered" in ROOMS[newRoom]
|
350
|
+
if "descovered" in ROOMS[newRoom]:
|
353
351
|
ROOMS[newRoom]["descovered"] = True
|
354
352
|
if move == "0":
|
355
353
|
return attempt_charter()
|
@@ -894,13 +892,10 @@ def handle_search_command(player, *Args):
|
|
894
892
|
def search_container(player: PC, Container):
|
895
893
|
ContainerName = Container
|
896
894
|
Container = ROOMS[player.CURRENTROOM]["containers"][Container]
|
897
|
-
print("Got to if staitment")
|
898
895
|
if isinstance(Container, container):
|
899
|
-
print("got past if statement")
|
900
896
|
if isinstance(Container.lock, Lock):
|
901
897
|
key = PickKey(Container.lock)
|
902
898
|
Container.Unlock(key, player)
|
903
|
-
print("Adding text now")
|
904
899
|
add_text_to_textbox(info_text_area,
|
905
900
|
f"You search the{' secret' if Container.secret else ''} {ContainerName} and find a ",
|
906
901
|
newline=False
|
@@ -1230,19 +1225,6 @@ def initializer():
|
|
1230
1225
|
# I will add more logic for starting the game later
|
1231
1226
|
root.destroy()
|
1232
1227
|
|
1233
|
-
def ask_color_coding():
|
1234
|
-
color_window = tk.Toplevel(root)
|
1235
|
-
color_window.title("Color Coding")
|
1236
|
-
tk.Label(color_window, text="Do you want color coding?").pack()
|
1237
|
-
tk.Button(color_window, text="Yes", command=lambda: set_color_coding(True)).pack()
|
1238
|
-
tk.Button(color_window, text="No", command=lambda: set_color_coding(False)).pack()
|
1239
|
-
|
1240
|
-
def set_color_coding(choice):
|
1241
|
-
global color_coding
|
1242
|
-
color_coding = choice
|
1243
|
-
# Add your logic for enabling/disabling color coding here
|
1244
|
-
choose_background()
|
1245
|
-
|
1246
1228
|
root = tk.Tk()
|
1247
1229
|
root.title("Character Creation")
|
1248
1230
|
|
neelthee_mansion/Rooms.py
CHANGED
@@ -92,8 +92,8 @@ def SetMapsAndPosiitionsDicts(map_dict, positions):
|
|
92
92
|
|
93
93
|
positions = {}
|
94
94
|
for RoomName, RoomItem in ROOMS.items():
|
95
|
-
if "
|
96
|
-
if RoomItem["
|
95
|
+
if "descovered" in RoomItem and "position" in RoomItem and "map" in RoomItem:
|
96
|
+
if RoomItem["descovered"]:
|
97
97
|
map_dict[RoomName] = string_to_2d_list(RoomItem["map"])
|
98
98
|
positions[RoomName] = RoomItem["position"]
|
99
99
|
return map_dict, positions
|
@@ -164,7 +164,7 @@ ROOMS = {
|
|
164
164
|
"Hall": {
|
165
165
|
"room type": "house",
|
166
166
|
"position": (0, 8, 0),
|
167
|
-
"
|
167
|
+
"descovered": True,
|
168
168
|
"directions": {
|
169
169
|
"south": Door("Kitchen"),
|
170
170
|
"east": Door("Dining Room"),
|
@@ -253,7 +253,7 @@ smash from the south.",
|
|
253
253
|
"Kitchen": {
|
254
254
|
"room type": "house",
|
255
255
|
"position": (0, 16, 0),
|
256
|
-
"
|
256
|
+
"descovered": False,
|
257
257
|
"directions": {
|
258
258
|
"north": Door("Hall"),
|
259
259
|
"east": Door("Garden"),
|
@@ -303,7 +303,7 @@ smash from the south.",
|
|
303
303
|
"Dining Room": {
|
304
304
|
"room type": "house",
|
305
305
|
"position": (0, 8, 8),
|
306
|
-
"
|
306
|
+
"descovered": False,
|
307
307
|
"directions": {
|
308
308
|
"west": Door("Hall"),
|
309
309
|
"south": Door("Garden"),
|
@@ -335,7 +335,7 @@ ripping from the north.",
|
|
335
335
|
"Garden": {
|
336
336
|
"room type": "house",
|
337
337
|
"position": (0, 16, 8),
|
338
|
-
"
|
338
|
+
"descovered": False,
|
339
339
|
"directions": {
|
340
340
|
"north": Door("Dining Room"),
|
341
341
|
"west": Door("Kitchen"),
|
@@ -364,7 +364,7 @@ ripping from the north.",
|
|
364
364
|
"Armoury": {
|
365
365
|
"room type": "house",
|
366
366
|
"position": (0, 0, 0),
|
367
|
-
"
|
367
|
+
"descovered": False,
|
368
368
|
"directions": {
|
369
369
|
"south": Door("Hall"),
|
370
370
|
"east": Door("Sitting Room"),
|
@@ -396,7 +396,7 @@ You notice a "
|
|
396
396
|
"Sitting Room": {
|
397
397
|
"room type": "house",
|
398
398
|
"position": (0, 0, 8),
|
399
|
-
"
|
399
|
+
"descovered": False,
|
400
400
|
"directions": {
|
401
401
|
"west": Door("Armoury"),
|
402
402
|
"south": Door("Dining Room"),
|
@@ -435,7 +435,7 @@ You notice a "
|
|
435
435
|
"Landing": {
|
436
436
|
"room type": "house",
|
437
437
|
"position": (1, 8, 0),
|
438
|
-
"
|
438
|
+
"descovered": False,
|
439
439
|
"directions": {
|
440
440
|
"down": Door("Hall"),
|
441
441
|
"north": Door("Tower Bottom"),
|
@@ -461,7 +461,7 @@ You notice a "
|
|
461
461
|
"Bedroom": {
|
462
462
|
"room type": "house",
|
463
463
|
"position": (1, 8, 8),
|
464
|
-
"
|
464
|
+
"descovered": False,
|
465
465
|
"directions": {
|
466
466
|
"west": Door("Landing"),
|
467
467
|
"north": Door("Office"),
|
@@ -492,7 +492,7 @@ You notice a "
|
|
492
492
|
"Office": {
|
493
493
|
"room type": "house",
|
494
494
|
"position": (1, 0, 8),
|
495
|
-
"
|
495
|
+
"descovered": False,
|
496
496
|
"directions": {
|
497
497
|
"south": Door("Bedroom"),
|
498
498
|
"west": Door("Tower Bottom"),
|
@@ -528,7 +528,7 @@ You notice a "
|
|
528
528
|
"Balcony": {
|
529
529
|
"room type": "house",
|
530
530
|
"position": (1, 16, 0),
|
531
|
-
"
|
531
|
+
"descovered": False,
|
532
532
|
"directions": {
|
533
533
|
"north": Door("Landing"),
|
534
534
|
},
|
@@ -550,7 +550,7 @@ You notice a "
|
|
550
550
|
"Tower Bottom": {
|
551
551
|
"room type": "house",
|
552
552
|
"position": (1, 0, 0),
|
553
|
-
"
|
553
|
+
"descovered": False,
|
554
554
|
"directions": {
|
555
555
|
"south": Door("Landing"),
|
556
556
|
"east": Door("Office"),
|
@@ -578,7 +578,7 @@ You notice a "
|
|
578
578
|
"Tower Middle": {
|
579
579
|
"room type": "house",
|
580
580
|
"position": (2, 0, 0),
|
581
|
-
"
|
581
|
+
"descovered": False,
|
582
582
|
"directions": {
|
583
583
|
"down": Door("Tower Bottom"),
|
584
584
|
"up": Door("Tower Top"),
|
@@ -609,7 +609,7 @@ You notice a "
|
|
609
609
|
"Tower Top": {
|
610
610
|
"room type": "house",
|
611
611
|
"position": (3, 0, 0),
|
612
|
-
"
|
612
|
+
"descovered": False,
|
613
613
|
"directions": {
|
614
614
|
"down": Door("Tower Middle"),
|
615
615
|
"teleport": Door("Teleportation Deck"),
|
@@ -643,7 +643,7 @@ You notice a "
|
|
643
643
|
"Basement Armoury": {
|
644
644
|
"room type": "house",
|
645
645
|
"position": (-1, 0, 0),
|
646
|
-
"
|
646
|
+
"descovered": False,
|
647
647
|
"directions": {
|
648
648
|
"south": Door("Basement 3"),
|
649
649
|
"east": Door("Basement 1"),
|
@@ -676,7 +676,7 @@ rack-1 has damaged bows and rack-2 has damaged spears.",
|
|
676
676
|
"Basement 1": {
|
677
677
|
"room type": "house",
|
678
678
|
"position": (-1, 0, 8),
|
679
|
-
"
|
679
|
+
"descovered": False,
|
680
680
|
"directions": {
|
681
681
|
"south": Door("Basement 2"),
|
682
682
|
"west": Door("Basement Armoury"),
|
@@ -704,7 +704,7 @@ rack-1 has damaged bows and rack-2 has damaged spears.",
|
|
704
704
|
"Basement 2": {
|
705
705
|
"room type": "house",
|
706
706
|
"position": (-1, 8, 8),
|
707
|
-
"
|
707
|
+
"descovered": False,
|
708
708
|
"directions": {
|
709
709
|
"north": Door("Basement 1"),
|
710
710
|
"west": Door("Basement 3"),
|
@@ -730,7 +730,7 @@ rack-1 has damaged bows and rack-2 has damaged spears.",
|
|
730
730
|
"Basement 3": {
|
731
731
|
"room type": "house",
|
732
732
|
"position": (-1, 8, 0),
|
733
|
-
"
|
733
|
+
"descovered": False,
|
734
734
|
"directions": {
|
735
735
|
"south": Door("Basement 4"),
|
736
736
|
"east": Door("Basement 2"),
|
@@ -754,7 +754,7 @@ rack-1 has damaged bows and rack-2 has damaged spears.",
|
|
754
754
|
"Basement 4": {
|
755
755
|
"room type": "house",
|
756
756
|
"position": (-1, 16, 0),
|
757
|
-
"
|
757
|
+
"descovered": False,
|
758
758
|
"directions": {
|
759
759
|
"north": Door("Basement 3"),
|
760
760
|
"east": Door("Library"),
|
@@ -781,7 +781,7 @@ rack-1 has damaged bows and rack-2 has damaged spears.",
|
|
781
781
|
"Library": {
|
782
782
|
"room type": "house",
|
783
783
|
"position": (-1, 16, 8),
|
784
|
-
"
|
784
|
+
"descovered": False,
|
785
785
|
"directions": {
|
786
786
|
"west": Door("Room name"),
|
787
787
|
"bookcase": Door("Cavern 3"),
|
@@ -808,7 +808,7 @@ rack-1 has damaged bows and rack-2 has damaged spears.",
|
|
808
808
|
'DND': {
|
809
809
|
'room type': 'type',
|
810
810
|
'position': (-1, -8, 0),
|
811
|
-
'
|
811
|
+
'descovered': False,
|
812
812
|
'directions': {
|
813
813
|
'north': Door('Room name'),
|
814
814
|
'south': Door("Basement Armoury"),
|
@@ -867,7 +867,7 @@ Oh and before I forget, If you go through the door to the north, there wil be no
|
|
867
867
|
"Cavern 1": {
|
868
868
|
"room type": "cavern",
|
869
869
|
"position": (-2, 0, 0),
|
870
|
-
"
|
870
|
+
"descovered": False,
|
871
871
|
"directions": {
|
872
872
|
"up": Door("Basement 4"),
|
873
873
|
"down": Door("Cavern 2"),
|
@@ -890,7 +890,7 @@ Oh and before I forget, If you go through the door to the north, there wil be no
|
|
890
890
|
"Cavern 2": {
|
891
891
|
"room type": "cavern",
|
892
892
|
"position": (-3, 0, 0),
|
893
|
-
"
|
893
|
+
"descovered": False,
|
894
894
|
"directions": {"up": SwitchDoor("Cavern 1", "Cavern 3", "7k69fImz4y")},
|
895
895
|
"info": "you are in a dark cavern with the only light coming from the shoot you came through. A voice in the back of your head says: 'You fool! You can never get back now!'",
|
896
896
|
"map": """
|
@@ -911,7 +911,7 @@ Oh and before I forget, If you go through the door to the north, there wil be no
|
|
911
911
|
"Cavern 3": {
|
912
912
|
"room type": "cavern",
|
913
913
|
"position": (-2, 8, 0),
|
914
|
-
"
|
914
|
+
"descovered": False,
|
915
915
|
"directions": {
|
916
916
|
"down": Door("Cavern 2"),
|
917
917
|
"bookcase": Door("Library"),
|
neelthee_mansion/utils.py
CHANGED
@@ -47,6 +47,10 @@ These utilities aim to simplify development processes, promote code reuse, and i
|
|
47
47
|
"""
|
48
48
|
|
49
49
|
|
50
|
+
def debug(text: str):
|
51
|
+
print(f"DEBUG: {text}")
|
52
|
+
|
53
|
+
|
50
54
|
# a function that adds text to a text box and scrolls to the bottom and updates it
|
51
55
|
def add_text_to_textbox(text_area: scrolledtext.ScrolledText, text, newline=True):
|
52
56
|
# Enable the text box to insert text
|
@@ -0,0 +1,16 @@
|
|
1
|
+
neelthee_mansion/Books.py,sha256=Zs6GOi12vrikne-E37LdrLNRb6CyUogOCDApDGFj6Ls,26168
|
2
|
+
neelthee_mansion/Mansion_of_Amnesia.py,sha256=Ni3wgLmHh3i3XNTb1n799jzPhE0SI1ReCVAckEFSLsg,53287
|
3
|
+
neelthee_mansion/Quests.py,sha256=pUlru2RugP57MACQORZaF_X9lsbefTdPYTSO474phgo,2791
|
4
|
+
neelthee_mansion/Rooms.py,sha256=5m1GrFNhXJMBzw2zaXM6FUt497BIoJi9BfRFvdhsy_g,79218
|
5
|
+
neelthee_mansion/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
6
|
+
neelthee_mansion/__main__.py,sha256=OIAWZ04le70DyjtR4hlmK9csHej7EHxeUrMoNnM-Vjc,95
|
7
|
+
neelthee_mansion/all_game_utils.py,sha256=AasunTkFmgAqt9ZIoYmymi4R7leBe4ubW-C1ts0Qclo,351
|
8
|
+
neelthee_mansion/creatures.py,sha256=XdRM5DJSnjAKXn4QskXKBf_YGvov26fX3XU1E2ww0zg,19722
|
9
|
+
neelthee_mansion/items.py,sha256=aGEkNUROf4WuLdsmoFYD-0BbJ984SODt73-8-_F1Z9Y,6672
|
10
|
+
neelthee_mansion/utils.py,sha256=1eIb01bsLw7emOy6PCRxyt_JswuyCPhfPS_KRl2IHds,14283
|
11
|
+
neelthee_mansion-3.23.10.dist-info/LICENSE.md,sha256=CV8XGZaCyyAMdbkYFQUjb8AjBq9vkoyqdZCq1_hetms,1105
|
12
|
+
neelthee_mansion-3.23.10.dist-info/METADATA,sha256=QPsQEYL7QOhs0KJ9pdY_xNdngzAULcHYMwgny767Blc,1757
|
13
|
+
neelthee_mansion-3.23.10.dist-info/WHEEL,sha256=tZoeGjtWxWRfdplE7E3d45VPlLNQnvbKiYnx7gwAy8A,92
|
14
|
+
neelthee_mansion-3.23.10.dist-info/entry_points.txt,sha256=j5ScTTyIidFhmT3F6hcX9pnlom4cJdDmfe26BmM6Igo,56
|
15
|
+
neelthee_mansion-3.23.10.dist-info/top_level.txt,sha256=woQImQewylhly5Rb24HwPEGMxPY6do_PaUwGd5BNLOM,17
|
16
|
+
neelthee_mansion-3.23.10.dist-info/RECORD,,
|
@@ -1,16 +0,0 @@
|
|
1
|
-
neelthee_mansion/Books.py,sha256=Zs6GOi12vrikne-E37LdrLNRb6CyUogOCDApDGFj6Ls,26168
|
2
|
-
neelthee_mansion/Mansion_of_Amnesia.py,sha256=RxbulLajNxgWuokXoQWv9O-4PkX-H4nHwigm0jxzMpc,54081
|
3
|
-
neelthee_mansion/Quests.py,sha256=pUlru2RugP57MACQORZaF_X9lsbefTdPYTSO474phgo,2791
|
4
|
-
neelthee_mansion/Rooms.py,sha256=PgF0HWp1do08AMB61nX0QsOJwsonW7LwkW-g1reRIy4,79218
|
5
|
-
neelthee_mansion/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
6
|
-
neelthee_mansion/__main__.py,sha256=OIAWZ04le70DyjtR4hlmK9csHej7EHxeUrMoNnM-Vjc,95
|
7
|
-
neelthee_mansion/all_game_utils.py,sha256=AasunTkFmgAqt9ZIoYmymi4R7leBe4ubW-C1ts0Qclo,351
|
8
|
-
neelthee_mansion/creatures.py,sha256=XdRM5DJSnjAKXn4QskXKBf_YGvov26fX3XU1E2ww0zg,19722
|
9
|
-
neelthee_mansion/items.py,sha256=aGEkNUROf4WuLdsmoFYD-0BbJ984SODt73-8-_F1Z9Y,6672
|
10
|
-
neelthee_mansion/utils.py,sha256=9A1fDF6qCBkI5wzAat6rEiMlyICT7XFHUCx3lJpw5Q4,14227
|
11
|
-
neelthee_mansion-3.23.9.dist-info/LICENSE.md,sha256=CV8XGZaCyyAMdbkYFQUjb8AjBq9vkoyqdZCq1_hetms,1105
|
12
|
-
neelthee_mansion-3.23.9.dist-info/METADATA,sha256=HDvk7OsNvUgaQb4TJQh0FGc-clC4TXLZo69_lUeXbMY,1756
|
13
|
-
neelthee_mansion-3.23.9.dist-info/WHEEL,sha256=tZoeGjtWxWRfdplE7E3d45VPlLNQnvbKiYnx7gwAy8A,92
|
14
|
-
neelthee_mansion-3.23.9.dist-info/entry_points.txt,sha256=j5ScTTyIidFhmT3F6hcX9pnlom4cJdDmfe26BmM6Igo,56
|
15
|
-
neelthee_mansion-3.23.9.dist-info/top_level.txt,sha256=woQImQewylhly5Rb24HwPEGMxPY6do_PaUwGd5BNLOM,17
|
16
|
-
neelthee_mansion-3.23.9.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|