Graves basically rewritten.

This commit is contained in:
Storm Dragon
2025-02-08 03:30:45 -05:00
parent e0e097a397
commit ada16cb40f
8 changed files with 172 additions and 52 deletions

View File

@@ -15,14 +15,14 @@ class CoffinObject(Object):
)
self.sounds = sounds
self.level = level
self.is_broken = False
self.isBroken = False
self.dropped_item = None
self.specified_item = item
def hit(self, player_pos):
"""Handle being hit by the player's weapon"""
if not self.is_broken:
self.is_broken = True
if not self.isBroken:
self.isBroken = True
play_sound(self.sounds['coffin_shatter'])
self.level.player.stats.update_stat('Coffins broken', 1)