neelthee-mansion 3.5.3__py3-none-any.whl → 3.6.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.
@@ -966,13 +966,18 @@ def initializer():
966
966
 
967
967
 
968
968
  while True:
969
+ type_text("")
970
+ type_text(f"0. Random")
969
971
  for idx, background in enumerate(BACKGROUNDS):
970
- type_text(f"{idx}. {background}")
972
+ type_text(f"{idx + 1}. {background}")
971
973
 
972
974
  background = loop_til_valid_input("What background do you want? (please select the number to the left of them)", "You didn't pick one", int)
973
- lstIndex = last_index(CHARACTERSLIST)
974
- if background <= lstIndex:
975
- background = BACKGROUNDS[background]
975
+ length = len(CHARACTERSLIST)
976
+ if 1 <= background <= length:
977
+ background = BACKGROUNDS[background-1]
978
+ break
979
+ elif background == 0:
980
+ background = choice(BACKGROUNDS)
976
981
  break
977
982
  else:
978
983
  type_text("You didn't pick one")
@@ -199,11 +199,11 @@ class Guard(creature):
199
199
  rooms = []
200
200
  for direction, room in ROOMS[self.current_room]['directions'].items():
201
201
  rooms.append(room)
202
- self.current_room = choice(rooms).GetRoom()
202
+ self.current_room = choice(rooms).GetRoom(self.current_room)
203
203
  elif self.patrol_type == 'follow':
204
204
  for direction, room in ROOMS[self.current_room]['directions'].items():
205
- if room.GetRoom() == player.CURRENTROOM:
206
- self.current_room = room.GetRoom()
205
+ if room.GetRoom(self.current_room) == player.CURRENTROOM:
206
+ self.current_room = room.GetRoom(self.current_room)
207
207
  return
208
208
 
209
209
  def check_detection(self, player_room):
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: neelthee-mansion
3
- Version: 3.5.3
3
+ Version: 3.6.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=ocCqpc-UxQJso67dSIrSzA6ZkFObGt7JIYehx2M9Lm4,44030
1
+ neelthee_mansion/Mansion_of_Amnesia.py,sha256=grW9Yn2oqm88hlWwEaM27gfl-F9QcoYnM5EyXUzS8lM,44182
2
2
  neelthee_mansion/Quests.py,sha256=q6VzR3mt9AYe29ACWZuf-suz4yOKrL946aJ493eQRS0,2611
3
3
  neelthee_mansion/Rooms.py,sha256=-70z28OFcbBbO_lcmfjMePiqeNMITpWKDuA48LR-Tnk,87843
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
- neelthee_mansion/creatures.py,sha256=FsBVgO6drEKS97lVXUZhbzzqHdOogzNzI8qmBkzvSZ4,15267
7
+ neelthee_mansion/creatures.py,sha256=zggk8XTcnWi9q3uaKZugOIJZns_cRFfiTtWgg_YpLds,15318
8
8
  neelthee_mansion/items.py,sha256=78roH1JNOf9eB7PgXkJhs8K6eVsg1By05BRUn5hrP4M,5148
9
9
  neelthee_mansion/utils.py,sha256=Wt1CdK4eCskrxRXkeKgzVoa_NIzwQ047dJU-b_e8pb8,13559
10
- neelthee_mansion-3.5.3.dist-info/METADATA,sha256=jFuVS9iFcxPCyannqP9mAMarRvOUHgjl-R0aqDB_O4g,1991
11
- neelthee_mansion-3.5.3.dist-info/WHEEL,sha256=eOLhNAGa2EW3wWl_TU484h7q1UNgy0JXjjoqKoxAAQc,92
12
- neelthee_mansion-3.5.3.dist-info/entry_points.txt,sha256=j5ScTTyIidFhmT3F6hcX9pnlom4cJdDmfe26BmM6Igo,56
13
- neelthee_mansion-3.5.3.dist-info/top_level.txt,sha256=woQImQewylhly5Rb24HwPEGMxPY6do_PaUwGd5BNLOM,17
14
- neelthee_mansion-3.5.3.dist-info/RECORD,,
10
+ neelthee_mansion-3.6.1.dist-info/METADATA,sha256=m7V98OUUhXqdRj7DUFswK1RG9ztIq-Y-tiHgsNVIvhE,1991
11
+ neelthee_mansion-3.6.1.dist-info/WHEEL,sha256=eOLhNAGa2EW3wWl_TU484h7q1UNgy0JXjjoqKoxAAQc,92
12
+ neelthee_mansion-3.6.1.dist-info/entry_points.txt,sha256=j5ScTTyIidFhmT3F6hcX9pnlom4cJdDmfe26BmM6Igo,56
13
+ neelthee_mansion-3.6.1.dist-info/top_level.txt,sha256=woQImQewylhly5Rb24HwPEGMxPY6do_PaUwGd5BNLOM,17
14
+ neelthee_mansion-3.6.1.dist-info/RECORD,,