mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-10 02:09:41 +00:00
Additional types which need Destroy to return qdel hints (and other Destroy fixes)
This commit is contained in:
@@ -22,8 +22,7 @@
|
||||
welder.setWelding(1)
|
||||
|
||||
/obj/item/weapon/spell/flame_tongue/Destroy()
|
||||
qdel(welder)
|
||||
welder = null
|
||||
qdel_null(welder)
|
||||
return ..()
|
||||
|
||||
/obj/item/weapon/weldingtool/spell
|
||||
|
||||
@@ -62,8 +62,8 @@
|
||||
illusion.emote(what_to_emote)
|
||||
|
||||
/obj/item/weapon/spell/illusion/Destroy()
|
||||
if(illusion)
|
||||
qdel(illusion)
|
||||
qdel_null(illusion)
|
||||
copied = null
|
||||
return ..()
|
||||
|
||||
// Makes a tiny overlay of the thing the player has copied, so they can easily tell what they currently have.
|
||||
|
||||
@@ -37,7 +37,7 @@
|
||||
for(var/atom/movable/AM in contents) //Eject everything out.
|
||||
AM.forceMove(get_turf(src))
|
||||
processing_objects -= src
|
||||
..()
|
||||
return ..()
|
||||
|
||||
/obj/effect/phase_shift/process()
|
||||
for(var/mob/living/L in contents)
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
/obj/item/weapon/spell/radiance/Destroy()
|
||||
processing_objects -= src
|
||||
log_and_message_admins("has stopped maintaining [src].")
|
||||
..()
|
||||
return ..()
|
||||
|
||||
/obj/item/weapon/spell/radiance/process()
|
||||
var/turf/T = get_turf(src)
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
sparks.attach(loc)
|
||||
|
||||
/obj/item/weapon/antag_spawner/Destroy()
|
||||
qdel(sparks)
|
||||
qdel_null(sparks)
|
||||
return ..()
|
||||
|
||||
/obj/item/weapon/antag_spawner/proc/spawn_antag(client/C, turf/T)
|
||||
|
||||
@@ -52,6 +52,7 @@
|
||||
/obj/item/weapon/implant/Destroy()
|
||||
if(part)
|
||||
part.implants.Remove(src)
|
||||
part = null
|
||||
return ..()
|
||||
|
||||
/obj/item/weapon/implant/attackby(obj/item/I, mob/user)
|
||||
|
||||
@@ -53,11 +53,9 @@
|
||||
processing_objects |= src
|
||||
|
||||
/obj/item/device/electronic_assembly/Destroy()
|
||||
battery = null
|
||||
battery = null // It will be qdel'd by ..() if still in our contents
|
||||
processing_objects -= src
|
||||
for(var/atom/movable/AM in contents)
|
||||
qdel(AM)
|
||||
..()
|
||||
return ..()
|
||||
|
||||
/obj/item/device/electronic_assembly/process()
|
||||
handle_idle_power()
|
||||
|
||||
@@ -25,8 +25,8 @@
|
||||
power_draw_per_use = 50 // The targeting mechanism uses this. The actual gun uses its own cell for firing if it's an energy weapon.
|
||||
|
||||
/obj/item/integrated_circuit/manipulation/weapon_firing/Destroy()
|
||||
qdel(installed_gun)
|
||||
..()
|
||||
installed_gun = null // It will be qdel'd by ..() if still in our contents
|
||||
return ..()
|
||||
|
||||
/obj/item/integrated_circuit/manipulation/weapon_firing/attackby(var/obj/O, var/mob/user)
|
||||
if(istype(O, /obj/item/weapon/gun))
|
||||
|
||||
@@ -247,5 +247,5 @@
|
||||
|
||||
/obj/effect/suspension_field/Destroy()
|
||||
for(var/atom/movable/I in src)
|
||||
I.loc = src.loc
|
||||
..()
|
||||
I.dropInto(loc)
|
||||
return ..()
|
||||
|
||||
Reference in New Issue
Block a user