From d124579be4863e039bbea9a0a3bc884bb00adda1 Mon Sep 17 00:00:00 2001 From: Asriel Senna Date: Sat, 18 Nov 2023 15:41:23 +0100 Subject: [PATCH] Fix weather storm and create the weather image tag --- game/scripts/rooms/main_room/init.rpy | 2 +- .../rooms/main_room/objects/weather.rpy | 27 +++++++------------ 2 files changed, 11 insertions(+), 18 deletions(-) diff --git a/game/scripts/rooms/main_room/init.rpy b/game/scripts/rooms/main_room/init.rpy index 44ac03d3..d293bf00 100644 --- a/game/scripts/rooms/main_room/init.rpy +++ b/game/scripts/rooms/main_room/init.rpy @@ -30,7 +30,7 @@ screen main_room(): if room_menu_active and game.day > 1 and not renpy.android: use hotkeys_main - add "weather_[game.weather]" xycenter (430, 218) + add "weather [game.weather]" xycenter (430, 218) # Walls if game.daytime: diff --git a/game/scripts/rooms/main_room/objects/weather.rpy b/game/scripts/rooms/main_room/objects/weather.rpy index 6131b667..cf137c86 100644 --- a/game/scripts/rooms/main_room/objects/weather.rpy +++ b/game/scripts/rooms/main_room/objects/weather.rpy @@ -26,13 +26,13 @@ transform cloud_move: pause 7 repeat -image weather_clear = ConditionSwitch( # final +image weather clear = ConditionSwitch( # final "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( # final +image weather overcast = ConditionSwitch( # final "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", @@ -71,7 +71,7 @@ image weather_cloudy_fx: pause 2 repeat -image weather_cloudy = Fixed("weather_clear", "weather_cloudy_fx", fit_first=True) # final +image weather cloudy = Fixed("weather clear", "weather_cloudy_fx", fit_first=True) # final image weather_rain_fx: animation @@ -83,7 +83,7 @@ image weather_rain_fx: pause.1 repeat -image weather_rain = Fixed("weather_overcast", "weather_rain_fx", fit_first=True) # final +image weather rain = Fixed("weather overcast", "weather_rain_fx", fit_first=True) # final image weather_snow_fx: animation @@ -109,7 +109,7 @@ image weather_snow_fx: pause.07 repeat -image weather_snow = Fixed("weather_overcast", "weather_snow_fx", fit_first=True) # final +image weather snow = Fixed("weather overcast", "weather_snow_fx", fit_first=True) # final image weather_blizzard_fx: animation @@ -135,12 +135,12 @@ image weather_blizzard_fx: pause.05 repeat -image weather_blizzard = Fixed("weather_overcast", "weather_blizzard_fx", fit_first=True) # final +image weather blizzard = Fixed("weather overcast", "weather_blizzard_fx", fit_first=True) # final image weather_storm_fx: animation - parallel: + contains: animation pause 20 Null() @@ -163,14 +163,7 @@ image weather_storm_fx: pause 20 repeat - parallel: - animation - "images/rooms/main_room/weather/rain_01.webp" - pause.1 - "images/rooms/main_room/weather/rain_02.webp" - pause.1 - "images/rooms/main_room/weather/rain_03.webp" - pause.1 - repeat + 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