mirror of
https://github.com/PolarisSS13/Polaris.git
synced 2026-01-03 22:13:24 +00:00
Implements Destroy() for buildable SMES units.
- This also means GC errors for SMES coils and probably cable coils are fixed. Both of these things are in used in SMESs' construction components.
This commit is contained in:
@@ -75,6 +75,15 @@
|
||||
charge = 0
|
||||
should_be_mapped = 1
|
||||
|
||||
/obj/machinery/power/smes/buildable/Destroy()
|
||||
qdel(wires)
|
||||
if(component_parts)
|
||||
for(var/atom/A in component_parts)
|
||||
qdel(A)
|
||||
|
||||
return ..()
|
||||
|
||||
|
||||
// Proc: process()
|
||||
// Parameters: None
|
||||
// Description: Uses parent process, but if grounding wire is cut causes sparks to fly around.
|
||||
|
||||
Reference in New Issue
Block a user