Allow forcing of rain

This commit is contained in:
Bingus_Violet 2024-03-03 23:59:29 -06:00
parent a58de11cc2
commit 81893c9de9

View file

@ -86,7 +86,7 @@ function converter(html, query) {
var weather = weathers[time.getDate() % weathers.length] var weather = weathers[time.getDate() % weathers.length]
if (weather == "rain") { if (weather == "rain" || "rain" in query || "hardRain" in query) {
html = html.replaceAll("{WEATHER_MODIFIER}", weatherGenerator.makeRain("hardRain" in query)) html = html.replaceAll("{WEATHER_MODIFIER}", weatherGenerator.makeRain("hardRain" in query))
html = html.replaceAll("{WEATHER_TEXT}", `The rain is so pretty... <a href="?hardRain">I wish I saw it more...</a>`) html = html.replaceAll("{WEATHER_TEXT}", `The rain is so pretty... <a href="?hardRain">I wish I saw it more...</a>`)