neelthee-mansion 3.19.18__py3-none-any.whl → 3.19.19__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.
@@ -1283,34 +1283,37 @@ def main():
1283
1283
 
1284
1284
  for enemy in enemies:
1285
1285
  if isinstance(enemy, creature):
1286
- if enemy.hp > 0:
1287
- enemy.type_text_flavor_text()
1288
- if ask_for_consent(f"Do you want to examine the {enemy.name}"):
1289
- enemy.type_text_description()
1290
-
1291
- # Handle specific creatures
1292
- if enemy.name == "hungry bear":
1293
- enemy_REF = handle_hungry_bear(player, enemy)
1294
- elif enemy.name == "grumpy pig":
1295
- enemy_REF = handle_grumpy_pig(player, enemy)
1296
- elif enemy.name == "greedy goblin":
1297
- enemy_REF = handle_greedy_goblin(player, enemy)
1298
- else:
1299
- enemy_REF = enemy
1286
+ if not isinstance(enemy, NPC):
1287
+ if enemy.hp > 0:
1288
+ enemy.type_text_flavor_text()
1289
+ if ask_for_consent(f"Do you want to examine the {enemy.name}"):
1290
+ enemy.type_text_description()
1291
+
1292
+ is_reacting = False
1293
+
1294
+ # Handle specific creatures
1295
+ if enemy.name == "hungry bear":
1296
+ enemy_REF = handle_hungry_bear(player, enemy)
1297
+ elif enemy.name == "grumpy pig":
1298
+ enemy_REF = handle_grumpy_pig(player, enemy)
1299
+ elif enemy.name == "greedy goblin":
1300
+ enemy_REF = handle_greedy_goblin(player, enemy)
1301
+ else:
1302
+ enemy_REF = enemy
1300
1303
 
1301
- if isinstance(enemy_REF, list):
1302
- is_reacting = enemy_REF[1]
1303
- enemy_REF = enemy_REF[0]
1304
- is_reactings.append(is_reacting)
1304
+ if isinstance(enemy_REF, list):
1305
+ is_reacting = enemy_REF[1]
1306
+ enemy_REF = enemy_REF[0]
1307
+ is_reactings.append(is_reacting)
1305
1308
 
1306
- enemies[enemies.index(enemy)] = enemy_REF
1309
+ enemies[enemies.index(enemy)] = enemy_REF
1307
1310
 
1308
- # Add to good or bad lists if reacting
1309
- if is_reacting:
1310
- if enemy_REF.frendly:
1311
- good_guys.append(enemy_REF)
1312
- else:
1313
- bad_guys.append(enemy_REF)
1311
+ # Add to good or bad lists if reacting
1312
+ if is_reacting:
1313
+ if enemy_REF.frendly:
1314
+ good_guys.append(enemy_REF)
1315
+ else:
1316
+ bad_guys.append(enemy_REF)
1314
1317
 
1315
1318
  if all_same_value(enemies, False):
1316
1319
  del ROOMS[player.CURRENTROOM]["creatures stats"]
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: neelthee-mansion
3
- Version: 3.19.18
3
+ Version: 3.19.19
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,5 +1,5 @@
1
1
  neelthee_mansion/Books.py,sha256=ABAdO2LQJ0PwPlHXpvdANoyz6uNbMTkI8-_RDpq6Qcc,25627
2
- neelthee_mansion/Mansion_of_Amnesia.py,sha256=uvBFoEJbchJDFLKrfcK3sZ7R-4T8xA7a-jcLqgfSp5Q,49504
2
+ neelthee_mansion/Mansion_of_Amnesia.py,sha256=8lRuSqEXjsWpEQq58zu6tUSmcG8glfPHsCuPsJe-7CA,49703
3
3
  neelthee_mansion/Quests.py,sha256=pUlru2RugP57MACQORZaF_X9lsbefTdPYTSO474phgo,2791
4
4
  neelthee_mansion/Rooms.py,sha256=OU2A0XhR6xQuGUWE_65JFSOXn6Unxpmow12ucPgWNW4,78352
5
5
  neelthee_mansion/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -8,9 +8,9 @@ neelthee_mansion/all_game_utils.py,sha256=AasunTkFmgAqt9ZIoYmymi4R7leBe4ubW-C1ts
8
8
  neelthee_mansion/creatures.py,sha256=p_jckHtzafeOsd5o7E_BXGQKWgmcOCvJjGho2Bk9zHg,20156
9
9
  neelthee_mansion/items.py,sha256=mV4K3Ep522LypL74NOT112bpP6ywQ1DR0A38KiHJFa8,5816
10
10
  neelthee_mansion/utils.py,sha256=GaCkein6dppeufYfBMk59gHAE2b4p9TJW2MsRjyyFvQ,13702
11
- neelthee_mansion-3.19.18.dist-info/LICENSE.md,sha256=CV8XGZaCyyAMdbkYFQUjb8AjBq9vkoyqdZCq1_hetms,1105
12
- neelthee_mansion-3.19.18.dist-info/METADATA,sha256=IuVKm7dc8wXZYk6asKp_VoM5fCc7T33vlmtx-HCJe10,1757
13
- neelthee_mansion-3.19.18.dist-info/WHEEL,sha256=eOLhNAGa2EW3wWl_TU484h7q1UNgy0JXjjoqKoxAAQc,92
14
- neelthee_mansion-3.19.18.dist-info/entry_points.txt,sha256=j5ScTTyIidFhmT3F6hcX9pnlom4cJdDmfe26BmM6Igo,56
15
- neelthee_mansion-3.19.18.dist-info/top_level.txt,sha256=woQImQewylhly5Rb24HwPEGMxPY6do_PaUwGd5BNLOM,17
16
- neelthee_mansion-3.19.18.dist-info/RECORD,,
11
+ neelthee_mansion-3.19.19.dist-info/LICENSE.md,sha256=CV8XGZaCyyAMdbkYFQUjb8AjBq9vkoyqdZCq1_hetms,1105
12
+ neelthee_mansion-3.19.19.dist-info/METADATA,sha256=AkblaBrTukhZ_fU1fWuEAN97DOaWedQiVcJhdJ8x0bs,1757
13
+ neelthee_mansion-3.19.19.dist-info/WHEEL,sha256=eOLhNAGa2EW3wWl_TU484h7q1UNgy0JXjjoqKoxAAQc,92
14
+ neelthee_mansion-3.19.19.dist-info/entry_points.txt,sha256=j5ScTTyIidFhmT3F6hcX9pnlom4cJdDmfe26BmM6Igo,56
15
+ neelthee_mansion-3.19.19.dist-info/top_level.txt,sha256=woQImQewylhly5Rb24HwPEGMxPY6do_PaUwGd5BNLOM,17
16
+ neelthee_mansion-3.19.19.dist-info/RECORD,,