From 2ffa7c3fb09f2e286ef666be5f192877c5f0effd Mon Sep 17 00:00:00 2001 From: Blubelle <57083662+BlueWildrose@users.noreply.github.com> Date: Sun, 26 Jan 2025 01:57:20 -0700 Subject: [PATCH] Makes horror aura only active when players are present in z-level (#6976) ## About The Pull Request Title. ## Why It's Good For The Game Do you have any idea how THICK the admin logs get when there's horror mobs around? ## Changelog :cl: code: A spooky mob's horror aura will only be active if a player mob is present on the same z-level they are. /:cl: --- code/datums/components/horror_aura.dm | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/code/datums/components/horror_aura.dm b/code/datums/components/horror_aura.dm index 45581a60242..47100433115 100644 --- a/code/datums/components/horror_aura.dm +++ b/code/datums/components/horror_aura.dm @@ -23,12 +23,14 @@ It also serves the purposes of portraying the Lore accurate effect of "Acausal L return ..() /datum/component/horror_aura/process() - if(ismob(parent) && !remain_while_dead) + var/atom/A = parent //Not bothering to check if it's an atom. If someone attaches a horror aura component to a mere datum, they're out of their mind. + if(ismob(A) && !remain_while_dead) var/mob/M = parent if(IS_DEAD(M)) qdel(src) return - aura_effect() + if(A.z in SSmobs.busy_z_levels) //don't spam EMP admin logs when nobody's around. :^) + aura_effect() /datum/component/horror_aura/proc/aura_effect() for(var/mob/living/carbon/human/H in range(radius, parent))