From c87f5b3dc836d07c956713ce64d858291eab0d1e 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, 15 May 2022 14:32:43 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BB=B4=E6=8A=A4=E6=B8=85=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- source/component/map.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/component/map.py b/source/component/map.py index fca7b9c..7330a6a 100755 --- a/source/component/map.py +++ b/source/component/map.py @@ -52,6 +52,7 @@ class Map(): return True else: return False + # 被非植物障碍占据的格子对于一般植物不可种植 if any((i in c.NON_PLANT_OBJECTS) for i in self.map[map_y][map_x][c.MAP_PLANT]): return False if self.map[map_y][map_x][c.MAP_PLOT_TYPE] == c.MAP_GRASS: # 草地 @@ -104,7 +105,6 @@ class Map(): return False def getMapIndex(self, x, y): - # 引入新地图后需要增加这里的内容 if self.background_type in c.POOL_EQUIPPED_BACKGROUNDS: x -= c.MAP_POOL_OFFSET_X y -= c.MAP_POOL_OFFSET_Y