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

🆑 LT3
fix: Supermatter delamination now applies hallucinations based on
distance
/🆑
This commit is contained in:
LT3
2025-04-08 16:41:44 +02:00
committed by GitHub
parent e7fe01e1dd
commit 6bf01606d3
@@ -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)