Shin bones now restore health like they are supposed to do. Healing now happens even if invincible. Thanks Ember for the bug report.

This commit is contained in:
Storm Dragon
2025-02-15 20:53:35 -05:00
parent bf63513c44
commit 3ca3b180c6
2 changed files with 10 additions and 3 deletions

View File

@@ -70,6 +70,11 @@ class PowerUp(Object):
elif self.item_type == 'shin_bone': # Add shin bone handling
player.shinBoneCount += 1
player._coins += 5
if player.get_health() < player.get_max_health():
player.set_health(min(
player.get_health() + 1,
player.get_max_health()
))
self.check_for_nunchucks(player)
elif self.item_type == 'witch_broom':
broomWeapon = Weapon.create_witch_broom()