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

glow

Vars

base_eye_statebase icon state for eye overlays
eye_color_modeWhether or not to match the eye color to the light or use a custom selection
left_eye_color_stringThe custom selected eye color for the left eye. Defaults to the mob's natural eye color
light_color_stringThe selected color for the light beam itself
right_eye_color_stringThe custom selected eye color for the right eye. Defaults to the mob's natural eye color

Procs

activateActivates the light
deactivateDeactivates the light
on_mob_insertSet the initial color of the eyes on insert to be the mob's previous eye color.
randomize_colorRandomizes the light color
set_beam_colorSetter function for the light's color
set_beam_rangeSetter function for the light's range
toggle_activeToggle the attached flashlight object on or off
toggle_eye_color_modeToggles for the eye color mode
update_mob_eye_colorUpdates the mob eye color

Var Details

base_eye_state

base icon state for eye overlays

eye_color_mode

Whether or not to match the eye color to the light or use a custom selection

left_eye_color_string

The custom selected eye color for the left eye. Defaults to the mob's natural eye color

light_color_string

The selected color for the light beam itself

right_eye_color_string

The custom selected eye color for the right eye. Defaults to the mob's natural eye color

Proc Details

activate

Activates the light

Turns on the attached flashlight object, updates the mob overlay to be added.

deactivate

Deactivates the light

Turns off the attached flashlight object, closes UIs, updates the mob overlay to be removed. Arguments:

on_mob_insert

Set the initial color of the eyes on insert to be the mob's previous eye color.

randomize_color

Randomizes the light color

Picks a random color and sets the beam color to that Arguments:

set_beam_color

Setter function for the light's color

Sets the light color of the attached flashlight object. Sets the eye color vars of this eye organ as well and then updates the mob's eye color. Arguments:

set_beam_range

Setter function for the light's range

Sets the light range of the attached flashlight object Includes some 'unique' logic to accomodate for some quirks of the lighting system Arguments:

toggle_active

Toggle the attached flashlight object on or off

toggle_eye_color_mode

Toggles for the eye color mode

Toggles the eye color mode on or off and then calls an update on the mob's eye color

update_mob_eye_color

Updates the mob eye color

Updates the eye color to reflect on the mob's body if it's possible to do so Arguments: