mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2025-12-23 08:41:43 +00:00
* Handlers converted, now to fix 3532 compile errors * 3532 compile fixes later, got runtimes on startup * Well the server loads now atleast * Take 2 * Oops
37 lines
1013 B
Plaintext
37 lines
1013 B
Plaintext
/obj/structure/blob/node
|
|
name = "blob node"
|
|
icon = 'icons/mob/blob.dmi'
|
|
icon_state = "blank_blob"
|
|
max_integrity = 200
|
|
armor = list("melee" = 0, "bullet" = 0, "laser" = 0, "energy" = 0, "bomb" = 0, "bio" = 0, "rad" = 0, "fire" = 65, "acid" = 90)
|
|
point_return = 18
|
|
|
|
/obj/structure/blob/node/New(loc, var/h = 100)
|
|
GLOB.blob_nodes += src
|
|
START_PROCESSING(SSobj, src)
|
|
..(loc, h)
|
|
|
|
/obj/structure/blob/node/adjustcolors(var/a_color)
|
|
overlays.Cut()
|
|
color = null
|
|
var/image/I = new('icons/mob/blob.dmi', "blob")
|
|
I.color = a_color
|
|
src.overlays += I
|
|
var/image/C = new('icons/mob/blob.dmi', "blob_node_overlay")
|
|
src.overlays += C
|
|
|
|
/obj/structure/blob/node/Destroy()
|
|
GLOB.blob_nodes -= src
|
|
STOP_PROCESSING(SSobj, src)
|
|
return ..()
|
|
|
|
/obj/structure/blob/node/Life(seconds, times_fired)
|
|
if(overmind)
|
|
for(var/i = 1; i < 8; i += i)
|
|
Pulse(5, i, overmind.blob_reagent_datum.color)
|
|
else
|
|
for(var/i = 1; i < 8; i += i)
|
|
Pulse(5, i, color)
|
|
obj_integrity = min(max_integrity, obj_integrity + 1)
|
|
color = null
|