Space Station 13 - Modules - Types — Var Details - Proc Details

aurora_caelus

Vars

aurora_colorsList of colors that the aurora takes
aurora_light_rangeTarget light range
aurora_progressEvent stage
aurora_space_powerStarlight power on space during the aurora
fade_step_timeTime between fade steps
fade_stepsHow many steps it takes to fade back to normal
light_changeGoes up with every change, so an older one still going can stop
lighting_backlog_limitWe stop and wait while lighting has more than this many updates waiting
lit_turfsEvery turf we changed the light of, so we can put them all back
normal_light_rangeStarlight range when there's no aurora
spread_timeEach change is spread over this long, so lighting can keep up with it

Procs

fade_backDims the starlight one step and sets a timer for the next. After the last step it goes back to normal.
light_starlightSets the light of every starlight turf. Progress goes from 0 (full aurora) to 1 (back to normal power). The range only changes on the first one. After that it's just power and colour.
restore_starlightPuts every turf we changed back to its normal light
wait_for_lightingWaits at least a tick, and longer while lighting is backed up, so other lights don't queue behind ours. Returns FALSE if a newer change started in the meantime.

Var Details

aurora_colors

List of colors that the aurora takes

aurora_light_range

Target light range

aurora_progress

Event stage

aurora_space_power

Starlight power on space during the aurora

fade_step_time

Time between fade steps

fade_steps

How many steps it takes to fade back to normal

light_change

Goes up with every change, so an older one still going can stop

lighting_backlog_limit

We stop and wait while lighting has more than this many updates waiting

lit_turfs

Every turf we changed the light of, so we can put them all back

normal_light_range

Starlight range when there's no aurora

spread_time

Each change is spread over this long, so lighting can keep up with it

Proc Details

fade_back

Dims the starlight one step and sets a timer for the next. After the last step it goes back to normal.

light_starlight

Sets the light of every starlight turf. Progress goes from 0 (full aurora) to 1 (back to normal power). The range only changes on the first one. After that it's just power and colour.

restore_starlight

Puts every turf we changed back to its normal light

wait_for_lighting

Waits at least a tick, and longer while lighting is backed up, so other lights don't queue behind ours. Returns FALSE if a newer change started in the meantime.