This commit is contained in:
星外之神 2022-04-08 19:11:18 +08:00
parent 56c7c10ae6
commit c97ef49a8c
2 changed files with 7 additions and 2 deletions

View File

@ -201,3 +201,7 @@ PLAY = 'play'
#BACKGROUND
BACKGROUND_DAY = 0
BACKGROUND_NIGHT = 1
BACKGROUND_POOL = 2
BACKGROUND_FOOGY = 3
BACKGROUND_ROOF = 4
BACKGROUND_ROOFNIGHT = 5

View File

@ -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