Files
Paradise/code/game/gamemodes/blob/blobs/node.dm
Tigercat2000 3a45d52fe0 Fix remaining non-returning Destroys()
Plus a little refactor to mining flaps and spacepod doors- they now use
CanAtmosPass instead of manually setting the turf to no-atmos-passing
2015-07-06 09:20:39 -07:00

33 lines
580 B
Plaintext

/obj/effect/blob/node
name = "blob node"
icon = 'icons/mob/blob.dmi'
icon_state = "blob_node"
health = 100
fire_resist = 2
New(loc, var/h = 100)
blob_nodes += src
processing_objects.Add(src)
..(loc, h)
Destroy()
blob_nodes -= src
processing_objects.Remove(src)
return ..()
Life()
for(var/i = 1; i < 8; i += i)
Pulse(5, i)
health = min(initial(health), health + 1)
update_icon()
if(health <= 0)
playsound(get_turf(src), 'sound/effects/splat.ogg', 50, 1)
Delete()
return
return
run_action()
return 0