mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-11 10:43:20 +00:00
Updates the atom_pool, now datum_pool, to handle any datum object.
Makes the garbage collector similarly robust. Continues the whole Destroy/qdel porting.
This commit is contained in:
@@ -5,11 +5,11 @@
|
||||
var/breakable
|
||||
var/parts
|
||||
|
||||
/obj/structure/proc/destroy()
|
||||
/obj/structure/Destroy()
|
||||
..()
|
||||
if(parts)
|
||||
new parts(loc)
|
||||
density = 0
|
||||
del(src)
|
||||
|
||||
/obj/structure/attack_hand(mob/user)
|
||||
if(breakable)
|
||||
@@ -24,10 +24,10 @@
|
||||
|
||||
/obj/structure/blob_act()
|
||||
if(prob(50))
|
||||
del(src)
|
||||
qdel(src)
|
||||
|
||||
/obj/structure/meteorhit(obj/O as obj)
|
||||
destroy(src)
|
||||
qdel(src)
|
||||
|
||||
/obj/structure/attack_tk()
|
||||
return
|
||||
@@ -35,24 +35,24 @@
|
||||
/obj/structure/ex_act(severity)
|
||||
switch(severity)
|
||||
if(1.0)
|
||||
del(src)
|
||||
qdel(src)
|
||||
return
|
||||
if(2.0)
|
||||
if(prob(50))
|
||||
del(src)
|
||||
qdel(src)
|
||||
return
|
||||
if(3.0)
|
||||
return
|
||||
|
||||
/obj/structure/meteorhit(obj/O as obj)
|
||||
del(src)
|
||||
qdel(src)
|
||||
|
||||
/obj/structure/New()
|
||||
..()
|
||||
if(climbable)
|
||||
verbs += /obj/structure/proc/climb_on
|
||||
|
||||
/obj/structure/Del()
|
||||
/obj/structure/Destroy()
|
||||
..()
|
||||
|
||||
/obj/structure/proc/climb_on()
|
||||
@@ -179,5 +179,5 @@
|
||||
if(!breakable || !damage || !wallbreaker)
|
||||
return 0
|
||||
visible_message("<span class='danger'>[user] [attack_verb] the [src] apart!</span>")
|
||||
spawn(1) destroy()
|
||||
spawn(1) qdel(src)
|
||||
return 1
|
||||
|
||||
Reference in New Issue
Block a user