From d9a49ff1a12d03f7df7851a7af0782bc16849627 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=98=9F=E5=A4=96=E4=B9=8B=E7=A5=9E?= Date: Tue, 7 Jun 2022 14:59:49 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=9D=9A=E6=9E=9C=E4=BF=9D?= =?UTF-8?q?=E9=BE=84=E7=90=83=E9=97=AA=E9=80=80bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- source/component/map.py | 2 +- source/state/level.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/source/component/map.py b/source/component/map.py index f95527e..83b4cf7 100755 --- a/source/component/map.py +++ b/source/component/map.py @@ -137,7 +137,7 @@ class Map(): map_y * c.GRID_Y_SIZE + c.GRID_Y_SIZE//5 * 3 + c.MAP_OFFSET_Y) def setMapGridType(self, map_x, map_y, plot_type): - self.map[map_y][map_x] = plot_type + self.map[map_y][map_x][c.MAP_PLOT_TYPE] = plot_type def addMapPlant(self, map_x, map_y, plantName, sleep=False): self.map[map_y][map_x][c.MAP_PLANT].add(plantName) diff --git a/source/state/level.py b/source/state/level.py index d4d222d..9358848 100644 --- a/source/state/level.py +++ b/source/state/level.py @@ -340,7 +340,7 @@ class Level(tool.State): def initBowlingMap(self): for x in range(3, self.map.width): for y in range(self.map.height): - self.map.setMapGridType(x, y, c.MAP_STATE_UNAVAILABLE) # 将坚果保龄球红线右侧设置为不可种植任何植物 + self.map.setMapGridType(x, y, c.MAP_UNAVAILABLE) # 将坚果保龄球红线右侧设置为不可种植任何植物 def initState(self): if c.CHOOSEBAR_TYPE in self.map_data: