/tg/ Station 13 - Modules - TypesVar Details - Proc Details

main

Main gravity generator

The actual gravity generator, that actually holds the UI, contains the grav gen parts, ect.

Vars

breakerIf the main breaker is on/off, to enable/disable gravity.
broken_stateWhen broken, what stage it is at (GRAV_NEEDS_SCREWDRIVER:0) (GRAV_NEEDS_WELDING:1) (GRAV_NEEDS_PLASTEEL:2) (GRAV_NEEDS_WRENCH:3)
center_partThe gravity generator part in the very center, the fifth one, where we place the overlays.
charge_countHow much charge the gravity generator has, goes down when breaker is shut, and shuts down at 0.
charging_stateIf the generatir os idle, charging, or down.
current_overlayThe gravity overlay currently used.
generator_partsList of all gravity generator parts
gravity_fieldThe gravity field created by the generator.
onWhether the gravity generator is currently active.
radioactive_nebula_shieldingAmount of shielding we offer against a radioactive nebula
settingGravity value when on, honestly I don't know why it does it like this, but it does.
soundloopAudio for when the gravgen is on

Procs

get_radioactive_nebula_shieldingReturns the radioactive shielding (if there's a radioactive nebula). Called from a callback set in add_to_nebula_shielding()
shake_everyoneShake everyone on the z level to let them know that gravity was enagaged/disengaged.

Var Details

breaker

If the main breaker is on/off, to enable/disable gravity.

broken_state

When broken, what stage it is at (GRAV_NEEDS_SCREWDRIVER:0) (GRAV_NEEDS_WELDING:1) (GRAV_NEEDS_PLASTEEL:2) (GRAV_NEEDS_WRENCH:3)

center_part

The gravity generator part in the very center, the fifth one, where we place the overlays.

charge_count

How much charge the gravity generator has, goes down when breaker is shut, and shuts down at 0.

charging_state

If the generatir os idle, charging, or down.

current_overlay

The gravity overlay currently used.

generator_parts

List of all gravity generator parts

gravity_field

The gravity field created by the generator.

on

Whether the gravity generator is currently active.

radioactive_nebula_shielding

Amount of shielding we offer against a radioactive nebula

setting

Gravity value when on, honestly I don't know why it does it like this, but it does.

soundloop

Audio for when the gravgen is on

Proc Details

get_radioactive_nebula_shielding

Returns the radioactive shielding (if there's a radioactive nebula). Called from a callback set in add_to_nebula_shielding()

shake_everyone

Shake everyone on the z level to let them know that gravity was enagaged/disengaged.