From a2497d73d4e609b500f24b78517bfa03eafe8e58 Mon Sep 17 00:00:00 2001 From: Theos Date: Wed, 8 May 2024 22:51:32 -0400 Subject: [PATCH] Fix static anomalies the secondo ne Signed-off-by: Theos --- .../effects/anomalies/anomalies_static.dm | 26 +++++++++---------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/code/game/objects/effects/anomalies/anomalies_static.dm b/code/game/objects/effects/anomalies/anomalies_static.dm index a00babe5844a..1dc2497b8c34 100644 --- a/code/game/objects/effects/anomalies/anomalies_static.dm +++ b/code/game/objects/effects/anomalies/anomalies_static.dm @@ -39,19 +39,19 @@ playsound(src, 'sound/effects/walkietalkie.ogg', 75) if(stored_mob && looking.stat != DEAD && prob(25)) say_fucky_things() - if (!HAS_TRAIT(looking, TRAIT_MINDSHIELD) && looking.stat != DEAD || !looking.research_scanner && looking.stat != DEAD || !HAS_TRAIT(looking, TRAIT_DEAF)) - looking.adjustOrganLoss(ORGAN_SLOT_BRAIN, 10, 200) - playsound(src, 'sound/effects/stall.ogg', 50) - if(looking.getOrganLoss(ORGAN_SLOT_BRAIN) >= 150 && looking.stat != DEAD) - if(prob(20)) - var/mob/living/carbon/victim = looking - var/obj/effect/anomaly/tvstatic/planetary/expansion - expansion = new(get_turf(victim)) - visible_message(span_warning("The static overtakes [victim], taking their place!")) - victim.death() - expansion.stored_mob = victim - victim.forceMove(expansion) - return + if(HAS_TRAIT(looking, TRAIT_MINDSHIELD) || looking.stat == DEAD || looking.research_scanner || HAS_TRAIT(looking, TRAIT_DEAF)) + continue + looking.adjustOrganLoss(ORGAN_SLOT_BRAIN, 10, 200) + playsound(src, 'sound/effects/stall.ogg', 50) + if(looking.getOrganLoss(ORGAN_SLOT_BRAIN) >= 150 && looking.stat != DEAD) + if(prob(20)) + var/mob/living/carbon/victim = looking + var/obj/effect/anomaly/tvstatic/planetary/expansion + expansion = new(get_turf(victim)) + visible_message(" The static overtakes [victim], [expansion] taking their place!") + victim.death() + expansion.stored_mob = victim + victim.forceMove(expansion) /obj/effect/anomaly/tvstatic/Bumped(atom/movable/AM)