[MIRROR] improve speed of cascade walls, better description for them + CL for cascade antag [MDB IGNORE] (#13512)

* improve speed of cascade walls, better description for them + CL for cascade antag (#66800)

Cascade walls were processing on object subsystem, they are now in their own subsystem that ticks once per second and should be more reliable even in case of high td
better description for the walls to be more interesting

* improve speed of cascade walls, better description for them + CL for cascade antag

Co-authored-by: Ghilker <42839747+Ghilker@users.noreply.github.com>
This commit is contained in:
SkyratBot
2022-05-11 00:04:00 +01:00
committed by GitHub
co-authored by Ghilker
parent 0a74d93bb1
commit 0b22d3cbd3
4 changed files with 9 additions and 5 deletions
@@ -0,0 +1,4 @@
PROCESSING_SUBSYSTEM_DEF(supermatter_cascade)
name = "Supermatter Cascade"
wait = 1 SECONDS
stat_tag = "SC"
@@ -1,6 +1,6 @@
/turf/closed/indestructible/supermatter_wall
name = "wall"
desc = "Effectively impervious any methods of destruction."
name = "crystal mass"
desc = "You see this massive crystal mass looming towards you, cracking and screeching at every seemingly random movement."
icon = 'icons/turf/walls.dmi'
icon_state = "crystal_cascade_1"
layer = AREA_LAYER
@@ -17,11 +17,11 @@
/turf/closed/indestructible/supermatter_wall/Initialize(mapload)
. = ..()
icon_state = "crystal_cascade_[rand(1,6)]"
START_PROCESSING(SSmachines, src)
START_PROCESSING(SSsupermatter_cascade, src)
AddComponent(/datum/component/supermatter_crystal, null, null)
playsound(src, 'sound/misc/cracking_crystal.ogg', 20, TRUE)
playsound(src, 'sound/misc/cracking_crystal.ogg', 45, TRUE)
/turf/closed/indestructible/supermatter_wall/process()
@@ -172,7 +172,6 @@
/datum/supermatter_delamination/proc/start_supermatter_cascade()
SSshuttle.registerHostileEnvironment(src)
SSshuttle.supermatter_cascade = TRUE
SSair.can_fire = FALSE
call_explosion()
pick_rift_location()
warn_crew()
+1
View File
@@ -602,6 +602,7 @@
#include "code\controllers\subsystem\processing\reagents.dm"
#include "code\controllers\subsystem\processing\singulo.dm"
#include "code\controllers\subsystem\processing\station.dm"
#include "code\controllers\subsystem\processing\supermatter_cascade.dm"
#include "code\controllers\subsystem\processing\tramprocess.dm"
#include "code\controllers\subsystem\processing\wet_floors.dm"
#include "code\datums\action.dm"