mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2026-08-23 05:07:51 +01:00
[MIRROR] More globals (#12530)
Co-authored-by: Kashargul <144968721+Kashargul@users.noreply.github.com>
This commit is contained in:
co-authored by
Kashargul
parent
de8fed65df
commit
4f5dce5ebe
@@ -11,7 +11,7 @@
|
||||
/datum/event/anomaly/announce()
|
||||
if(isnull(impact_area))
|
||||
impact_area = placer.find_valid_area()
|
||||
command_announcement.Announce("Energetic flux wave detected on [ANOMALY_ANNOUNCE_DANGEROUS_TEXT] [impact_area.name].", "Anomaly Alert")
|
||||
GLOB.command_announcement.Announce("Energetic flux wave detected on [ANOMALY_ANNOUNCE_DANGEROUS_TEXT] [impact_area.name].", "Anomaly Alert")
|
||||
|
||||
/datum/event/anomaly/start()
|
||||
var/turf/anomaly_turf
|
||||
@@ -35,7 +35,7 @@
|
||||
/datum/event/anomaly/bioscrambler/announce()
|
||||
if(isnull(impact_area))
|
||||
impact_area = placer.find_valid_area()
|
||||
command_announcement.Announce("Biologic trait swapping agent detected on [ANOMALY_ANNOUNCE_MEDIUM_TEXT] [impact_area.name].", "Anomaly Alert")
|
||||
GLOB.command_announcement.Announce("Biologic trait swapping agent detected on [ANOMALY_ANNOUNCE_MEDIUM_TEXT] [impact_area.name].", "Anomaly Alert")
|
||||
|
||||
// Bluespace
|
||||
/datum/event/anomaly/bluespace
|
||||
@@ -46,7 +46,7 @@
|
||||
/datum/event/anomaly/bluespace/announce()
|
||||
if(isnull(impact_area))
|
||||
impact_area = placer.find_valid_area()
|
||||
command_announcement.Announce("Bluespace instability detected on [ANOMALY_ANNOUNCE_MEDIUM_TEXT] [impact_area.name].", "Anomaly Alert")
|
||||
GLOB.command_announcement.Announce("Bluespace instability detected on [ANOMALY_ANNOUNCE_MEDIUM_TEXT] [impact_area.name].", "Anomaly Alert")
|
||||
|
||||
// Dimensional
|
||||
/datum/event/anomaly/dimensional
|
||||
@@ -64,7 +64,7 @@
|
||||
/datum/event/anomaly/dimensional/announce()
|
||||
if(isnull(impact_area))
|
||||
impact_area = placer.find_valid_area()
|
||||
command_announcement.Announce("Dimensional instability detected on [ANOMALY_ANNOUNCE_MEDIUM_TEXT] [impact_area.name].", "Anomaly Alert")
|
||||
GLOB.command_announcement.Announce("Dimensional instability detected on [ANOMALY_ANNOUNCE_MEDIUM_TEXT] [impact_area.name].", "Anomaly Alert")
|
||||
|
||||
// Flux
|
||||
|
||||
@@ -76,7 +76,7 @@
|
||||
/datum/event/anomaly/flux/announce()
|
||||
if(isnull(impact_area))
|
||||
impact_area = placer.find_valid_area()
|
||||
command_announcement.Announce("Hyper-energetic flux wave detected on [ANOMALY_ANNOUNCE_DANGEROUS_TEXT] [impact_area.name].", "Anomaly Alert")
|
||||
GLOB.command_announcement.Announce("Hyper-energetic flux wave detected on [ANOMALY_ANNOUNCE_DANGEROUS_TEXT] [impact_area.name].", "Anomaly Alert")
|
||||
|
||||
// Gravitational
|
||||
/datum/event/anomaly/grav
|
||||
@@ -87,7 +87,7 @@
|
||||
/datum/event/anomaly/grav/announce()
|
||||
if(isnull(impact_area))
|
||||
impact_area = placer.find_valid_area()
|
||||
command_announcement.Announce("Gravitational anomaly detected on [ANOMALY_ANNOUNCE_HARMFUL_TEXT] [impact_area.name].", "Anomaly Alert")
|
||||
GLOB.command_announcement.Announce("Gravitational anomaly detected on [ANOMALY_ANNOUNCE_HARMFUL_TEXT] [impact_area.name].", "Anomaly Alert")
|
||||
|
||||
// Hallucination
|
||||
/datum/event/anomaly/hallucination
|
||||
@@ -98,7 +98,7 @@
|
||||
/datum/event/anomaly/hallucination/announce()
|
||||
if(isnull(impact_area))
|
||||
impact_area = placer.find_valid_area()
|
||||
command_announcement.Announce("Hallucinatory event detected on [ANOMALY_ANNOUNCE_MEDIUM_TEXT] [impact_area.name].", "Anomaly Alert")
|
||||
GLOB.command_announcement.Announce("Hallucinatory event detected on [ANOMALY_ANNOUNCE_MEDIUM_TEXT] [impact_area.name].", "Anomaly Alert")
|
||||
|
||||
// Pyroclastic
|
||||
/datum/event/anomaly/pyro
|
||||
@@ -109,7 +109,7 @@
|
||||
/datum/event/anomaly/pyro/announce()
|
||||
if(isnull(impact_area))
|
||||
impact_area = placer.find_valid_area()
|
||||
command_announcement.Announce("Pyroclastic anomaly detected on [ANOMALY_ANNOUNCE_HARMFUL_TEXT] [impact_area.name].", "Anomaly Alert")
|
||||
GLOB.command_announcement.Announce("Pyroclastic anomaly detected on [ANOMALY_ANNOUNCE_HARMFUL_TEXT] [impact_area.name].", "Anomaly Alert")
|
||||
|
||||
// Weather
|
||||
/datum/event/anomaly/weather
|
||||
@@ -120,7 +120,7 @@
|
||||
/datum/event/anomaly/weather/announce()
|
||||
if(isnull(impact_area))
|
||||
impact_area = placer.find_valid_area()
|
||||
command_announcement.Announce("Metereologic anomaly detected on [ANOMALY_ANNOUNCE_MEDIUM_TEXT] [impact_area.name].", "Anomaly Alert")
|
||||
GLOB.command_announcement.Announce("Metereologic anomaly detected on [ANOMALY_ANNOUNCE_MEDIUM_TEXT] [impact_area.name].", "Anomaly Alert")
|
||||
|
||||
// Dust
|
||||
/datum/event/anomaly/dust
|
||||
@@ -131,4 +131,4 @@
|
||||
/datum/event/anomaly/dust/announce()
|
||||
if(isnull(impact_area))
|
||||
impact_area = placer.find_valid_area()
|
||||
command_announcement.Announce("Anomalous dust particles detected on [ANOMALY_ANNOUNCE_MEDIUM_TEXT] [impact_area.name].", "Anomaly Alert")
|
||||
GLOB.command_announcement.Announce("Anomalous dust particles detected on [ANOMALY_ANNOUNCE_MEDIUM_TEXT] [impact_area.name].", "Anomaly Alert")
|
||||
|
||||
@@ -57,4 +57,4 @@
|
||||
log_and_message_admins("Bluespace lockers linked. Entry: [get_area(entry_point)] Exit: [get_area(exit_point)]")
|
||||
|
||||
/datum/event/bluespace_locker/announce()
|
||||
command_announcement.Announce("Bluespace anomaly detected near [station_name()]. Possible location, [get_area(pick(entry_point, exit_point))].", "Anomaly Alert")
|
||||
GLOB.command_announcement.Announce("Bluespace anomaly detected near [station_name()]. Possible location, [get_area(pick(entry_point, exit_point))].", "Anomaly Alert")
|
||||
|
||||
@@ -83,7 +83,7 @@
|
||||
new spawn_type(T)
|
||||
|
||||
/datum/event/dangerinfestation/announce()
|
||||
command_announcement.Announce("Bioscans indicate that [dangerstring] have been entered [locstring]. Contain them before they start causing damage.", "Alien infestation")
|
||||
GLOB.command_announcement.Announce("Bioscans indicate that [dangerstring] have been entered [locstring]. Contain them before they start causing damage.", "Alien infestation")
|
||||
|
||||
#undef LOC_RIOT
|
||||
#undef LOC_ATMOS
|
||||
|
||||
@@ -106,7 +106,7 @@
|
||||
new spawn_type(T)
|
||||
|
||||
/datum/event/highdangerinfestation/announce()
|
||||
command_announcement.Announce("Bioscans indicate that [dangerstring] have been entered [locstring]. Contain them before they start causing damage.", "Alien infestation")
|
||||
GLOB.command_announcement.Announce("Bioscans indicate that [dangerstring] have been entered [locstring]. Contain them before they start causing damage.", "Alien infestation")
|
||||
|
||||
#undef LOC_RIOT
|
||||
#undef LOC_ATMOS
|
||||
|
||||
@@ -33,9 +33,9 @@
|
||||
|
||||
/datum/event/horde_infestation/announce()
|
||||
if(spiders) //Horrible way of doing this
|
||||
command_announcement.Announce("Unidentified lifesigns detected coming aboard [station_name()]. Secure any exterior access, including ducting and ventilation.", "Lifesign Alert", new_sound = 'sound/AI/aliens.ogg')
|
||||
GLOB.command_announcement.Announce("Unidentified lifesigns detected coming aboard [station_name()]. Secure any exterior access, including ducting and ventilation.", "Lifesign Alert", new_sound = 'sound/AI/aliens.ogg')
|
||||
if(metroids) //Horrible way of doing this
|
||||
command_announcement.Announce("High-energy lifeforms detected coming aboard [station_name()]. All crew members, stay alert, and listen to security instructions.", "Lifesign Alert", new_sound = 'sound/misc/alarm1.ogg')
|
||||
GLOB.command_announcement.Announce("High-energy lifeforms detected coming aboard [station_name()]. All crew members, stay alert, and listen to security instructions.", "Lifesign Alert", new_sound = 'sound/misc/alarm1.ogg')
|
||||
|
||||
/datum/event/horde_infestation/start()
|
||||
if(spiders)
|
||||
@@ -95,4 +95,4 @@
|
||||
area_names |= metroid_area.name
|
||||
if(area_names.len)
|
||||
var/english_list = english_list(area_names)
|
||||
command_announcement.Announce("Sensors have narrowed down remaining lifeforms to the following areas: [english_list]", "Lifesign Alert")
|
||||
GLOB.command_announcement.Announce("Sensors have narrowed down remaining lifeforms to the following areas: [english_list]", "Lifesign Alert")
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
endWhen = announceWhen + 1
|
||||
|
||||
/datum/event/disease_outbreak/floor/announce()
|
||||
command_announcement.Announce("Confirmed outbreak of level 7 biohazard aboard \the [location_name()]. All personnel must contain the outbreak.", "Infectious Contaminant in [target_area.name]", new_sound = 'sound/AI/outbreak7.ogg')
|
||||
GLOB.command_announcement.Announce("Confirmed outbreak of level 7 biohazard aboard \the [location_name()]. All personnel must contain the outbreak.", "Infectious Contaminant in [target_area.name]", new_sound = 'sound/AI/outbreak7.ogg')
|
||||
|
||||
/datum/event/disease_outbreak/floor/start()
|
||||
GLOB.current_pending_diseases += chosen_disease
|
||||
|
||||
@@ -27,9 +27,9 @@
|
||||
if(!victim)
|
||||
switch(severity)
|
||||
if(EVENT_LEVEL_MAJOR)
|
||||
command_announcement.Announce("Meatyores have been detected on collision course with \the [location_name()].", "Meteor Alert", new_sound = 'sound/AI/meteors.ogg')
|
||||
GLOB.command_announcement.Announce("Meatyores have been detected on collision course with \the [location_name()].", "Meteor Alert", new_sound = 'sound/AI/meteors.ogg')
|
||||
else
|
||||
command_announcement.Announce("\The [location_name()] is now in a meatyore shower.", "Meteor Alert")
|
||||
GLOB.command_announcement.Announce("\The [location_name()] is now in a meatyore shower.", "Meteor Alert")
|
||||
|
||||
/datum/event/meteor_wave/meatyores/end()
|
||||
if(has_skybox_image)
|
||||
@@ -37,9 +37,9 @@
|
||||
if(!victim)
|
||||
switch(severity)
|
||||
if(EVENT_LEVEL_MAJOR)
|
||||
command_announcement.Announce("\The [location_name()] has cleared the meatyore storm.", "Meteor Alert")
|
||||
GLOB.command_announcement.Announce("\The [location_name()] has cleared the meatyore storm.", "Meteor Alert")
|
||||
else
|
||||
command_announcement.Announce("\The [location_name()] has cleared the meatyore shower", "Meteor Alert")
|
||||
GLOB.command_announcement.Announce("\The [location_name()] has cleared the meatyore shower", "Meteor Alert")
|
||||
|
||||
/datum/event/meteor_wave/meatyores/proc/get_meatyores()
|
||||
switch(severity)
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
vents += temp_vent
|
||||
|
||||
/datum/event/metroid_infestation/announce()
|
||||
command_announcement.Announce("High-energy lifeforms detected coming aboard [station_name()]. All crew members, stay alert, and listen to security instructions.", "Lifesign Alert", new_sound = 'sound/misc/alarm1.ogg')
|
||||
GLOB.command_announcement.Announce("High-energy lifeforms detected coming aboard [station_name()]. All crew members, stay alert, and listen to security instructions.", "Lifesign Alert", new_sound = 'sound/misc/alarm1.ogg')
|
||||
|
||||
/datum/event/metroid_infestation/start()
|
||||
while((spawncount >= 1) && vents.len)
|
||||
@@ -55,4 +55,4 @@
|
||||
area_names |= metroid_area.name
|
||||
if(area_names.len && active_metroid_event == TRUE)
|
||||
var/english_list = english_list(area_names)
|
||||
command_announcement.Announce("Sensors have narrowed down remaining lifeforms to the following areas: [english_list]", "Lifesign Alert")
|
||||
GLOB.command_announcement.Announce("Sensors have narrowed down remaining lifeforms to the following areas: [english_list]", "Lifesign Alert")
|
||||
|
||||
@@ -89,7 +89,7 @@
|
||||
|
||||
|
||||
/datum/event/mutants/announce()
|
||||
command_announcement.Announce("Bioscans indicate... What are those? It looks like [vermstring] have been breeding in [locstring]. Clear them out, just in case.", "Vermin infestation")
|
||||
GLOB.command_announcement.Announce("Bioscans indicate... What are those? It looks like [vermstring] have been breeding in [locstring]. Clear them out, just in case.", "Vermin infestation")
|
||||
|
||||
#undef LOC_KITCHEN
|
||||
#undef LOC_ATMOS
|
||||
|
||||
Reference in New Issue
Block a user