[MIRROR] Cleans up some spark / smoke systems not being initialized in initialize [MDB IGNORE] (#15213)

* Cleans up some spark / smoke systems not being initialized in initialize (#68669)

* Cleans up some spark / smoke systems not being initialized in initialize

Co-authored-by: ShizCalev <ShizCalev@users.noreply.github.com>
This commit is contained in:
SkyratBot
2022-07-26 20:40:08 -07:00
committed by GitHub
co-authored by ShizCalev
parent 96760f5fea
commit d787d4bd82
2 changed files with 6 additions and 3 deletions
@@ -21,7 +21,7 @@
//Server linked to.
var/obj/machinery/telecomms/message_server/linkedServer = null
//Sparks effect - For emag
var/datum/effect_system/spark_spread/spark_system = new /datum/effect_system/spark_spread
var/datum/effect_system/spark_spread/spark_system
//Messages - Saves me time if I want to change something.
var/noserver = "<span class='alert'>ALERT: No server detected.</span>"
var/incorrectkey = "<span class='warning'>ALERT: Incorrect decryption key!</span>"
@@ -67,6 +67,7 @@
/obj/machinery/computer/message_monitor/Initialize(mapload)
..()
spark_system = new
GLOB.telecomms_list += src
return INITIALIZE_HINT_LATELOAD
+4 -2
View File
@@ -62,7 +62,7 @@
///Stores the DNA enzymes of a carbon so tht only they can access the mech
var/dna_lock
///Spark effects are handled by this datum
var/datum/effect_system/spark_spread/spark_system = new
var/datum/effect_system/spark_spread/spark_system
///How powerful our lights are
var/lights_power = 6
///Just stop the mech from doing anything
@@ -151,7 +151,7 @@
///Safety for weapons. Won't fire if enabled, and toggled by middle click.
var/weapons_safety = FALSE
var/datum/effect_system/fluid_spread/smoke/smoke_system = new
var/datum/effect_system/fluid_spread/smoke/smoke_system
////Action vars
///Ref to any active thrusters we might have
@@ -208,9 +208,11 @@
RegisterSignal(src, COMSIG_MOVABLE_MOVED, .proc/play_stepsound)
RegisterSignal(src, COMSIG_LIGHT_EATER_ACT, .proc/on_light_eater)
spark_system = new
spark_system.set_up(2, 0, src)
spark_system.attach(src)
smoke_system = new
smoke_system.set_up(3, holder = src, location = src)
smoke_system.attach(src)