Graves basically rewritten.
This commit is contained in:
@@ -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)
|
||||
|
||||
|
Reference in New Issue
Block a user