From 6bf01606d3d759ec2aca58fe4422efd30c93ac4b Mon Sep 17 00:00:00 2001 From: LT3 <83487515+lessthnthree@users.noreply.github.com> Date: Tue, 8 Apr 2025 07:41:44 -0700 Subject: [PATCH] Fixes delam hallucinations (#90465) ## About The Pull Request Fixes the delam hallucination proc to actually calculate based on distance from the supermatter. ## Why It's Good For The Game Fixes 2.5 year old bug. ## Changelog :cl: LT3 fix: Supermatter delamination now applies hallucinations based on distance /:cl: --- .../supermatter_delamination/delamination_effects.dm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/modules/power/supermatter/supermatter_delamination/delamination_effects.dm b/code/modules/power/supermatter/supermatter_delamination/delamination_effects.dm index e1d2a25d4da..28c9bb872c1 100644 --- a/code/modules/power/supermatter/supermatter_delamination/delamination_effects.dm +++ b/code/modules/power/supermatter/supermatter_delamination/delamination_effects.dm @@ -25,7 +25,7 @@ continue //Hilariously enough, running into a closet should make you get hit the hardest. - var/hallucination_amount = max(100 SECONDS, min(600 SECONDS, DETONATION_HALLUCINATION * sqrt(1 / (get_dist(victim, src) + 1)))) + var/hallucination_amount = max(100 SECONDS, min(600 SECONDS, DETONATION_HALLUCINATION * sqrt(1 / (get_dist(victim, sm) + 1)))) victim.adjust_hallucinations(hallucination_amount) for(var/mob/victim as anything in GLOB.player_list)