mirror of
https://github.com/PolarisSS13/Polaris.git
synced 2025-12-17 05:31:53 +00:00
More blob work. Blob core chunk added.
This commit is contained in:
@@ -102,6 +102,9 @@ var/list/blob_cores = list()
|
||||
point_rate = new_rate
|
||||
|
||||
/obj/structure/blob/core/Destroy()
|
||||
var/turf/T = get_turf(src)
|
||||
new /obj/item/weapon/blobcore_chunk(T, overmind.blob_type)
|
||||
|
||||
blob_cores -= src
|
||||
if(overmind)
|
||||
overmind.blob_core = null
|
||||
@@ -139,6 +142,8 @@ var/list/blob_cores = list()
|
||||
if(prob(5))
|
||||
B.change_to(/obj/structure/blob/shield/core, overmind)
|
||||
|
||||
overmind.blob_type.on_core_process(src)
|
||||
|
||||
/obj/structure/blob/core/proc/create_overmind(client/new_overmind, override_delay)
|
||||
if(overmind_get_delay > world.time && !override_delay)
|
||||
return
|
||||
@@ -192,4 +197,4 @@ var/list/blob_cores = list()
|
||||
if(initial(BT.difficulty) > difficulty_threshold)
|
||||
continue
|
||||
valid_types += BT
|
||||
return pick(valid_types)
|
||||
return pick(valid_types)
|
||||
|
||||
@@ -42,6 +42,8 @@
|
||||
if(overmind.blob_type.ranged_spores)
|
||||
S.projectiletype = overmind.blob_type.spore_projectile
|
||||
S.projectilesound = overmind.blob_type.spore_firesound
|
||||
S.projectile_accuracy = overmind.blob_type.spore_accuracy
|
||||
S.projectile_dispersion = overmind.blob_type.spore_dispersion
|
||||
else //Other mobs don't add themselves in New. Ew.
|
||||
S.nest = src
|
||||
spores += S
|
||||
|
||||
@@ -33,4 +33,6 @@ var/list/blob_nodes = list()
|
||||
/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)
|
||||
pulse_area(overmind, 10, BLOB_NODE_PULSE_RANGE, BLOB_NODE_EXPAND_RANGE)
|
||||
|
||||
overmind.blob_type.on_node_process(src)
|
||||
|
||||
Reference in New Issue
Block a user