Paradise Station 13 - Modules - TypesVar Details - Proc Details

Light fixture

The standard light tube fixture

Vars

brightness_colorLight colour when on
brightness_powerLight intensity
brightness_rangeLight range (Also used in power calculation)
bulb_emergency_colourThe colour of the light while it's in emergency mode
fittingType of light bulb that goes into the fixture
flickeringIs the light currently flickering?
light_typeItem type of the light bulb
lightmaterialsMaterials the light is made of
nightshift_allowedAllowed to be switched to night shift mode?
nightshift_enabledCurrently in night shift mode?
nightshift_light_colorThe colour of the light while it's in night shift mode
nightshift_light_powerLight intensity when in night shift mode
nightshift_light_rangeLight range when in night shift mode
onIs the light on or off?
power_stateIf the light state has changed since the last 'update()', also update the power requirements
riggedIs the light rigged to explode?
static_power_usedHow much power does it use?
statusLight fixture status (LIGHT_OK | LIGHT_EMPTY | LIGHT_BURNED | LIGHT_BROKEN)
switchcountHow many times has the light been switched on/off? (This is used to calc the probability the light burns out)
turning_onIs the light currently turning on?

Procs

_turn_onThe actual proc to turn on the lightbulb.
flicker_eventFlicker routine for the light. Called by invoke_async so the parent proc can return immediately.
updateUpdates the light's 'on' state and power consumption based on /obj/machinery/light/var/on.

Var Details

brightness_color

Light colour when on

brightness_power

Light intensity

brightness_range

Light range (Also used in power calculation)

bulb_emergency_colour

The colour of the light while it's in emergency mode

fitting

Type of light bulb that goes into the fixture

flickering

Is the light currently flickering?

light_type

Item type of the light bulb

lightmaterials

Materials the light is made of

nightshift_allowed

Allowed to be switched to night shift mode?

nightshift_enabled

Currently in night shift mode?

nightshift_light_color

The colour of the light while it's in night shift mode

nightshift_light_power

Light intensity when in night shift mode

nightshift_light_range

Light range when in night shift mode

on

Is the light on or off?

power_state

If the light state has changed since the last 'update()', also update the power requirements

rigged

Is the light rigged to explode?

static_power_used

How much power does it use?

status

Light fixture status (LIGHT_OK | LIGHT_EMPTY | LIGHT_BURNED | LIGHT_BROKEN)

switchcount

How many times has the light been switched on/off? (This is used to calc the probability the light burns out)

turning_on

Is the light currently turning on?

Proc Details

_turn_on

The actual proc to turn on the lightbulb.

Private proc, do not call directly. Use /obj/machinery/light/proc/update instead.

Sets the light power, range, and colour based on environmental conditions such as night shift and fire alarms. Also handles light bulbs burning out and exploding if trigger is TRUE.

flicker_event

Flicker routine for the light. Called by invoke_async so the parent proc can return immediately.

update

Updates the light's 'on' state and power consumption based on /obj/machinery/light/var/on.

Arguments: