mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-15 17:13:46 +01:00
Updates False Alarm Event (#31845)
* Updates False Alarm Event * Whoops
This commit is contained in:
@@ -54,7 +54,9 @@ GLOBAL_LIST_EMPTY(current_pending_diseases)
|
||||
else
|
||||
to_chat(M, chat_box_examine(SPAN_DEADSAY("<b>Disease outbreak:</b> The next new arrival is a carrier of a \"[chosen_disease.severity]\" disease: [chosen_disease.name]!")))
|
||||
|
||||
/datum/event/disease_outbreak/announce()
|
||||
/datum/event/disease_outbreak/announce(false_alarm)
|
||||
if(false_alarm)
|
||||
severity = pick(EVENT_LEVEL_MAJOR, EVENT_LEVEL_MODERATE, EVENT_LEVEL_MUNDANE)
|
||||
switch(severity)
|
||||
if(EVENT_LEVEL_MAJOR)
|
||||
GLOB.major_announcement.Announce("Lethal viral pathogen detected aboard [station_name()]. All personnel must contain the outbreak.", "Biohazard Alert", 'sound/effects/siren-spooky.ogg', new_sound2 = 'sound/AI/outbreak_virus.ogg')
|
||||
|
||||
@@ -19,9 +19,15 @@
|
||||
/datum/event/rogue_drone,
|
||||
/datum/event/solar_flare,
|
||||
/datum/event/spider_infestation,
|
||||
/datum/event/spider_terror,
|
||||
/datum/event/tear,
|
||||
/datum/event/tear/honk,
|
||||
/datum/event/traders,
|
||||
/datum/event/vent_clog
|
||||
/datum/event/disease_outbreak,
|
||||
/datum/event/vent_clog,
|
||||
/datum/event/disposals_clog,
|
||||
/datum/event/demon_incursion,
|
||||
/datum/event/shuttle_loan,
|
||||
) + subtypesof(/datum/event/anomaly) + subtypesof(/datum/event/carp_migration)
|
||||
|
||||
var/datum/event/working_event
|
||||
|
||||
@@ -7,8 +7,19 @@
|
||||
/datum/event/tear/honk/spawn_tear(location)
|
||||
HE = new /obj/effect/tear/honk(location)
|
||||
|
||||
/datum/event/tear/honk/announce()
|
||||
GLOB.minor_announcement.Announce("A Honknomoly has opened. Expected location: [impact_area.name].", "Honknomoly Alert", 'sound/items/airhorn.ogg')
|
||||
/datum/event/tear/honk/announce(false_alarm)
|
||||
var/area/target_area = impact_area
|
||||
if(!target_area)
|
||||
if(false_alarm)
|
||||
target_area = findEventArea()
|
||||
if(isnull(target_area))
|
||||
log_debug("Tried to announce a false-alarm honk tear without a valid area!")
|
||||
kill()
|
||||
else
|
||||
log_debug("Tried to announce a honk tear without a valid area!")
|
||||
kill()
|
||||
return
|
||||
GLOB.minor_announcement.Announce("A Honknomoly has opened. Expected location: [target_area.name].", "Honknomoly Alert", 'sound/items/airhorn.ogg')
|
||||
|
||||
/datum/event/tear/honk/end()
|
||||
if(HE)
|
||||
|
||||
Reference in New Issue
Block a user