[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
This commit is contained in:
committed by
Poojawa
parent
d0c9f79a37
commit
b1ba49f37e
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user