Hasten ConditionSwitch-es

(cherry picked from commit 9d52bd9c92)
This commit is contained in:
Gouvernathor 2023-11-15 01:17:07 +01:00 committed by LoafyLemon
parent 0c564a521b
commit fe0193cfc2
1 changed files with 8 additions and 9 deletions

View File

@ -1,4 +1,3 @@
label weather_sound:
if game.weather == "blizzard":
play weather "sounds/blizzard.ogg" fadeout 0.5 fadein 0.5 if_changed
@ -30,15 +29,15 @@ transform cloud_move:
repeat
image weather_clear = ConditionSwitch(
"game.daytime == True", "images/rooms/main_room/weather/sky.webp",
"game.moon == True", "images/rooms/main_room/weather/night_sky_moon.webp",
"game.daytime == False", "images/rooms/main_room/weather/night_sky.webp",
"game.daytime", "images/rooms/main_room/weather/sky.webp",
"game.moon", "images/rooms/main_room/weather/night_sky_moon.webp",
"True", "images/rooms/main_room/weather/night_sky.webp",
)
image weather_overcast = ConditionSwitch(
"game.daytime == True", "images/rooms/main_room/weather/sky_overcast.webp",
"game.moon == True", "images/rooms/main_room/weather/night_sky_moon_overcast.webp",
"game.daytime == False", "images/rooms/main_room/weather/night_sky_overcast.webp",
"game.daytime", "images/rooms/main_room/weather/sky_overcast.webp",
"game.moon", "images/rooms/main_room/weather/night_sky_moon_overcast.webp",
"True", "images/rooms/main_room/weather/night_sky_overcast.webp",
)
image weather_cloudy_clouds_night = Composite(
@ -56,8 +55,8 @@ image weather_cloudy_clouds_day = Composite(
)
image weather_cloudy_clouds = ConditionSwitch(
"game.daytime == True", "weather_cloudy_clouds_day",
"game.daytime == False", "weather_cloudy_clouds_night",
"game.daytime", "weather_cloudy_clouds_day",
"True", "weather_cloudy_clouds_night",
)
image weather_cloudy_fx: