diff --git a/resources/sound/gravebusterchomp.ogg b/resources/sound/gravebusterchomp.ogg new file mode 100644 index 0000000..4924365 Binary files /dev/null and b/resources/sound/gravebusterchomp.ogg differ diff --git a/source/state/level.py b/source/state/level.py index 7567c9d..f3d4df7 100644 --- a/source/state/level.py +++ b/source/state/level.py @@ -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}: