More blob work. Blob core chunk added.

This commit is contained in:
Mechoid
2020-03-24 14:26:27 -07:00
parent f0b15993a3
commit 48c54fc43b
17 changed files with 534 additions and 12 deletions

View File

@@ -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)

View File

@@ -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

View File

@@ -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)