mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2025-12-20 07:12:55 +00:00
Plus a little refactor to mining flaps and spacepod doors- they now use CanAtmosPass instead of manually setting the turf to no-atmos-passing
33 lines
580 B
Plaintext
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 |