mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-01-05 22:43:46 +00:00
* High Gravity - First Draft * Replaces has_gravity defines for areas. * Default gravity ztrait * Adds some gravity effect and skips damage at gravity = 2 * Paralysis icon * Antigravity grenades for some abuse * Makes the damage treshold a define and makes alert description more accurate. * Bluh
8 lines
265 B
Plaintext
8 lines
265 B
Plaintext
/datum/component/forced_gravity
|
|
var/gravity = 1
|
|
var/ignore_space = FALSE //If forced gravity should also work on space turfs
|
|
|
|
/datum/component/forced_gravity/Initialize(forced_value = 1)
|
|
if(!isatom(parent))
|
|
return COMPONENT_INCOMPATIBLE
|
|
gravity = forced_value |