fixes the blob runtimes and invisble blob zombies (#12614)

This commit is contained in:
farie82
2019-10-27 05:24:06 +01:00
committed by variableundefined
parent 00f5e0613c
commit a54c6d6541
2 changed files with 6 additions and 10 deletions

View File

@@ -139,11 +139,7 @@
/mob/living/simple_animal/hostile/blob/blobspore/update_icons()
..()
if(overmind && overmind.blob_reagent_datum)
adjustcolors(overmind.blob_reagent_datum.complementary_color)
else
adjustcolors(overmind.blob_reagent_datum.complementary_color) //to ensure zombie/other overlays update
adjustcolors(overmind?.blob_reagent_datum?.complementary_color)
/mob/living/simple_animal/hostile/blob/blobspore/adjustcolors(var/a_color)
color = a_color
@@ -152,8 +148,7 @@
overlays.Cut()
overlays = human_overlays
var/image/I = image('icons/mob/blob.dmi', icon_state = "blob_head")
I.color = overmind.blob_reagent_datum.complementary_color
color = initial(overmind.blob_reagent_datum.complementary_color)//looks better.
I.color = color
overlays += I
/////////////////

View File

@@ -23,6 +23,7 @@
flick("blob_factory_glow", src)
spore_delay = world.time + 100 // 10 seconds
var/mob/living/simple_animal/hostile/blob/blobspore/BS = new/mob/living/simple_animal/hostile/blob/blobspore(src.loc, src)
BS.color = overmind.blob_reagent_datum.complementary_color
BS.overmind = overmind
overmind.blob_mobs.Add(BS)
if(overmind)
BS.color = overmind.blob_reagent_datum?.complementary_color
BS.overmind = overmind
overmind.blob_mobs.Add(BS)