neelthee-mansion 3.3.0__py3-none-any.whl → 3.3.1__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -256,12 +256,12 @@ def Use(moveone, movetwo=None):
256
256
  type_text("You can't use that", colorTrue=color_coding)
257
257
 
258
258
 
259
- def PickKey(lock):
259
+ def PickKey(locked_obj):
260
260
  keys = player.inventory.keys()
261
261
 
262
262
  if keys:
263
263
  while True:
264
- type_text(f"Please pick which key you want to use in the lock. This is what you know about the lock: {lock}. These are your keys:")
264
+ type_text(f"Please pick which key you want to use in the lock. This is what you know about the lock: {locked_obj}. These are your keys:")
265
265
 
266
266
  # Enumerate keys and display them
267
267
  for idx, key in enumerate(keys, 1): # Starts numbering at 1
@@ -299,10 +299,10 @@ def Move(move):
299
299
  def attempt_move_to_garden():
300
300
  global player
301
301
  type_text("Please pick whitch key you want to try in the lock on the gate")
302
- for key in player.inventory.keys():
303
- if key.KeyCode == "629.IdnXwnt":
304
- End('You unlock the gate to the garden with the key!')
305
- return newRoom
302
+ key = PickKey(Lock("629.IdnXwnt"))
303
+ if key.KeyCode == "629.IdnXwnt":
304
+ End('You unlock the gate to the garden with the key!')
305
+ return newRoom
306
306
  type_text('The gate is locked.', colorTrue=color_coding)
307
307
  return newRoom
308
308
 
@@ -319,12 +319,15 @@ def Move(move):
319
319
  return newRoom
320
320
 
321
321
  if move in ROOMS[player.CURRENTROOM]['directions']:
322
+ newRoom = "Hall"
322
323
  if isinstance(ROOMS[player.CURRENTROOM]['directions'][move], Door):
323
324
  if isinstance(ROOMS[player.CURRENTROOM]['directions'][move].lock, Lock):
324
325
  key = PickKey(ROOMS[player.CURRENTROOM]['directions'][move].lock)
325
326
  ROOMS[player.CURRENTROOM]['directions'][move].unlock(key, player)
326
327
  newRoom = ROOMS[player.CURRENTROOM]['directions'][move].GetRoom()
327
- newRoom = move_to_room()
328
+ elif isinstance(ROOMS[player.CURRENTROOM]['directions'][move], str):
329
+ newRoom = ROOMS[player.CURRENTROOM]['directions'][move]
330
+ newRoom = move_to_room()
328
331
  return
329
332
  elif move in ROOMS:
330
333
  newRoom = move
neelthee_mansion/Rooms.py CHANGED
@@ -57,6 +57,9 @@ class Door:
57
57
  else:
58
58
  type_text("The door is locked.")
59
59
  return currentroom
60
+
61
+ def __str__(self) -> str:
62
+ return self.CurentRevealStr
60
63
 
61
64
  class SwitchDoor(Door):
62
65
  def __init__(self, RoomOneName, RoomTwoName, KeyCode=None) -> None:
@@ -317,7 +320,7 @@ You notice a ''%*RED*%storage%*RESET*% device in one corner. You hear a %*YELLOW
317
320
  'directions': {
318
321
  'west': Door('Armoury'),
319
322
  'south': Door('Dining Room'),
320
- 'down': 'Basement 1',
323
+ 'down': Door('Basement 1'),
321
324
  },
