mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2026-08-26 22:57:39 +01:00
[MIRROR] EMP & Wires refactor (#12658)
Co-authored-by: Guti <32563288+TheCaramelion@users.noreply.github.com> Co-authored-by: Cameron Lennox <killer65311@gmail.com>
This commit is contained in:
co-authored by
Guti
Cameron Lennox
parent
494fc9bea9
commit
b116cc450d
@@ -8,7 +8,6 @@
|
||||
icon_state = "generator0"
|
||||
circuit = /obj/item/circuitboard/shield_generator
|
||||
density = TRUE
|
||||
var/datum/wires/shield_generator/wires = null
|
||||
var/list/field_segments = list() // List of all shield segments owned by this generator.
|
||||
var/list/damaged_segments = list() // List of shield segments that have failed and are currently regenerating.
|
||||
var/shield_modes = 0 // Enabled shield mode flags
|
||||
@@ -52,8 +51,7 @@
|
||||
|
||||
/obj/machinery/power/shield_generator/Initialize(mapload)
|
||||
. = ..()
|
||||
if(!wires)
|
||||
wires = new(src)
|
||||
set_wires(new /datum/wires/shield_generator(src))
|
||||
default_apply_parts()
|
||||
connect_to_network()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user