Thermonuclear Detonation (#3548)

* Update nuclearbomb.dm

* Update nuclearbomb.dm

* a
This commit is contained in:
Gandalf
2021-02-21 00:04:08 +00:00
committed by GitHub
parent 60ad8deb73
commit fcd2b603ae
3 changed files with 16 additions and 1 deletions
@@ -47,6 +47,7 @@
// If we're not exploding, set the alert level back to normal
set_safety()
GLOB.nuke_list -= src
explosion(src, 50, 70, 80, 100, TRUE, TRUE) //SKYRAT EDIT ADDITION
QDEL_NULL(countdown)
QDEL_NULL(core)
. = ..()
@@ -492,6 +493,8 @@
SSshuttle.registerHostileEnvironment(src)
SSshuttle.lockdown = TRUE
INVOKE_ASYNC(GLOBAL_PROC,.proc/KillEveryoneOnZLevel, z) //SKYRAT EDIT ADDITION
//Cinematic
SSticker.mode.OnNukeExplosion(off_station)
really_actually_explode(off_station)
@@ -499,7 +502,7 @@
/obj/machinery/nuclearbomb/proc/really_actually_explode(off_station)
Cinematic(get_cinematic_type(off_station),world,CALLBACK(SSticker,/datum/controller/subsystem/ticker/proc/station_explosion_detonation,src))
INVOKE_ASYNC(GLOBAL_PROC,.proc/KillEveryoneOnZLevel, z)
//INVOKE_ASYNC(GLOBAL_PROC,.proc/KillEveryoneOnZLevel, z) SKYRAT EDIT REMOVAL
/obj/machinery/nuclearbomb/proc/get_cinematic_type(off_station)
if(off_station < 2)
@@ -587,6 +590,7 @@
disarm()
stationwide_foam()
/* SKYRAT EDIT REMOVAL - MOVED TO MODULAR NUCLEARBOMB.DM
/proc/KillEveryoneOnZLevel(z)
if(!z)
return
@@ -594,6 +598,7 @@
var/mob/living/victim = _victim
if(victim.stat != DEAD && victim.z == z)
victim.gib()
*/
/*
This is here to make the tiles around the station mininuke change when it's armed.