Skip to content

Commit

Permalink
[MIRROR] Fixed false anomaly announcements. [MDB IGNORE] (#25509)
Browse files Browse the repository at this point in the history
* Fixed false anomaly announcements.

* Update _anomaly.dm

* Update anomaly_bioscrambler.dm

* Update anomaly_bluespace.dm

* Fix merge conflicts

---------

Co-authored-by: Ghom <[email protected]>
Co-authored-by: Bloop <[email protected]>
  • Loading branch information
3 people authored and FFMirrorBot committed Dec 9, 2023
1 parent 0430061 commit f1eaece
Show file tree
Hide file tree
Showing 15 changed files with 71 additions and 20 deletions.
4 changes: 3 additions & 1 deletion code/modules/events/anomaly/_anomaly.dm
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,9 @@
impact_area = placer.findValidArea()

/datum/round_event/anomaly/announce(fake)
priority_announce("Energetic flux wave detected on [ANOMALY_ANNOUNCE_DANGEROUS_TEXT] [impact_area.name].", "Anomaly Alert", ANNOUNCER_ANOMALIES) //SKYRAT EDIT CHANGE
if(isnull(impact_area))
impact_area = placer.findValidArea()
priority_announce("Energetic flux wave detected on [ANOMALY_ANNOUNCE_DANGEROUS_TEXT] [impact_area.name].", "Anomaly Alert", ANNOUNCER_ANOMALIES) //SKYRAT EDIT CHANGE - ORIGINAL: priority_announce("Energetic flux wave detected on [ANOMALY_ANNOUNCE_DANGEROUS_TEXT] [impact_area.name].", "Anomaly Alert")

/datum/round_event/anomaly/start()
var/turf/anomaly_turf
Expand Down
4 changes: 3 additions & 1 deletion code/modules/events/anomaly/anomaly_bioscrambler.dm
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,6 @@
anomaly_path = /obj/effect/anomaly/bioscrambler

/datum/round_event/anomaly/anomaly_bioscrambler/announce(fake)
priority_announce("Biologic limb swapping agent detected on [ANOMALY_ANNOUNCE_MEDIUM_TEXT] [impact_area.name]. Wear biosuits or other protective gear to counter the effects. Calculated half-life of %9£$T$%F3 years.", "Anomaly Alert", ANNOUNCER_ANOMALIES) //SKYRAT EDIT CHANGE
if(isnull(impact_area))
impact_area = placer.findValidArea()
priority_announce("Biologic limb swapping agent detected on [ANOMALY_ANNOUNCE_MEDIUM_TEXT] [impact_area.name]. Wear biosuits or other protective gear to counter the effects. Calculated half-life of %9£$T$%F3 years.", "Anomaly Alert", ANNOUNCER_ANOMALIES) //SKYRAT EDIT CHANGE - ORIGINAL: priority_announce("Biologic limb swapping agent detected on [ANOMALY_ANNOUNCE_MEDIUM_TEXT] [impact_area.name]. Wear biosuits or other protective gear to counter the effects. Calculated half-life of %9£$T$%F3 years.", "Anomaly Alert")
4 changes: 3 additions & 1 deletion code/modules/events/anomaly/anomaly_bluespace.dm
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,6 @@
anomaly_path = /obj/effect/anomaly/bluespace

/datum/round_event/anomaly/anomaly_bluespace/announce(fake)
priority_announce("Bluespace instability detected on [ANOMALY_ANNOUNCE_MEDIUM_TEXT] [impact_area.name].", "Anomaly Alert", ANNOUNCER_MASSIVEBSPACEANOMALIES) //SKYRAT EDIT CHANGE
if(isnull(impact_area))
impact_area = placer.findValidArea()
priority_announce("Bluespace instability detected on [ANOMALY_ANNOUNCE_MEDIUM_TEXT] [impact_area.name].", "Anomaly Alert", ANNOUNCER_MASSIVEBSPACEANOMALIES) //SKYRAT EDIT CHANGE - ORIGINAL: priority_announce("Bluespace instability detected on [ANOMALY_ANNOUNCE_MEDIUM_TEXT] [impact_area.name].", "Anomaly Alert")
4 changes: 3 additions & 1 deletion code/modules/events/anomaly/anomaly_dimensional.dm
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,9 @@
new_anomaly.prepare_area(new_theme_path = anomaly_theme)

/datum/round_event/anomaly/anomaly_dimensional/announce(fake)
priority_announce("Dimensional instability detected on [ANOMALY_ANNOUNCE_MEDIUM_TEXT] [impact_area.name].", "Anomaly Alert", ANNOUNCER_ANOMALIES) //SKYRAT EDIT CHANGE
if(isnull(impact_area))
impact_area = placer.findValidArea()
priority_announce("Dimensional instability detected on [ANOMALY_ANNOUNCE_MEDIUM_TEXT] [impact_area.name].", "Anomaly Alert", ANNOUNCER_ANOMALIES) //SKYRAT EDIT CHANGE - ORIGINAL: priority_announce("Dimensional instability detected on [ANOMALY_ANNOUNCE_MEDIUM_TEXT] [impact_area.name].", "Anomaly Alert")

/datum/event_admin_setup/listed_options/anomaly_dimensional
input_text = "Select a dimensional anomaly theme?"
Expand Down
4 changes: 3 additions & 1 deletion code/modules/events/anomaly/anomaly_ectoplasm.dm
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,9 @@
announce_to_ghosts(newAnomaly)

/datum/round_event/anomaly/anomaly_ectoplasm/announce(fake)
priority_announce("Paranormal ectoplasmic outburst detected on [ANOMALY_ANNOUNCE_HARMFUL_TEXT] [impact_area.name].", "Anomaly Alert", ANNOUNCER_ANOMALIES) //SKYRAT EDIT CHANGE
if(isnull(impact_area))
impact_area = placer.findValidArea()
priority_announce("Paranormal ectoplasmic outburst detected on [ANOMALY_ANNOUNCE_HARMFUL_TEXT] [impact_area.name].", "Anomaly Alert", ANNOUNCER_ANOMALIES) //SKYRAT EDIT CHANGE - ORIGINAL: priority_announce("Paranormal ectoplasmic outburst detected on [ANOMALY_ANNOUNCE_HARMFUL_TEXT] [impact_area.name].", "Anomaly Alert")

/datum/event_admin_setup/anomaly_ectoplasm
///The admin-selected intensity
Expand Down
4 changes: 3 additions & 1 deletion code/modules/events/anomaly/anomaly_flux.dm
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,6 @@
anomaly_path = /obj/effect/anomaly/flux

/datum/round_event/anomaly/anomaly_flux/announce(fake)
priority_announce("Hyper-energetic flux wave detected on [ANOMALY_ANNOUNCE_DANGEROUS_TEXT] [impact_area.name].", "Anomaly Alert", ANNOUNCER_FLUXANOMALIES) //SKYRAT EDIT CHANGE
if(isnull(impact_area))
impact_area = placer.findValidArea()
priority_announce("Hyper-energetic flux wave detected on [ANOMALY_ANNOUNCE_DANGEROUS_TEXT] [impact_area.name].", "Anomaly Alert", ANNOUNCER_FLUXANOMALIES) //SKYRAT EDIT CHANGE - ORIGINAL: priority_announce("Hyper-energetic flux wave detected on [ANOMALY_ANNOUNCE_DANGEROUS_TEXT] [impact_area.name].", "Anomaly Alert")
4 changes: 3 additions & 1 deletion code/modules/events/anomaly/anomaly_grav.dm
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,6 @@
anomaly_path = /obj/effect/anomaly/grav/high

/datum/round_event/anomaly/anomaly_grav/announce(fake)
priority_announce("Gravitational anomaly detected on [ANOMALY_ANNOUNCE_HARMFUL_TEXT] [impact_area.name].", "Anomaly Alert" , ANNOUNCER_GRAVANOMALIES) //SKYRAT EDIT CHANGE
if(isnull(impact_area))
impact_area = placer.findValidArea()
priority_announce("Gravitational anomaly detected on [ANOMALY_ANNOUNCE_HARMFUL_TEXT] [impact_area.name].", "Anomaly Alert" , ANNOUNCER_GRAVANOMALIES) //SKYRAT EDIT CHANGE - ORIGINAL: priority_announce("Gravitational anomaly detected on [ANOMALY_ANNOUNCE_HARMFUL_TEXT] [impact_area.name].", "Anomaly Alert" , ANNOUNCER_GRANOMALIES)
4 changes: 3 additions & 1 deletion code/modules/events/anomaly/anomaly_hallucination.dm
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,6 @@
anomaly_path = /obj/effect/anomaly/hallucination

/datum/round_event/anomaly/anomaly_hallucination/announce(fake)
priority_announce("Hallucinatory event detected on [ANOMALY_ANNOUNCE_MEDIUM_TEXT] [impact_area.name].", "Anomaly Alert", ANNOUNCER_ANOMALIES) //SKYRAT EDIT CHANGE
if(isnull(impact_area))
impact_area = placer.findValidArea()
priority_announce("Hallucinatory event detected on [ANOMALY_ANNOUNCE_MEDIUM_TEXT] [impact_area.name].", "Anomaly Alert", ANNOUNCER_ANOMALIES) //SKYRAT EDIT CHANGE - ORIGINAL: priority_announce("Hallucinatory event detected on [ANOMALY_ANNOUNCE_MEDIUM_TEXT] [impact_area.name].", "Anomaly Alert")
4 changes: 3 additions & 1 deletion code/modules/events/anomaly/anomaly_pyro.dm
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,6 @@
anomaly_path = /obj/effect/anomaly/pyro

/datum/round_event/anomaly/anomaly_pyro/announce(fake)
priority_announce("Pyroclastic anomaly detected on [ANOMALY_ANNOUNCE_HARMFUL_TEXT] [impact_area.name].", "Anomaly Alert", ANNOUNCER_PYROANOMALIES) //SKYRAT EDIT CHANGE
if(isnull(impact_area))
impact_area = placer.findValidArea()
priority_announce("Pyroclastic anomaly detected on [ANOMALY_ANNOUNCE_HARMFUL_TEXT] [impact_area.name].", "Anomaly Alert", ANNOUNCER_PYROANOMALIES) //SKYRAT EDIT CHANGE - ORIGINAL: priority_announce("Pyroclastic anomaly detected on [ANOMALY_ANNOUNCE_HARMFUL_TEXT] [impact_area.name].", "Anomaly Alert")
4 changes: 3 additions & 1 deletion code/modules/events/anomaly/anomaly_vortex.dm
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,6 @@
anomaly_path = /obj/effect/anomaly/bhole

/datum/round_event/anomaly/anomaly_vortex/announce(fake)
priority_announce("Localized high-intensity vortex anomaly detected on [ANOMALY_ANNOUNCE_DANGEROUS_TEXT] [impact_area.name]", "Anomaly Alert", ANNOUNCER_VORTEXANOMALIES) //SKYRAT EDIT CHANGE
if(isnull(impact_area))
impact_area = placer.findValidArea()
priority_announce("Localized high-intensity vortex anomaly detected on [ANOMALY_ANNOUNCE_DANGEROUS_TEXT] [impact_area.name]", "Anomaly Alert", ANNOUNCER_VORTEXANOMALIES) //SKYRAT EDIT CHANGE - ORIGINAL: priority_announce("Localized high-intensity vortex anomaly detected on [ANOMALY_ANNOUNCE_DANGEROUS_TEXT] [impact_area.name]", "Anomaly Alert")
6 changes: 5 additions & 1 deletion code/modules/events/brand_intelligence.dm
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,11 @@
origin_machine = pick_n_take(vending_machines)

/datum/round_event/brand_intelligence/announce(fake)
priority_announce("Rampant brand intelligence has been detected aboard [station_name()]. Please inspect any [origin_machine] brand vendors for aggressive marketing tactics, and reboot them if necessary.", "Machine Learning Alert", ANNOUNCER_BRANDINTELLIGENCE) //SKYRAT EDIT CHANGE
var/machine_name = initial(origin_machine.name)
if(fake)
var/obj/machinery/vending/prototype = pick(subtypesof(/obj/machinery/vending))
machine_name = initial(prototype.name)
priority_announce("Rampant brand intelligence has been detected aboard [station_name()]. Please inspect any [origin_machine] brand vendors for aggressive marketing tactics, and reboot them if necessary.", "Machine Learning Alert", ANNOUNCER_BRANDINTELLIGENCE) //SKYRAT EDIT CHANGE - ORIGINAL: priority_announce("Rampant brand intelligence has been detected aboard [station_name()]. Please inspect any [machine_name] brand vendors for aggressive marketing tactics, and reboot them if necessary.", "Machine Learning Alert")

/datum/round_event/brand_intelligence/start()
origin_machine.shut_up = FALSE
Expand Down
17 changes: 17 additions & 0 deletions code/modules/events/disease_outbreak.dm
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,23 @@
var/list/afflicted = list()

/datum/round_event/disease_outbreak/announce(fake)
if(isnull(illness_type))
var/list/virus_candidates = list(
/datum/disease/anxiety,
/datum/disease/beesease,
/datum/disease/brainrot,
/datum/disease/cold9,
/datum/disease/flu,
/datum/disease/fluspanish,
/datum/disease/magnitis,
/// And here are some that will never roll for real, just to mess around.
/datum/disease/death_sandwich_poisoning,
/datum/disease/dna_retrovirus,
/datum/disease/gbs,
/datum/disease/rhumba_beat,
)
var/datum/disease/fake_virus = pick(virus_candidates)
illness_type = initial(fake_virus.name)
priority_announce("Confirmed outbreak of level 7 viral biohazard aboard [station_name()]. All personnel must contain the outbreak.", "[illness_type] Alert", ANNOUNCER_OUTBREAK7)

/datum/round_event/disease_outbreak/setup()
Expand Down
2 changes: 2 additions & 0 deletions code/modules/events/grey_tide.dm
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@
grey_tide_areas += pick_n_take(potential_areas)

/datum/round_event/grey_tide/announce(fake)
if(fake)
severity = rand(1,3)
priority_announce("Gr3y.T1d3 virus detected in [station_name()] secure locking encryption subroutines. Severity level of [severity]. Recommend station AI involvement.", "Security Alert")

/datum/round_event/grey_tide/start()
Expand Down
6 changes: 5 additions & 1 deletion code/modules/events/shuttle_loan/shuttle_loan_event.dm
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,11 @@
situation = new situation()

/datum/round_event/shuttle_loan/announce(fake)
priority_announce("Cargo: [situation.announcement_text]", situation.sender)
var/announcement_text = situation?.announcement_text
if(isnull(announcement_text) || fake)
var/datum/shuttle_loan_situation/fake_situation = pick(subtypesof(/datum/shuttle_loan_situation))
announcement_text = initial(fake_situation.announcement_text)
priority_announce("Cargo: [announcement_text]", situation.sender)
SSshuttle.shuttle_loan = src

/datum/round_event/shuttle_loan/proc/loan_shuttle()
Expand Down
20 changes: 12 additions & 8 deletions code/modules/events/vent_clog.dm
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,9 @@
///The list of decals we will choose from to spawn when producing a mob
var/list/filth_spawn_types = list()

/datum/round_event/vent_clog/announce()
priority_announce("Minor biological obstruction detected in the ventilation network. Blockage is believed to be in the [get_area_name(vent)].", "Custodial Notification")
/datum/round_event/vent_clog/announce(fake)
var/area/event_area = fake ? pick(GLOB.teleportlocs) : get_area_name(vent)
priority_announce("Minor biological obstruction detected in the ventilation network. Blockage is believed to be in the [event_area].", "Custodial Notification")

/datum/round_event/vent_clog/setup()
vent = get_vent()
Expand Down Expand Up @@ -227,8 +228,9 @@
)
return pick(mob_list)

