From b1ba49f37e2a1ef62aa8b36837a515d1123fa78b Mon Sep 17 00:00:00 2001 From: CitadelStationBot Date: Sun, 17 Sep 2017 22:23:08 -0500 Subject: [PATCH] [MIRROR] Blobbernauts are healed quicker by cores and nodes (#2821) * Blobbernauts are healed quicker by cores and nodes (#30527) * Blobbernauts are healed quicker by cores and nodes i hate sitting for 3-5 minutes waiting to heal as a naut * no you can't heal without a factory * Update blob_mobs.dm * Update blob_mobs.dm * Update blob_mobs.dm * Update blob_mobs.dm * Update blob_mobs.dm * Update blob_mobs.dm * Update blob_mobs.dm * Update blob_mobs.dm * Update blob_mobs.dm * Blobbernauts are healed quicker by cores and nodes --- code/game/gamemodes/blob/blobs/blob_mobs.dm | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/code/game/gamemodes/blob/blobs/blob_mobs.dm b/code/game/gamemodes/blob/blobs/blob_mobs.dm index 7ddc71eecc..61dee30c8e 100644 --- a/code/game/gamemodes/blob/blobs/blob_mobs.dm +++ b/code/game/gamemodes/blob/blobs/blob_mobs.dm @@ -229,13 +229,29 @@ /mob/living/simple_animal/hostile/blob/blobbernaut/Life() if(..()) + var/list/blobs_in_area = range(2, src) if(independent) return // strong independent blobbernaut that don't need no blob var/damagesources = 0 - if(!(locate(/obj/structure/blob) in range(2, src))) + if(!(locate(/obj/structure/blob) in blobs_in_area)) damagesources++ if(!factory) damagesources++ + else + if(locate(/obj/structure/blob/core) in blobs_in_area) + adjustHealth(-maxHealth*0.1) + var/obj/effect/temp_visual/heal/H = new /obj/effect/temp_visual/heal(get_turf(src)) //hello yes you are being healed + if(overmind) + H.color = overmind.blob_reagent_datum.complementary_color + else + H.color = "#000000" + if(locate(/obj/structure/blob/node) in blobs_in_area) + adjustHealth(-maxHealth*0.05) + var/obj/effect/temp_visual/heal/H = new /obj/effect/temp_visual/heal(get_turf(src)) + if(overmind) + H.color = overmind.blob_reagent_datum.complementary_color + else + H.color = "#000000" if(damagesources) for(var/i in 1 to damagesources) adjustHealth(maxHealth*0.025) //take 2.5% of max health as damage when not near the blob or if the naut has no factory, 5% if both