[MIRROR] Anomaly xenoarch effect + Bioscrambler fixes (#12942)

Co-authored-by: Guti <32563288+TheCaramelion@users.noreply.github.com>
This commit is contained in:
CHOMPStation2StaffMirrorBot
2026-08-03 16:40:02 -04:00
committed by GitHub
co-authored by Guti
parent 8fbd7b20f8
commit 0613901639
7 changed files with 75 additions and 2 deletions
@@ -169,7 +169,7 @@
if(HALLUCINATION_ANOMALY)
new /obj/effect/anomaly/hallucination/supermatter(local_turf, has_changed_lifespan ? rand(15 SECONDS, 25 SECONDS) : null, drops_core)
if(BIOSCRAMBLER_ANOMALY)
new /obj/effect/anomaly/bioscrambler/docile(local_turf, null, drops_core)
new /obj/effect/anomaly/bioscrambler(local_turf, null, drops_core)
if(DIMENSIONAL_ANOMALY)
new /obj/effect/anomaly/dimensional(local_turf, null, drops_core)
if(WEATHER_ANOMALY)
@@ -35,6 +35,8 @@
playsound(src, 'sound/effects/cosmic_energy.ogg', vol = 50, vary = TRUE)
COOLDOWN_START(src, pulse_cooldown, pulse_delay)
for(var/mob/living/carbon/human/nearby in viewers(range, src))
if(nearby.isSynthetic() || nearby.species.flags & NO_DNA)
continue
var/susceptibility = GetAnomalySusceptibility(nearby)
if(prob(susceptibility * 100))
randmutb(nearby)
@@ -73,9 +75,14 @@
continue
if(SEND_SIGNAL(target, COMSIG_CHECK_FOR_GODMODE) & COMSIG_GODMODE_CANCEL)
continue
if(target.isSynthetic() || target.species.flags & NO_DNA)
continue
if(target.is_incorporeal())
continue
if(target.stat >= UNCONSCIOUS)
continue
if(istype(get_area(target), /area/crew_quarters))
var/area/target_area = get_area(target)
if(target_area.flag_check(AREA_FORBID_EVENTS))
continue
var/distance_from_target = get_dist(src, target)
if(distance_from_target >= closest_distance)