mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-23 13:10:02 +01:00
[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:
@@ -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
|
||||
|
||||
|
||||
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user