515 Compatibility (#19636)

* 515 compat

* double spaces

* Callback documentation, aa review

* spacing

* NAMEOF_STATIC

* big beta
This commit is contained in:
S34N
2022-11-08 23:08:40 +00:00
committed by GitHub
parent 2e7e556383
commit 667dd5d4ac
378 changed files with 928 additions and 919 deletions
+4 -4
View File
@@ -23,11 +23,11 @@
// Give ghosts some time to jump there before it begins.
var/image/alert_overlay = image('icons/mob/animal.dmi', notify_image)
notify_ghosts("\A [src] is about to open in [get_area(T)].", title = notify_title, source = T, alert_overlay = alert_overlay, action = NOTIFY_FOLLOW)
addtimer(CALLBACK(src, .proc/spawn_tear, T), 4 SECONDS)
addtimer(CALLBACK(src, PROC_REF(spawn_tear), T), 4 SECONDS)
// Energy overload; we mess with machines as an early warning and for extra spookiness.
for(var/obj/machinery/M in range(8, T))
INVOKE_ASYNC(M, /atom/.proc/get_spooked)
INVOKE_ASYNC(M, TYPE_PROC_REF(/atom, get_spooked))
/datum/event/tear/proc/spawn_tear(location)
TE = new /obj/effect/tear(location)
@@ -62,8 +62,8 @@
playsound(get_turf(src), 'sound/magic/drum_heartbeat.ogg', 100)
// We spawn the minions first, then the boss.
addtimer(CALLBACK(src, .proc/spawn_mobs), 2 SECONDS)
addtimer(CALLBACK(src, .proc/spawn_leader), 5 SECONDS)
addtimer(CALLBACK(src, PROC_REF(spawn_mobs)), 2 SECONDS)
addtimer(CALLBACK(src, PROC_REF(spawn_leader)), 5 SECONDS)
/obj/effect/tear/proc/spawn_mobs()
// We break some of those flickering consoles from earlier.