From c97ef49a8c60d72a80587750d1bf3af9eb3a9b0c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=98=9F=E5=A4=96=E4=B9=8B=E7=A5=9E?= Date: Fri, 8 Apr 2022 19:11:18 +0800 Subject: [PATCH] =?UTF-8?q?=E7=94=BB=E9=A5=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- source/constants.py | 6 +++++- source/state/level.py | 3 ++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/source/constants.py b/source/constants.py index 396e162..2ba7184 100755 --- a/source/constants.py +++ b/source/constants.py @@ -200,4 +200,8 @@ PLAY = 'play' #BACKGROUND BACKGROUND_DAY = 0 -BACKGROUND_NIGHT = 1 \ No newline at end of file +BACKGROUND_NIGHT = 1 +BACKGROUND_POOL = 2 +BACKGROUND_FOOGY = 3 +BACKGROUND_ROOF = 4 +BACKGROUND_ROOFNIGHT = 5 \ No newline at end of file diff --git a/source/state/level.py b/source/state/level.py index 98e380c..7d64c88 100644 --- a/source/state/level.py +++ b/source/state/level.py @@ -180,7 +180,8 @@ class Level(tool.State): self.hint_image = None self.hint_plant = False - if self.background_type == c.BACKGROUND_DAY and self.bar_type == c.CHOOSEBAR_STATIC: + # 0:白天 1:夜晚 2:泳池 3:浓雾 4:屋顶 5:月夜 + if self.background_type in {0, 2, 4} and self.bar_type == c.CHOOSEBAR_STATIC: self.produce_sun = True else: self.produce_sun = False