From f496e576fd8d38b6decf3cf7ea74d3ff5012d3d9 Mon Sep 17 00:00:00 2001 From: wszqkzqk Date: Wed, 14 Sep 2022 07:41:05 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=94=B9=E4=B8=8D=E6=8E=A8=E8=8D=90?= =?UTF-8?q?=E7=9A=84=E9=80=BB=E8=BE=91=E9=A1=BA=E5=BA=8F=EF=BC=8C=E9=98=B2?= =?UTF-8?q?=E6=AD=A2=E6=B5=B7=E8=98=91=E8=8F=87=E9=94=99=E8=AF=AF=E5=BD=92?= =?UTF-8?q?=E7=B1=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- source/component/menubar.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/source/component/menubar.py b/source/component/menubar.py index 65e1372..5683de3 100755 --- a/source/component/menubar.py +++ b/source/component/menubar.py @@ -277,15 +277,15 @@ class Panel(): y += c.PANEL_Y_INTERNAL x += c.PANEL_X_INTERNAL plant_name = c.PLANT_CARD_INFO[index][c.PLANT_NAME_INDEX] - if (plant_name in c.CAN_SLEEP_PLANTS - and self.background_type in c.DAYTIME_BACKGROUNDS): - not_recommend = c.REASON_WILL_SLEEP + if (plant_name in c.WATER_PLANTS + and self.background_type not in c.POOL_EQUIPPED_BACKGROUNDS): + not_recommend = c.REASON_OTHER elif (plant_name == c.GRAVEBUSTER and self.background_type != c.BACKGROUND_NIGHT): not_recommend = c.REASON_OTHER - elif (plant_name in c.WATER_PLANTS - and self.background_type not in c.POOL_EQUIPPED_BACKGROUNDS): - not_recommend = c.REASON_OTHER + elif (plant_name in c.CAN_SLEEP_PLANTS + and self.background_type in c.DAYTIME_BACKGROUNDS): + not_recommend = c.REASON_WILL_SLEEP # 还有屋顶场景,以及其他植物没有实现的植物没有写进来 else: not_recommend = 0