Some more types which need Destroy to return qdel hints!

This commit is contained in:
Leshana
2017-06-12 10:48:02 -04:00
parent 997c033d7e
commit c91dc333cd
14 changed files with 24 additions and 30 deletions

View File

@@ -189,7 +189,7 @@
/obj/structure/AIcore/deactivated/Destroy()
if(src in empty_playable_ai_cores)
empty_playable_ai_cores -= src
..()
return ..()
/obj/structure/AIcore/deactivated/proc/load_ai(var/mob/living/silicon/ai/transfer, var/obj/item/device/aicard/card, var/mob/user)

View File

@@ -97,7 +97,7 @@ var/list/obj/machinery/requests_console/allConsoles = list()
req_console_supplies -= department
if(departmentType & RC_INFO)
req_console_information -= department
..()
return ..()
/obj/machinery/requests_console/attack_hand(user as mob)
if(..(user))

View File

@@ -139,7 +139,7 @@
/obj/structure/foamedmetal/Destroy()
density = 0
update_nearby_tiles(1)
..()
return ..()
/obj/structure/foamedmetal/proc/updateicon()
if(metal == 1)

View File

@@ -149,12 +149,9 @@
..()
/obj/structure/closet/body_bag/cryobag/Destroy()
if(syringe)
qdel(syringe)
syringe = null
qdel(tank)
tank = null
..()
qdel_null(syringe)
qdel_null(tank)
return ..()
/obj/structure/closet/body_bag/cryobag/open()
. = ..()

View File

@@ -152,4 +152,4 @@
/obj/item/radio/integrated/signal/Destroy()
if(radio_controller)
radio_controller.remove_object(src, frequency)
..()
return ..()

View File

@@ -19,6 +19,11 @@
New()
create_reagents(1000)
Destroy()
qdel_null(detonator)
qdel_null_list(beakers)
return ..()
attack_self(mob/user as mob)
if(!stage || stage==1)
if(detonator)

View File

@@ -52,7 +52,7 @@
/obj/item/weapon/implant/Destroy()
if(part)
part.implants.Remove(src)
..()
return ..()
/obj/item/weapon/implant/attackby(obj/item/I, mob/user)
if(istype(I, /obj/item/weapon/implanter))

View File

@@ -24,8 +24,8 @@
ion_trail.set_up(src)
/obj/item/weapon/tank/jetpack/Destroy()
qdel(ion_trail)
..()
qdel_null(ion_trail)
return ..()
/obj/item/weapon/tank/jetpack/examine(mob/user)
. = ..()

View File

@@ -435,7 +435,7 @@
/obj/item/weapon/weldingtool/experimental/Destroy()
processing_objects -= src
..()
return ..()
/obj/item/weapon/weldingtool/experimental/process()
..()

View File

@@ -116,7 +116,7 @@
unbuckle_mob()
processing_objects -= src
..()
return ..()
/obj/effect/energy_net/process()
if(isnull(buckled_mob) || buckled_mob.loc != loc)

View File

@@ -35,7 +35,7 @@
/obj/item/weapon/reagent_containers/glass/rag/Destroy()
processing_objects -= src //so we don't continue turning to ash while gc'd
..()
return ..()
/obj/item/weapon/reagent_containers/glass/rag/attack_self(mob/user as mob)
if(on_fire)

View File

@@ -127,9 +127,6 @@
)
item_state = "boxing"
/obj/structure/window/reinforced/holowindow/Destroy()
..()
/obj/structure/window/reinforced/holowindow/attackby(obj/item/W as obj, mob/user as mob)
if(!istype(W)) return//I really wish I did not need this
if (istype(W, /obj/item/weapon/grab) && get_dist(src,user)<2)
@@ -183,12 +180,6 @@
qdel(src)
return
/obj/structure/window/reinforced/holowindow/disappearing/Destroy()
..()
/obj/machinery/door/window/holowindoor/Destroy()
..()
/obj/machinery/door/window/holowindoor/attackby(obj/item/weapon/I as obj, mob/user as mob)
if (src.operating == 1)
@@ -224,9 +215,6 @@
visible_message("[src] fades away as it shatters!")
qdel(src)
/obj/structure/bed/chair/holochair/Destroy()
..()
/obj/structure/bed/chair/holochair/attackby(obj/item/weapon/W as obj, mob/user as mob)
if(istype(W, /obj/item/weapon/wrench))
user << ("<span class='notice'>It's a holochair, you can't dismantle it!</span>")
@@ -419,6 +407,10 @@
for(var/mob/M in currentarea)
M << "FIGHT!"
// A window that disappears when the ready button is pressed
/obj/structure/window/reinforced/holowindow/disappearing
name = "Event Window"
//Holocarp
/mob/living/simple_animal/hostile/carp/holodeck

View File

@@ -51,7 +51,7 @@
// Description: Removes reference to the communicator, so it can qdel() successfully.
/mob/living/voice/Destroy()
comm = null
..()
return ..()
// Proc: ghostize()
// Parameters: None

View File

@@ -35,7 +35,7 @@
/obj/item/weapon/reagent_containers/borghypo/Destroy()
processing_objects.Remove(src)
..()
return ..()
/obj/item/weapon/reagent_containers/borghypo/process() //Every [recharge_time] seconds, recharge some reagents for the cyborg+
if(++charge_tick < recharge_time)