mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-22 03:27:05 +01:00
qdel and Destroy() improvements, now done through objects/items/devices
This commit is contained in:
@@ -90,6 +90,14 @@
|
||||
if(powernet)
|
||||
powernet.cut_cable(src) // update the powernets
|
||||
cable_list -= src
|
||||
if(istype(attached))
|
||||
attached.SetLuminosity(0)
|
||||
attached.icon_state = "powersink0"
|
||||
attached.mode = 0
|
||||
processing_objects.Remove(attached)
|
||||
attached.anchored = 0
|
||||
attached.attached = null
|
||||
attached = null
|
||||
..() // then go ahead and delete the cable
|
||||
|
||||
/obj/structure/cable/hide(var/i)
|
||||
@@ -623,4 +631,4 @@ obj/structure/cable/proc/cableColor(var/colorC)
|
||||
else
|
||||
user << "Nothing to fix!"
|
||||
else
|
||||
return ..()
|
||||
return ..()
|
||||
|
||||
Reference in New Issue
Block a user