Files
VOREStation/code/modules/blob2/blobs/node.dm
Kashargul cdfa1c853f New to init final (#17512)
* Initial

* some more

* next few

* only light left

* fix things up

* some rmore fixes

* guh

* Update ai_vr.dm

* comment

* lets try something

* .

* hmm

* .

* .

* hmm

* push that here

* fix layout

* grrr
2025-04-14 00:07:35 +02:00

39 lines
1.0 KiB
Plaintext

var/list/blob_nodes = list()
/obj/structure/blob/node
name = "blob node"
base_name = "node"
icon_state = "blank_blob"
desc = "A large, pulsating yellow mass."
max_integrity = 50
health_regen = 3
point_return = 50
/obj/structure/blob/node/Initialize(mapload, new_overmind)
. = ..()
blob_nodes += src
START_PROCESSING(SSobj, src)
update_icon()
/obj/structure/blob/node/Destroy()
blob_nodes -= src
STOP_PROCESSING(SSobj, src)
return ..()
/obj/structure/blob/node/update_icon()
cut_overlays()
color = null
var/mutable_appearance/blob_overlay = mutable_appearance('icons/mob/blob.dmi', "blob")
if(overmind)
name = "[overmind.blob_type.name] [base_name]"
blob_overlay.color = overmind.blob_type.color
add_overlay(blob_overlay)
add_overlay("blob_node_overlay")
/obj/structure/blob/node/process()
set waitfor = FALSE
if(overmind) // This check is so that if the core is killed, the nodes stop.
pulse_area(overmind, 10, BLOB_NODE_PULSE_RANGE, BLOB_NODE_EXPAND_RANGE)
overmind.blob_type.on_node_process(src)