From d5080c194ddf0edaacf0c61a1dfd60b09fb27c7e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=98=9F=E5=A4=96=E4=B9=8B=E7=A5=9E?= Date: Thu, 5 May 2022 23:23:55 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E5=9C=9F=E8=B1=86=E9=9B=B7?= =?UTF-8?q?=E9=9F=B3=E6=95=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- source/component/plant.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/component/plant.py b/source/component/plant.py index 41e78be..26528ce 100755 --- a/source/component/plant.py +++ b/source/component/plant.py @@ -660,11 +660,11 @@ class PotatoMine(Plant): def attacking(self): if self.bomb_timer == 0: self.bomb_timer = self.current_time + # 播放音效 + pg.mixer.Sound(os.path.join(os.path.dirname(os.path.dirname(os.path.dirname(__file__))) ,"resources", "sound", "potatomine.ogg")).play() self.changeFrames(self.explode_frames) elif (self.current_time - self.bomb_timer) > 500: self.health = 0 - # 播放音效 - pg.mixer.Sound(os.path.join(os.path.dirname(os.path.dirname(os.path.dirname(__file__))) ,"resources", "sound", "potatomine.ogg")).play() class Squash(Plant):