neelthee-mansion 3.6.2__py3-none-any.whl → 3.6.4__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.
@@ -322,6 +322,8 @@ class PC(base_character):
322
322
 
323
323
  def inventory_add(self, added: list[item]):
324
324
  try:
325
+ if not isinstance(added, list):
326
+ added = [added]
325
327
  for item_to_add in added:
326
328
  if isinstance(item_to_add, item):
327
329
  # Add the item to the player's inventory
@@ -335,7 +337,7 @@ class PC(base_character):
335
337
  type_text(f"Error: {item_to_add} is not an instance of Item class")
336
338
  except Exception as e:
337
339
  # Print the full traceback if an exception occurs
338
- type_text(("Error:", e))
340
+ type_text(f"Error: {e}")
339
341
 
340
342
  def heal(self, value):
341
343
  self.hp = clamp(value, 0, self.maxhp)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: neelthee-mansion
3
- Version: 3.6.2
3
+ Version: 3.6.4
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
@@ -4,11 +4,11 @@ neelthee_mansion/Rooms.py,sha256=-70z28OFcbBbO_lcmfjMePiqeNMITpWKDuA48LR-Tnk,878
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=zggk8XTcnWi9q3uaKZugOIJZns_cRFfiTtWgg_YpLds,15318
7
+ neelthee_mansion/creatures.py,sha256=DQKYl1G3N92ycjay3_kxTMcOkj1S-zXKqRGUbbFZNlU,15396
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.6.2.dist-info/METADATA,sha256=LqLW3tysyRnJ4gABGt55M-SRtX1tzSJovY8gBbMClGY,1991
11
- neelthee_mansion-3.6.2.dist-info/WHEEL,sha256=eOLhNAGa2EW3wWl_TU484h7q1UNgy0JXjjoqKoxAAQc,92
12
- neelthee_mansion-3.6.2.dist-info/entry_points.txt,sha256=j5ScTTyIidFhmT3F6hcX9pnlom4cJdDmfe26BmM6Igo,56
13
- neelthee_mansion-3.6.2.dist-info/top_level.txt,sha256=woQImQewylhly5Rb24HwPEGMxPY6do_PaUwGd5BNLOM,17
14
- neelthee_mansion-3.6.2.dist-info/RECORD,,
10
+ neelthee_mansion-3.6.4.dist-info/METADATA,sha256=OFPfZU-RpB_fpE58PYYQNsRv__Bc29ZazOy1EZOUbaE,1991
11
+ neelthee_mansion-3.6.4.dist-info/WHEEL,sha256=eOLhNAGa2EW3wWl_TU484h7q1UNgy0JXjjoqKoxAAQc,92
12
+ neelthee_mansion-3.6.4.dist-info/entry_points.txt,sha256=j5ScTTyIidFhmT3F6hcX9pnlom4cJdDmfe26BmM6Igo,56
13
+ neelthee_mansion-3.6.4.dist-info/top_level.txt,sha256=woQImQewylhly5Rb24HwPEGMxPY6do_PaUwGd5BNLOM,17
14
+ neelthee_mansion-3.6.4.dist-info/RECORD,,