Makes Blobs more useful.

This commit is contained in:
Mechoid
2018-09-16 21:47:49 -07:00
parent 17a5010f44
commit 4fb5455fd3
15 changed files with 349 additions and 50 deletions

View File

@@ -51,6 +51,15 @@ var/list/blobs = list()
return TRUE
if(istype(mover) && mover.checkpass(PASSBLOB))
return TRUE
else if(istype(mover, /mob/living))
var/mob/living/L = mover
if(L.faction == "blob")
return TRUE
else if(istype(mover, /obj/item/projectile))
var/obj/item/projectile/P = mover
if(P.firer && P.firer.faction == "blob")
return TRUE
return FALSE
else
return FALSE
// return ..()
@@ -248,6 +257,9 @@ var/list/blobs = list()
if(!P)
return
if(P.firer && P.firer.faction == "blob")
return
var/damage = P.get_structure_damage() // So tasers don't hurt the blob.
if(!damage)
return

View File

@@ -38,6 +38,9 @@ var/list/blob_cores = list()
/obj/structure/blob/core/grey_goo
desired_blob_type = /datum/blob_type/grey_goo
/obj/structure/blob/core/fabrication_swarm
desired_blob_type = /datum/blob_type/fabrication_swarm
/obj/structure/blob/core/electromagnetic_web
desired_blob_type = /datum/blob_type/electromagnetic_web
@@ -71,6 +74,9 @@ var/list/blob_cores = list()
/obj/structure/blob/core/radioactive_ooze
desired_blob_type = /datum/blob_type/radioactive_ooze
/obj/structure/blob/core/volatile_alluvium
desired_blob_type = /datum/blob_type/volatile_alluvium
/obj/structure/blob/core/classic
desired_blob_type = /datum/blob_type/classic

View File

@@ -16,8 +16,10 @@
/obj/structure/blob/factory/Destroy()
for(var/mob/living/simple_animal/hostile/blob/spore/spore in spores)
if(spore.factory == src)
if(istype(spore) && spore.factory == src)
spore.factory = null
else
spore.nest = null
spores = null
return ..()
@@ -32,6 +34,21 @@
var/mob/living/simple_animal/hostile/blob/spore/S = null
if(overmind)
S = new overmind.blob_type.spore_type(src.loc, src)
S.overmind = overmind
S.faction = "blob"
if(istype(S))
S.overmind = overmind
overmind.blob_mobs.Add(S)
if(overmind.blob_type.ranged_spores)
S.ranged = TRUE
S.projectiletype = overmind.blob_type.spore_projectile
S.projectilesound = overmind.blob_type.spore_firesound
S.shoot_range = overmind.blob_type.spore_range
else //Other mobs don't add themselves in New. Ew.
S.nest = src
spores += S
S.update_icons()
overmind.blob_mobs.Add(S)
/obj/structure/blob/factory/sluggish // Capable of producing MORE spores, but quite a bit slower than normal.
name = "sluggish factory blob"
max_spores = 4
spore_cooldown = 16 SECONDS

View File

@@ -7,6 +7,7 @@
max_integrity = 40
point_return = 15
var/resource_delay = 0
var/resource_cooldown = 4 SECONDS
/obj/structure/blob/resource/New(var/newloc, var/new_overmind)
..(newloc, new_overmind)
@@ -25,6 +26,12 @@
flick("blob_resource_glow", src)
if(overmind)
overmind.add_points(1)
resource_delay = world.time + 4 SECONDS + (overmind.resource_blobs.len * 2.5) //4 seconds plus a quarter second for each resource blob the overmind has
resource_delay = world.time + resource_cooldown + (overmind.resource_blobs.len * 2.5) //4 seconds plus a quarter second for each resource blob the overmind has
else
resource_delay = world.time + 4 SECONDS
resource_delay = world.time + resource_cooldown
/obj/structure/blob/resource/sluggish // Tankier, but really slow.
name = "sluggish resource blob"
desc = "A thin spire of occasionally convulsing tendrils."
max_integrity = 80
resource_cooldown = 8 SECONDS