Files
Bubberstation/code/datums/components/space_allergy.dm
SmArtKar 1349ba89ad Neruwhine can no longer roll voidwalker traumas, fixes high gravity persisting after curing the trauma (#91147)
## About The Pull Request
Neruwhine can no longer roll Cosmic Neural Pattern or its stable
subtype.
Fixed the planetary gravity damage status effect not clearing itself
when you lose the voided trauma.
Closes #90702

## Why It's Good For The Game

Cosmic Neural Pattern is a voidwalker exclusive and is more of a magical
status effect than an actual brain trauma, so having it be temporarily
rollable is a bit stupid.

## Changelog
🆑
balance: Neruwhine can no longer roll voidwalker traumas.
fix: Fixed the planetary gravity damage status effect not clearing
itself when you lose the voided trauma.
/🆑
2025-05-29 16:16:11 -04:00

24 lines
780 B
Plaintext

/// Slowly kills the affected when they're on a planet.
/datum/component/planet_allergy
/// Status effect applied by this component
var/datum/status_effect/planet_allergy/allergy
/datum/component/planet_allergy/Initialize(...)
if(!isliving(parent))
return COMPONENT_INCOMPATIBLE
RegisterSignal(parent, COMSIG_ENTER_AREA, PROC_REF(entered_area))
entered_area(parent, get_area(parent))
/datum/component/planet_allergy/Destroy(force)
QDEL_NULL(allergy)
return ..()
/datum/component/planet_allergy/proc/entered_area(mob/living/parent, area/new_area)
SIGNAL_HANDLER
if(is_on_a_planet(parent) && parent.has_gravity())
allergy = parent.apply_status_effect(/datum/status_effect/planet_allergy) //your gamer body cant stand real gravity < Soul
else
QDEL_NULL(allergy)