Refactor moon checks

This commit is contained in:
LoafyLemon 2024-04-26 13:59:29 +01:00
parent c7f7f6c8a0
commit 7ea08f8584
2 changed files with 4 additions and 4 deletions

View File

@ -55,4 +55,4 @@ label examine_fireplace:
init python:
def is_puzzle_box_in_fireplace():
return states.env.day >= 25 and not states.env.daytime and game.moon and not puzzle_box_ITEM.unlocked and not states.map.seventh_floor.unlocked
return states.env.day >= 25 and not states.env.daytime and states.env.moon and not puzzle_box_ITEM.unlocked and not states.map.seventh_floor.unlocked

View File

@ -30,13 +30,13 @@ transform cloud_move:
image weather clear = ConditionSwitch( # final
"states.env.daytime", "images/rooms/main_room/weather/sky.webp",
"game.moon", "images/rooms/main_room/weather/night_sky_moon.webp",
"states.env.moon", "images/rooms/main_room/weather/night_sky_moon.webp",
"True", "images/rooms/main_room/weather/night_sky.webp",
)
image weather overcast = ConditionSwitch( # final
"states.env.daytime", "images/rooms/main_room/weather/sky_overcast.webp",
"game.moon", "images/rooms/main_room/weather/night_sky_moon_overcast.webp",
"states.env.moon", "images/rooms/main_room/weather/night_sky_moon_overcast.webp",
"True", "images/rooms/main_room/weather/night_sky_overcast.webp",
)
@ -181,4 +181,4 @@ image weather_storm_fx:
contains:
"weather_rain_fx"
image weather storm = Fixed("weather overcast", "weather_storm_fx", fit_first=True) # final
image weather storm = Fixed("weather overcast", "weather_storm_fx", fit_first=True) # final