Skip to content

Commit

Permalink
[MIRROR] Adds a Debug command to stop all weather. (#400)
Browse files Browse the repository at this point in the history
* Adds a Debug command to stop all weather.

* Update admin_verbs.dm

---------

Co-authored-by: ArcaneMusic <[email protected]>
Co-authored-by: Bloop <[email protected]>
  • Loading branch information
3 people authored and FFMirrorBot committed Jan 11, 2024
1 parent 6250f90 commit 419d42e
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
14 changes: 14 additions & 0 deletions code/controllers/subsystem/weather.dm
Original file line number Diff line number Diff line change
Expand Up @@ -85,3 +85,17 @@ SUBSYSTEM_DEF(weather)
///Returns an active storm by its type
/datum/controller/subsystem/weather/proc/get_weather_by_type(type)
return locate(type) in processing

/**
* Calls end() on all current weather effects that are currently processing in the weather subsystem.
*/
/client/proc/stop_weather()
set category = "Debug"
set name = "Stop All Active Weather"

log_admin("[key_name(src)] stopped all currently active weather.")
message_admins("[key_name_admin(src)] stopped all currently active weather.")
for(var/datum/weather/current_weather as anything in SSweather.processing)
if(current_weather in SSweather.processing)
current_weather.end()
BLACKBOX_LOG_ADMIN_VERB("Stop All Active Weather")
2 changes: 1 addition & 1 deletion code/modules/admin/admin_verbs.dm
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ GLOBAL_PROTECT(admin_verbs_debug)
/client/proc/validate_puzzgrids,
/client/proc/GeneratePipeSpritesheet,
/client/proc/view_runtimes,

/client/proc/stop_weather,
/client/proc/reload_interactions, /*NOVA EDIT ADDITION*/
/client/proc/test_area_spawner, /*AUTOMAPPER - NOVA EDIT ADDITION*/
/client/proc/toggle_liquid_debug, /*NOVA EDIT ADDITION*/
Expand Down

0 comments on commit 419d42e

Please sign in to comment.