Weather Warnings (#19934)

* Atmospheric probes will now relay changes in weather when deployed.
Analog radios can be tuned into the weather broadcast and receive it,
provided they're in the same sector / connected z-levels.
* Fixed weather transitions to rainy / icy weather not working.
* Changed rainy / icy weather to have a blue color, reducing eye strain.


![image](https://github.com/user-attachments/assets/b8439595-25ff-4df0-8f5d-b2d27d147b70)

![image-1](https://github.com/user-attachments/assets/cf0018c2-c6c7-4cf6-8069-543ad98cd597)

![image](https://github.com/user-attachments/assets/5e4d87e2-33c8-494a-9b8f-8a62f12c496a)
This commit is contained in:
Geeves
2024-12-24 18:04:51 +02:00
committed by GitHub
parent 5c2c77a4b3
commit 67360a9bea
20 changed files with 225 additions and 49 deletions
+10 -2
View File
@@ -61,9 +61,15 @@
var/list/possible_themes = list(/datum/exoplanet_theme)
var/datum/exoplanet_theme/theme
///What weather state to use for this planet initially. If null, will not initialize any weather system. Must be a typepath rather than an instance.
/// What weather state to use for this planet initially. If null, will not initialize any weather system. Must be a typepath rather than an instance.
var/singleton/state/weather/initial_weather_state = /singleton/state/weather/calm
/// Whether the weather system supports having watery weather
var/has_water_weather = FALSE
/// Whether the weather system supports having icy weather
var/has_icy_weather = FALSE
var/features_budget = 4
var/list/possible_features = list()
var/list/spawned_features
@@ -553,7 +559,9 @@
/obj/effect/overmap/visitable/sector/exoplanet/proc/set_weather(var/singleton/state/weather/W)
initial_weather_state = W
//Tells all our levels exposed to the sky to force change the weather.
SSweather.setup_weather_system(map_z[length(map_z)], initial_weather_state)
var/obj/abstract/weather_system/new_weather_system = SSweather.setup_weather_system(map_z[length(map_z)], initial_weather_state)
new_weather_system.has_water_weather = has_water_weather
new_weather_system.has_icy_weather = has_icy_weather
///Setup the initial weather state for the planet. Doesn't apply it to our z levels however.
/obj/effect/overmap/visitable/sector/exoplanet/proc/generate_weather()