mirror of
https://github.com/vgstation-coders/vgstation13.git
synced 2025-12-10 18:32:03 +00:00
Add wires/radio Destroy().
This commit is contained in:
@@ -48,6 +48,10 @@ var/list/wireColours = list("red", "blue", "green", "black", "orange", "brown",
|
||||
var/list/wires = same_wires[holder_type]
|
||||
src.wires = wires // Reference the wires list.
|
||||
|
||||
/datum/wires/Destroy()
|
||||
if(holder)
|
||||
holder = null
|
||||
|
||||
/datum/wires/proc/GenerateWires()
|
||||
var/list/colours_to_pick = wireColours.Copy() // Get a copy, not a reference.
|
||||
var/list/indexes_to_pick = list()
|
||||
|
||||
@@ -838,4 +838,9 @@ var/GLOBAL_RADIO_TYPE = 1 // radio type to use
|
||||
if(isrobot(src.loc))
|
||||
var/mob/living/silicon/robot/R = src.loc
|
||||
R.radio = null
|
||||
..()
|
||||
|
||||
if(wires)
|
||||
wires.Destroy()
|
||||
wires = null
|
||||
|
||||
..()
|
||||
|
||||
Reference in New Issue
Block a user