Files
Bubberstation/code/datums/components/space_allergy.dm
T
RatFromTheJungleandGitHub abb5adf871 Very minor grammar fixes with the "space allaergy" (#90100)
## About The Pull Request

Changes the file-name, it's .dme include, and the first comment in the
folder (I spent longer then i'd admit trying to find the folder until I
gave up and checked vsc

## Why It's Good For The Game

it's probably isn't IDK

(insert comment here about the death of soul)
2025-03-20 02:34:38 +02:00

15 lines
569 B
Plaintext

/// Slowly kills the affected when they're on a planet.
/datum/component/planet_allergy/Initialize(...)
if(!isliving(parent))
return COMPONENT_INCOMPATIBLE
RegisterSignal(parent, COMSIG_ENTER_AREA, PROC_REF(entered_area))
/datum/component/planet_allergy/proc/entered_area(mob/living/parent, area/new_area)
SIGNAL_HANDLER
if(is_on_a_planet(parent) && parent.has_gravity())
parent.apply_status_effect(/datum/status_effect/planet_allergy) //your gamer body cant stand real gravity < Soul
else
parent.remove_status_effect(/datum/status_effect/planet_allergy)