Adds ghost notification when the singularity is (likely) loose. (#20826)

* let you know when it's (probably) loose

* better checks

* guh

* bwaaah

* Update code/modules/power/singularity/singularity.dm

Co-authored-by: Ryan <80364400+Sirryan2002@users.noreply.github.com>

---------

Co-authored-by: Ryan <80364400+Sirryan2002@users.noreply.github.com>
This commit is contained in:
Luc
2023-04-22 03:29:32 -04:00
committed by GitHub
parent d824cfaeaf
commit b2fa6060f6
2 changed files with 22 additions and 0 deletions
+3
View File
@@ -117,6 +117,9 @@
/obj/singularity/narsie/singularity_act() //handled in /obj/singularity/proc/consume
return
/obj/singularity/narsie/notify_dead()
return
/obj/singularity/narsie/proc/pickcultist() //Narsie rewards his cultists with being devoured first, then picks a ghost to follow. --NEO
var/list/cultists = list()
var/list/noncultists = list()
@@ -27,6 +27,8 @@
var/consumedSupermatter = FALSE //If the singularity has eaten a supermatter shard and can go to stage six
var/warps_projectiles = TRUE
resistance_flags = INDESTRUCTIBLE | LAVA_PROOF | FIRE_PROOF | UNACIDABLE | ACID_PROOF | FREEZE_PROOF
/// Whether or not we've pinged ghosts
var/isnt_shutting_down = FALSE
/obj/singularity/Initialize(mapload, starting_energy = 50)
. = ..()
@@ -217,6 +219,7 @@
dissipate_delay = 10
dissipate_track = 0
dissipate_strength = 10
notify_dead()
if(STAGE_FIVE)//this one also lacks a check for gens because it eats everything
current_size = STAGE_FIVE
icon = 'icons/effects/288x288.dmi'
@@ -416,6 +419,22 @@
C.IgniteMob()
return
/obj/singularity/proc/notify_dead()
if(isnt_shutting_down)
return
notify_ghosts(
"IT'S LOOSE",
ghost_sound = 'sound/machines/warning-buzzer.ogg',
source = src,
action = NOTIFY_FOLLOW,
flashwindow = FALSE,
title = "IT'S LOOSE",
alert_overlay = image(icon='icons/obj/singularity.dmi', icon_state="singularity_s1")
)
isnt_shutting_down = TRUE
/obj/singularity/proc/mezzer()
for(var/mob/living/carbon/M in oviewers(8, src))