Fixes incorrect indentation in blob victory code (#90282)

## About The Pull Request

We ***really*** shouldn't be iterating over all areas for every single
mob. No wonder this lags like hell.

## Changelog
🆑
fix: Fixes incorrect indentation in blob victory code which could cause
immense lag as a result
/🆑
This commit is contained in:
SmArtKar
2025-03-28 18:24:38 +01:00
committed by GitHub
parent 906d97930b
commit a2f33e79f1
+11 -12
View File
@@ -210,18 +210,17 @@ GLOBAL_LIST_EMPTY(blob_nodes)
else
live_guy.fully_heal()
for(var/area/check_area in GLOB.areas)
if(!is_type_in_list(check_area, GLOB.the_station_areas))
continue
if(!(check_area.area_flags & BLOBS_ALLOWED))
continue
check_area.color = blobstrain.color
check_area.name = "blob"
check_area.icon = 'icons/mob/nonhuman-player/blob.dmi'
check_area.icon_state = "blob_shield"
check_area.layer = BELOW_MOB_LAYER
check_area.SetInvisibility(INVISIBILITY_NONE)
check_area.blend_mode = 0
for(var/area_type in GLOB.the_station_areas)
var/area/check_area = GLOB.areas_by_type[area_type]
if(!(check_area.area_flags & BLOBS_ALLOWED))
continue
check_area.color = blobstrain.color
check_area.name = "blob"
check_area.icon = 'icons/mob/nonhuman-player/blob.dmi'
check_area.icon_state = "blob_shield"
check_area.layer = BELOW_MOB_LAYER
check_area.SetInvisibility(INVISIBILITY_NONE)
check_area.blend_mode = 0
var/datum/antagonist/blob/B = mind.has_antag_datum(/datum/antagonist/blob)
if(B)