/datum/round_event/vent_clog/major/announce()
priority_announce("Major biological obstruction detected in the ventilation network. Blockage is believed to be in the [get_area_name(vent)] area.", "Infestation Alert")
/datum/round_event/vent_clog/major/announce(fake)
var/area/event_area = fake ? pick(GLOB.teleportlocs) : get_area_name(vent)
priority_announce("Major biological obstruction detected in the ventilation network. Blockage is believed to be in the [event_area] area.", "Infestation Alert")

/datum/round_event_control/vent_clog/critical
name = "Ventilation Clog: Critical"
Expand All @@ -250,8 +252,9 @@
/obj/effect/decal/cleanable/blood/splatter,
)

/datum/round_event/vent_clog/critical/announce()
priority_announce("Potentially hazardous lifesigns detected in the [get_area_name(vent)] ventilation network.", "Security Alert")
/datum/round_event/vent_clog/critical/announce(fake)
var/area/event_area = fake ? pick(GLOB.teleportlocs) : get_area_name(vent)
priority_announce("Potentially hazardous lifesigns detected in the [event_area] ventilation network.", "Security Alert")

/datum/round_event/vent_clog/critical/get_mob()
var/static/list/mob_list = list(
Expand Down Expand Up @@ -282,8 +285,9 @@
/obj/effect/decal/cleanable/vomit,
)

/datum/round_event/vent_clog/strange/announce()
priority_announce("Unusual lifesign readings detected in the [get_area_name(vent)] ventilation network.", "Lifesign Alert", ANNOUNCER_ALIENS)
/datum/round_event/vent_clog/strange/announce(fake)
var/area/event_area = fake ? pick(GLOB.teleportlocs) : get_area_name(vent)
priority_announce("Unusual lifesign readings detected in the [event_area] ventilation network.", "Lifesign Alert", ANNOUNCER_ALIENS)

/datum/round_event/vent_clog/strange/get_mob()
var/static/list/mob_list = list(
Expand Down

0 comments on commit f1eaece

Please sign in to comment.