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:
PsiOmega
2015-04-17 20:32:28 +02:00
parent a3fb012332
commit 1ae0ad6d92
579 changed files with 6034 additions and 6004 deletions

View File

@@ -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