Hasten ConditionSwitch-es

This commit is contained in:
Gouvernathor 2023-11-15 01:17:07 +01:00
parent 542db72609
commit 9d52bd9c92
1 changed files with 8 additions and 9 deletions

View File

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