From d30eeb725ed02c7448c6439132ec3ef88092fa12 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=98=9F=E5=A4=96=E4=B9=8B=E7=A5=9E?= Date: Sun, 8 May 2022 20:02:40 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8E=BB=E9=99=A4=E6=97=A0=E7=94=A8=E4=BC=A0?= =?UTF-8?q?=E5=8F=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- source/component/plant.py | 3 +-- source/state/level.py | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/source/component/plant.py b/source/component/plant.py index f7d862d..6eed6ee 100755 --- a/source/component/plant.py +++ b/source/component/plant.py @@ -1310,7 +1310,7 @@ class TangleKlep(Plant): # 坑形态的毁灭菇同地刺一样不可以被啃食 # 爆炸时杀死同一格的所有植物 class DoomShroom(Plant): - def __init__(self, x, y, plant_group, mapContent): + def __init__(self, x, y, mapContent): Plant.__init__(self, x, y, c.DOOMSHROOM, c.PLANT_HEALTH, None) self.can_sleep = True self.mapContent = mapContent @@ -1322,7 +1322,6 @@ class DoomShroom(Plant): self.explode_y_range = 2 self.explode_x_range = c.GRID_X_SIZE * 2.5 self.start_boom = False - self.plant_group = plant_group self.originalX = x self.originalY = y diff --git a/source/state/level.py b/source/state/level.py index 840babe..1c3a610 100644 --- a/source/state/level.py +++ b/source/state/level.py @@ -793,7 +793,7 @@ class Level(tool.State): elif self.plant_name == c.TANGLEKLEP: new_plant = plant.TangleKlep(x, y) elif self.plant_name == c.DOOMSHROOM: - new_plant = plant.DoomShroom(x, y, self.plant_groups[map_y], self.map.map[map_y][map_x]) + new_plant = plant.DoomShroom(x, y, self.map.map[map_y][map_x]) 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}: