From f51424811be70d18db882bc8254ad1a8b46e1591 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=98=9F=E5=A4=96=E4=B9=8B=E7=A5=9E?= Date: Sat, 7 May 2022 23:32:03 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E9=AB=98=E5=9D=9A=E6=9E=9C?= =?UTF-8?q?=E7=A7=8D=E6=A4=8D=E9=97=AA=E9=80=80=E7=9A=84=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- source/state/level.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/source/state/level.py b/source/state/level.py index b167df2..ad78d1c 100644 --- a/source/state/level.py +++ b/source/state/level.py @@ -786,6 +786,8 @@ class Level(tool.State): new_plant = plant.CoffeeBean(x, y, self.plant_groups[map_y], self.map.map[map_y][map_x]) elif self.plant_name == c.SEASHROOM: new_plant = plant.SeaShroom(x, y, self.bullet_groups[map_y]) + elif self.plant_name == c.TALLNUT: + new_plant = plant.TallNut(x, y) 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}: new_plant.setSleep()