322
325
  'creatures stats': creature(
323
326
  'grumpy pig',
@@ -353,7 +356,7 @@ You notice a ''%*RED*%storage%*RESET*% device in one corner. You hear a %*YELLOW
353
356
  'position': (1, 8, 0),
354
357
  'discovered': False,
355
358
  'directions': {
356
- 'down': 'Hall',
359
+ 'down': Door('Hall'),
357
360
  'north': Door('Tower Bottom'),
358
361
  'east': Door('Bedroom'),
359
362
  'south': Door('Balcony'),
@@ -469,7 +472,7 @@ You notice a ''%*RED*%storage%*RESET*% device in one corner. You hear a %*YELLOW
469
472
  'directions': {
470
473
  'south': Door('Landing'),
471
474
  'east': Door('Office'),
472
- 'down': 'Armoury',
475
+ 'down': Door('Armoury'),
473
476
  'up': Door('Tower Middle'),
474
477
  },
475
478
  'info': 'You are in the base of a stone tower, there is a spiral staircase going up into the darkness.',
@@ -496,7 +499,7 @@ You notice a ''%*RED*%storage%*RESET*% device in one corner. You hear a %*YELLOW
496
499
  'position': (2, 0, 0),
497
500
  'discovered': False,
498
501
  'directions': {
499
- 'down': 'Tower Bottom',
502
+ 'down': Door('Tower Bottom'),
500
503
  'up': Door('Tower Top'),
501
504
  },
502
505
  'containers': {
@@ -524,7 +527,7 @@ You notice a ''%*RED*%storage%*RESET*% device in one corner. You hear a %*YELLOW
524
527
  'position': (3, 0, 0),
525
528
  'discovered': False,
526
529
  'directions': {
527
- 'down': 'Tower Middle',
530
+ 'down': Door('Tower Middle'),
528
531
  'teleport': Door('Teleportation Deck'),
529
532
  },
530
533
  'creatures stats': creature(
@@ -685,9 +688,11 @@ You notice a ''%*RED*%storage%*RESET*% device in one corner. You hear a %*YELLOW
685
688
 
686
689
  'Cavern 1': {
687
690
  'room type': 'cavern',
691
+ 'position': (-2, 0, 0),
692
+ 'discovered': False,
688
693
  'directions': {
689
694
  'up': Door('Basement 4'),
690
- 'down': 'Cavern 2',
695
+ 'down': Door('Cavern 2'),
691
696
  },
692
697
  '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: \'Do not go down the shoot, leave while you still can!\'',
693
698
  'map': '''
@@ -707,10 +712,12 @@ You notice a ''%*RED*%storage%*RESET*% device in one corner. You hear a %*YELLOW
707
712
 
708
713
  'Cavern 2': {
709
714
  'room type': 'cavern',
715
+ 'position': (-3, 0, 0),
716
+ 'discovered': False,
710
717
  'directions': {
711
-
718
+ 'up': SwitchDoor('Cavern 1', 'Cavern 3', '7k69fImz4y')
712
719
  },
713
- '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 escape!\'',
720
+ '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!\'',
714
721
  'map': '''
715
722
  █████████
716
723
  █ █
@@ -722,7 +729,8 @@ You notice a ''%*RED*%storage%*RESET*% device in one corner. You hear a %*YELLOW
722
729
  █ █
723
730
  █████████''',
724
731
  'Hints': [
725
- 'I should probably quit so I\'m not here forever.',
732
+ 'I should probably go back up so I\'m not here forever.',
733
+ 'I wander what the voice was talking about.',
726
734
  ],
727
735
  },
728
736
 
neelthee_mansion/items.py CHANGED
@@ -156,3 +156,6 @@ class container:
156
156
 
157
157
  def Unlock(self, key: Key, player):
158
158
  return self.lock.unlock(key, player)
159
+
160
+ def __str__(self) -> str:
161
+ return self.CurentRevealStr
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: neelthee-mansion
3
- Version: 3.3.0
3
+ Version: 3.3.1
4
4
  Summary: A text-based adventure game set in Neel-thee’s mansion.
5
5
  Home-page: https://github.com/Flameblade375/neelthee_mansion
6
6
  Author: Alexander.E.F
@@ -1,14 +1,14 @@
1
- neelthee_mansion/Mansion_of_Amnesia.py,sha256=Axk6vciGx8BZnQRK5PjLspBIzSQIhuTDvpgjVVzZXUM,45787
1
+ neelthee_mansion/Mansion_of_Amnesia.py,sha256=n1x4vtwczYcQ9mMrD8MZLGiEVwBOMJr8WzyHMkDStv0,45955
2
2
  neelthee_mansion/Quests.py,sha256=q6VzR3mt9AYe29ACWZuf-suz4yOKrL946aJ493eQRS0,2611
3
- neelthee_mansion/Rooms.py,sha256=gKGSSfRd2tjU0tL-pyQ8VvPHYepR2WHF03OSA5AMbIo,86889
3
+ neelthee_mansion/Rooms.py,sha256=j8jJObdeTFGIn_G1a_saSx8C7ihWWYiJWAGfyAfY5u0,87314
4
4
  neelthee_mansion/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
5
5
  neelthee_mansion/__main__.py,sha256=OIAWZ04le70DyjtR4hlmK9csHej7EHxeUrMoNnM-Vjc,95
6
6
  neelthee_mansion/all_game_utils.py,sha256=Xfty9uXiYAfmA6iVzJurq852ZBPn7a4gQUcUcaV9yEU,341
7
7
  neelthee_mansion/creatures.py,sha256=kSfzQSE5UmFiDV0eDsTXCk-LQwZIyY5Rwsyh5Uhropw,14826
8
- neelthee_mansion/items.py,sha256=T5Y_oTuWv4SlDHG1Q3Z_wdddQJgtjMfdTdDU489yjCw,5027
8
+ neelthee_mansion/items.py,sha256=ysXxbGTfVSW9gc8N4uGEZlQ-_Nsv2eFjHdfIBUGxBNQ,5101
9
9
  neelthee_mansion/utils.py,sha256=PhFBDQXQoSNHpBUd0NKhP0KcclXK5Mho0qGnrpKAbe0,12187
10
- neelthee_mansion-3.3.0.dist-info/METADATA,sha256=nCqgf_RZPW_aI1iWL5Xd_yA0B8gjib2_uE01dfDtBl8,1991
11
- neelthee_mansion-3.3.0.dist-info/WHEEL,sha256=eOLhNAGa2EW3wWl_TU484h7q1UNgy0JXjjoqKoxAAQc,92
12
- neelthee_mansion-3.3.0.dist-info/entry_points.txt,sha256=j5ScTTyIidFhmT3F6hcX9pnlom4cJdDmfe26BmM6Igo,56
13
- neelthee_mansion-3.3.0.dist-info/top_level.txt,sha256=woQImQewylhly5Rb24HwPEGMxPY6do_PaUwGd5BNLOM,17
14
- neelthee_mansion-3.3.0.dist-info/RECORD,,
10
+ neelthee_mansion-3.3.1.dist-info/METADATA,sha256=o0Wti0QOa-OkGfYlNq0but3Q0Fhn5edcBp5DaBbetJE,1991
11
+ neelthee_mansion-3.3.1.dist-info/WHEEL,sha256=eOLhNAGa2EW3wWl_TU484h7q1UNgy0JXjjoqKoxAAQc,92
12
+ neelthee_mansion-3.3.1.dist-info/entry_points.txt,sha256=j5ScTTyIidFhmT3F6hcX9pnlom4cJdDmfe26BmM6Igo,56
13
+ neelthee_mansion-3.3.1.dist-info/top_level.txt,sha256=woQImQewylhly5Rb24HwPEGMxPY6do_PaUwGd5BNLOM,17
14
+ neelthee_mansion-3.3.1.dist-info/RECORD,,