mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2025-12-25 17:12:12 +00:00
* Modernizing Radiation -- TL;DR: Radiation is now a status effect healed by tox healing, and contamination is removed * Fixing conflicts * Makes it compile, yeet all the RAD armor from everywhere (thanks RegEx!) * Removing more lingering rad armor (woo) * Damnit powerarmors * Bye bye rad collectors! Co-authored-by: Mothblocks <35135081+Mothblocks@users.noreply.github.com> Co-authored-by: GoldenAlpharex <jerego1234@hotmail.com>
20 lines
579 B
Plaintext
20 lines
579 B
Plaintext
/datum/proximity_monitor/advanced/gravity
|
|
name = "modified gravity zone"
|
|
setup_field_turfs = TRUE
|
|
var/gravity_value = 0
|
|
var/list/modified_turfs = list()
|
|
field_shape = FIELD_SHAPE_RADIUS_SQUARE
|
|
|
|
/datum/proximity_monitor/advanced/gravity/setup_field_turf(turf/T)
|
|
. = ..()
|
|
|
|
if (!isnull(modified_turfs[T]))
|
|
T.AddElement(/datum/element/forced_gravity, gravity_value)
|
|
|
|
/datum/proximity_monitor/advanced/gravity/cleanup_field_turf(turf/T)
|
|
. = ..()
|
|
if(isnull(modified_turfs[T]))
|
|
return
|
|
T.RemoveElement(/datum/element/forced_gravity, modified_turfs[T])
|
|
modified_turfs -= T
|