diff --git a/README.md b/README.md index bd53c12..18282a5 100644 --- a/README.md +++ b/README.md @@ -156,6 +156,7 @@ nuitka --mingw64 --standalone --onefile --show-progress --show-memory --output-d * 从地面刺伤 * 已实现 * 缠绕与拖拽 + * 自0.7.5.0已实现 * 吞噬 * 已实现 * 特殊 diff --git a/resources/sound/tangleKelpDrag.ogg b/resources/sound/tangleKelpDrag.ogg new file mode 100644 index 0000000..e04edc6 Binary files /dev/null and b/resources/sound/tangleKelpDrag.ogg differ diff --git a/source/component/plant.py b/source/component/plant.py index 0e55835..8b06296 100755 --- a/source/component/plant.py +++ b/source/component/plant.py @@ -1292,6 +1292,8 @@ class TangleKlep(Plant): self.changeFrames(self.splash_frames) self.zombie_group.remove(self.attack_zombie) self.attack_zombie.kill() + # 播放拖拽音效 + pg.mixer.Sound(os.path.join(os.path.dirname(os.path.dirname(os.path.dirname(__file__))) ,"resources", "sound", "tangleKelpDrag.ogg")).play() # 这里必须用elif排除尚未进入splash阶段,以免误触 elif (self.frame_index + 1) >= self.frame_num: self.health = 0 \ No newline at end of file diff --git a/source/state/level.py b/source/state/level.py index 2cad525..e7d7a73 100644 --- a/source/state/level.py +++ b/source/state/level.py @@ -1023,7 +1023,7 @@ class Level(tool.State): if ((pg.sprite.collide_circle_ratio(0.6)(zombie, plant)) or (abs(zombie.rect.centerx - x) <= plant.explode_x_range)): zombie.setDamage(1800, damageType=c.ZOMBIE_RANGE_DAMAGE) - elif plant.name != c.WALLNUTBOWLING: + elif plant.name not in {c.WALLNUTBOWLING, c.TANGLEKLEP}: # 触发植物死亡音效 pg.mixer.Sound(os.path.join(os.path.dirname(os.path.dirname(os.path.dirname(__file__))) ,"resources", "sound", "plantDie.ogg")).play() else: