new item, shin bone , added.

This commit is contained in:
Storm Dragon
2025-02-10 20:49:50 -05:00
parent a991829cf9
commit 2351579bb5
15 changed files with 70 additions and 24 deletions

View File

@@ -181,7 +181,9 @@ class Enemy(Object):
if self.enemyType == "witch":
# Determine which item to drop
hasBroom = any(weapon.name == "witch_broom" for weapon in self.level.player.weapons)
itemType = "cauldron" if hasBroom else "witch_broom"
hasNunchucks = any(weapon.name == "nunchucks" for weapon in self.level.player.weapons)
# Drop witch_broom only if player has neither broom nor nunchucks
itemType = "witch_broom" if not (hasBroom or hasNunchucks) else "cauldron"
# Create drop 1-2 tiles away in random direction
direction = random.choice([-1, 1])