在夜晚关卡不推荐选择咖啡豆 (#16)

This commit is contained in:
星外之神 2023-11-24 10:32:11 +08:00 committed by GitHub
parent 9e63c5bf57
commit 47b4ba1783
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -286,6 +286,9 @@ class Panel():
elif (plant_name in c.CAN_SLEEP_PLANTS
and self.background_type in c.DAYTIME_BACKGROUNDS):
not_recommend = c.REASON_WILL_SLEEP
elif (plant_name == c.COFFEEBEAN
and self.background_type not in c.DAYTIME_BACKGROUNDS):
not_recommend = c.REASON_OTHER
# 还有屋顶场景,以及其他植物没有实现的植物没有写进来
else:
not_recommend = 0