mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-31 07:57:47 +01:00
More Destroy stuff
This commit is contained in:
@@ -44,20 +44,14 @@
|
||||
if(istype(src.loc, /mob))
|
||||
var/mob/H = src.loc
|
||||
H.drop_from_inventory(src) // items at the very least get unequipped from their mob before being deleted
|
||||
if(istype(src.loc, /obj/item/assembly))
|
||||
var/obj/item/assembly/A = src.loc
|
||||
if(A.part1 == src)
|
||||
A.part1 = null
|
||||
else if(A.part2 == src)
|
||||
A.part2 = null
|
||||
master = null
|
||||
if(reagents && istype(reagents))
|
||||
reagents.my_atom = null
|
||||
reagents.delete()
|
||||
if(hasvar(src, "holder"))
|
||||
src:holder = null
|
||||
I:holder = null
|
||||
/* // BROKEN, FUCK BYOND
|
||||
if(hasvar(src, "my_atom"))
|
||||
src:my_atom = null
|
||||
I:my_atom = null*/
|
||||
|
||||
..()
|
||||
|
||||
|
||||
@@ -17,6 +17,15 @@
|
||||
return
|
||||
..()
|
||||
|
||||
/obj/item/device/radio/electropack/Destroy()
|
||||
if(istype(src.loc, /obj/item/assembly/shock_kit))
|
||||
var/obj/item/assembly/shock_kit/S = src.loc
|
||||
if(S.part1 == src)
|
||||
S.part1 = null
|
||||
else if(S.part2 == src)
|
||||
S.part2 = null
|
||||
master = null
|
||||
|
||||
/obj/item/device/radio/electropack/attackby(obj/item/weapon/W as obj, mob/user as mob)
|
||||
..()
|
||||
if(istype(W, /obj/item/clothing/head/helmet))
|
||||
|
||||
Reference in New Issue
Block a user