增加墓碑吞噬者音效

This commit is contained in:
星外之神 2022-05-08 23:19:44 +08:00
parent 13389bae23
commit 384148af67
2 changed files with 2 additions and 0 deletions

Binary file not shown.

View File

@ -857,6 +857,8 @@ class Level(tool.State):
new_plant = plant.DoomShroom(x, y, self.map.map[map_y][map_x])
elif self.plant_name == c.GRAVEBUSTER:
new_plant = plant.GraveBuster(x, y, self.plant_groups[map_y], self.map, map_x)
# 播放吞噬音效
pg.mixer.Sound(os.path.join(os.path.dirname(os.path.dirname(os.path.dirname(__file__))) ,"resources", "sound", "gravebusterchomp.ogg")).play()
if new_plant.can_sleep and self.background_type in {c.BACKGROUND_DAY, c.BACKGROUND_POOL, c.BACKGROUND_ROOF, c.BACKGROUND_WALLNUTBOWLING, c.BACKGROUND_SINGLE, c.BACKGROUND_TRIPLE}: