mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-07-21 04:57:57 +01:00
Supermatter anomaly fixes/explosion scaled hallucination (#90788)
## About The Pull Request - Some fixes for the supermatter crystal anomaly generation, ensuring they spawn outside the chamber windows and adds the outright missing dimensional anomalies. - Hallucination duration is calculated based on both distance from the SM as well as the size of the delam explosion (a modifier of 0.75x for a small explosion, up to 1.25x for the largest delam explosion) ## Why It's Good For The Game Bugfixes, improvement on the delam hallucination. ## Changelog 🆑 LT3 fix: Fixed supermatter anomaly generation, hallucination is based on distance and delam explosion size /🆑
This commit is contained in:
@@ -27,7 +27,8 @@
|
||||
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, sm) + 1))))
|
||||
//duration between min and max, calculated by distance from the supermatter and size of the delam explosion
|
||||
var/hallucination_amount = LERP(DETONATION_HALLUCINATION_MIN, DETONATION_HALLUCINATION_MAX, 1 - get_dist(victim, sm) / 128) * LERP(0.75, 1.25, calculate_explosion(sm) * 0.5 / DELAM_MAX_DEVASTATION)
|
||||
victim.adjust_hallucinations(hallucination_amount)
|
||||
|
||||
for(var/mob/victim as anything in GLOB.player_list)
|
||||
|
||||
Reference in New Issue
Block a user