mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-24 04:27:35 +01:00
Ports TG's Garbage Subsystem
This commit is contained in:
@@ -158,7 +158,7 @@ Pipelines + Other Objects -> Pipe network
|
||||
P.other_atmosmch -= src
|
||||
|
||||
//(De)construction
|
||||
/obj/machinery/atmospherics/attackby(var/obj/item/weapon/W as obj, var/mob/user as mob)
|
||||
/obj/machinery/atmospherics/attackby(obj/item/weapon/W, mob/user)
|
||||
if(can_unwrench && istype(W, /obj/item/weapon/wrench))
|
||||
var/turf/T = get_turf(src)
|
||||
if(level == 1 && isturf(T) && T.intact)
|
||||
@@ -179,7 +179,7 @@ Pipelines + Other Objects -> Pipe network
|
||||
to_chat(user, "<span class='warning'>As you begin unwrenching \the [src] a gush of air blows in your face... maybe you should reconsider?</span>")
|
||||
unsafe_wrenching = TRUE //Oh dear oh dear
|
||||
|
||||
if(do_after(user, 40 * W.toolspeed, target = src) && isnull(gcDestroyed))
|
||||
if(do_after(user, 40 * W.toolspeed, target = src) && !QDELETED(src))
|
||||
user.visible_message( \
|
||||
"[user] unfastens \the [src].", \
|
||||
"<span class='notice'>You have unfastened \the [src].</span>", \
|
||||
|
||||
@@ -32,7 +32,7 @@
|
||||
. = ..()
|
||||
|
||||
// if we're somehow by ourself
|
||||
if(parent && isnull(parent.gcDestroyed) && parent.members.len == 1 && parent.members[1] == src)
|
||||
if(parent && !QDELETED(parent) && parent.members.len == 1 && parent.members[1] == src)
|
||||
qdel(parent)
|
||||
parent = null
|
||||
|
||||
|
||||
Reference in New Issue
Block a user