/tg/ Station 13 - Modules - Types — Var Details - Proc Details

body_marking_entry

Vars

cached_key"[marking.name][color][emissive]", rebuilt after a setter clears it.
colorLiteral lowercase #rrggbb, exactly what sanitize_hexcolor() returns.
emissive1 when the marking glows, else 0: the same integer the savefile holds.
markingThe GLOB.body_markings singleton worn here. Its name is this entry's identity.
zoneThe marking zone this entry sits on, one of GLOB.marking_zones.

Procs

cache_keyReturns this entry's part of a limb icon cache key.
copyReturns a new entry wearing the same marking on the same zone, in the same colour and glow.
get_colorReturns this entry's colour.
get_emissiveReturns whether this entry glows.
reseed_colorGives this entry the colour its marking starts in again, by the marking's color_mode: the mutant colour it follows, or its own default_color. A locked marking gets its own colour back too, which set_color() refuses.
set_colorRecolours this entry, for every collection and limb holding it. A locked marking keeps its colour.
set_emissiveTurns this entry's glow on or off, for every collection and limb holding it.
store_colorStores a colour and invalidates every icon key built from the old one. It refuses nothing; the callers decide.

Var Details

cached_key

"[marking.name][color][emissive]", rebuilt after a setter clears it.

color

Literal lowercase #rrggbb, exactly what sanitize_hexcolor() returns.

emissive

1 when the marking glows, else 0: the same integer the savefile holds.

marking

The GLOB.body_markings singleton worn here. Its name is this entry's identity.

zone

The marking zone this entry sits on, one of GLOB.marking_zones.

Proc Details

cache_key

Returns this entry's part of a limb icon cache key.

Returns:

copy

Returns a new entry wearing the same marking on the same zone, in the same colour and glow.

Arguments:

Returns:

get_color

Returns this entry's colour.

Returns:

get_emissive

Returns whether this entry glows.

Returns:

reseed_color

Gives this entry the colour its marking starts in again, by the marking's color_mode: the mutant colour it follows, or its own default_color. A locked marking gets its own colour back too, which set_color() refuses.

A marking being newly worn is built with seed_color()'s colour instead, so no icon key is invalidated for an entry no key can hold yet.

Arguments:

set_color

Recolours this entry, for every collection and limb holding it. A locked marking keeps its colour.

Arguments:

Returns:

set_emissive

Turns this entry's glow on or off, for every collection and limb holding it.

Arguments:

Returns:

store_color

Stores a colour and invalidates every icon key built from the old one. It refuses nothing; the callers decide.

Arguments: