mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-19 19:18:50 +01:00
## 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)
15 lines
569 B
Plaintext
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)
|