Refactors false alarms (#22010)

* rework anomalies

* oh yeah, events, too.

* does remaining events

* fixes most issues

* oops

* this too

* ensures traders actually fake announce properly

* fix tear

* missing return

* And another missing return
This commit is contained in:
Luc
2023-09-18 13:15:34 +01:00
committed by GitHub
parent fe139d1093
commit 0bd97b3e73
22 changed files with 162 additions and 150 deletions
+8
View File
@@ -13,6 +13,14 @@ GLOBAL_LIST_INIT(unused_trade_stations, list("sol"))
if(GLOB.unused_trade_stations.len)
station = pick_n_take(GLOB.unused_trade_stations)
/datum/event/traders/fake_announce()
. = TRUE
if(seclevel2num(get_security_level()) >= SEC_LEVEL_RED)
GLOB.minor_announcement.Announce("A trading shuttle from Jupiter Station has been denied docking permission due to the heightened security alert aboard [station_name()].", "Trader Shuttle Docking Request Refused")
return
GLOB.minor_announcement.Announce("A trading shuttle from Jupiter Station has been granted docking permission at [station_name()] arrivals port 4.", "Trader Shuttle Docking Request Accepted")
/datum/event/traders/start()
if(!station) // If there are no unused stations, just no.
return