Space Station 13 - Modules - TypesVar Details - Proc Details

Painter Datum

Contains variables for updating holder, as well as procs for choosing a colour and painting an atom.

The parent_painter argument is REQUIRED when spawning this in order to link the datum to an /obj/item/painter.

Vars

holderThe parent /obj/item/painter which this datum is linked to.
module_descDesc of the holder when using this module.
module_nameName of the holder when using this module.
module_stateIcon and Item state of the holder when using this module.
paint_settingThe current colour or icon state setting.

Procs

paint_atomContains code to apply the paint_setting variable onto the target atom.
pick_colorContains code to choose a new colour or icon state for the paint_setting variable.

Var Details

holder

The parent /obj/item/painter which this datum is linked to.

module_desc

Desc of the holder when using this module.

module_name

Name of the holder when using this module.

module_state

Icon and Item state of the holder when using this module.

paint_setting

The current colour or icon state setting.

Proc Details

paint_atom

Contains code to apply the paint_setting variable onto the target atom.

Called by afterattack() on the holder object.

pick_color

Contains code to choose a new colour or icon state for the paint_setting variable.

Called by attack_self() on the holder object.