Files
Bubberstation/code/datums/components/space_allaergy.dm
SkyratBot 16854f2358 [MIRROR] The Voidwalker | New Midround Antagonist (#28832)
* The Voidwalker | New Midround Antagonist

* [MIRROR] The Voidwalker | New Midround Antagonist [MDB IGNORE] (#3755)

* The Voidwalker | New Midround Antagonist

* Update role_preferences.dm

* Update sql_ban_system.dm

* Update _bodyparts.dm

* Update role_preferences.dm

* Update lazy_templates.dm

* Update _bodyparts.dm

* Update _bodyparts.dm

* Grep

---------

Co-authored-by: Time-Green <7501474+Time-Green@users.noreply.github.com>
Co-authored-by: SomeRandomOwl <2568378+SomeRandomOwl@users.noreply.github.com>
Co-authored-by: Bloop <13398309+vinylspiders@users.noreply.github.com>

---------

Co-authored-by: Time-Green <7501474+Time-Green@users.noreply.github.com>
Co-authored-by: SpaceLoveSs13 <68121607+SpaceLoveSs13@users.noreply.github.com>
Co-authored-by: NovaBot <154629622+NovaBot13@users.noreply.github.com>
Co-authored-by: SomeRandomOwl <2568378+SomeRandomOwl@users.noreply.github.com>
Co-authored-by: Bloop <13398309+vinylspiders@users.noreply.github.com>
2024-07-20 17:44:24 +05:30

15 lines
554 B
Plaintext

/// Slowly kill the thing when iuts 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
else
parent.remove_status_effect(/datum/status_effect/planet_allergy)