From 20f6400e9a39e790d65b3c5e30c895707ee88ae3 Mon Sep 17 00:00:00 2001 From: wszqkzqk Date: Fri, 29 Jul 2022 17:08:48 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=BC=8F=E5=8F=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- source/component/map.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/component/map.py b/source/component/map.py index abdda2f..19dfc40 100755 --- a/source/component/map.py +++ b/source/component/map.py @@ -41,8 +41,8 @@ class Map(): # 地图单元格状态 # 注意是可变对象,不能直接引用 # 由于同一格显然不可能种两个相同的植物,所以用集合 - def initMapGrid(PLOT_TYPE): - return {c.MAP_PLANT:set(), c.MAP_SLEEP:False, c.MAP_PLOT_TYPE:PLOT_TYPE} + def initMapGrid(self, plot_type): + return {c.MAP_PLANT:set(), c.MAP_SLEEP:False, c.MAP_PLOT_TYPE:plot_type} # 判断位置是否可用 # 暂时没有写紫卡植物的判断方法