Space Station 13 - Modules - TypesVar Details - Proc Details

Smart Fridge

Stores items of a specified type.

Vars

accepted_items_typecacheTypecache of accepted item types, init it in [/obj/machinery/smartfridge/Initialize].
broken_overlayOverlay used to visualize broken status.
can_dryWhether the fridge can dry its' contents. Used for display.
contents_overlayOverlay used to visualize contents for default smartfringe.
dryingWhether the fridge is currently drying. Used by drying racks.
fill_levelUsed to calculate smartfridge fullness while updating overlays.
icon_addonAdditional overlay on top, like hazard symbol for smartfringe in virology.
icon_lightmaskLightmask used for emissive appearance if smartfringe has a light source.
is_secureWhether the fridge is considered secure. Used for wiring and display.
item_quantsAssociative list (/text => /number) tracking the amounts of a specific item held by the fridge.
light_power_onDefault light power, when on.
light_range_onDefault light range, when on.
max_n_of_itemsThe maximum number of items the fridge can hold. Multiplicated by the matter bin component's rating.
scan_idWhether the fridge requires ID scanning. Used for the secure variant of the fridge.
seconds_electrifiedHow long in ticks the fridge is electrified for. Decrements every process.
shoot_inventoryWhether the fridge should randomly shoot held items at a nearby living target or not.
starting_itemsAssociative list (/obj/item => /number) representing the items the fridge should initially contain.
visible_contentsWhether the fridge's contents are visible on the world icon.
wiresThe wires controlling the fridge.

Procs

accept_checkReturns whether the smart fridge can accept the given item.
loadTries to load an item if it is accepted by /obj/machinery/smartfridge/proc/accept_check.
throw_itemTries to shoot a random at a nearby living mob.

Var Details

accepted_items_typecache

Typecache of accepted item types, init it in [/obj/machinery/smartfridge/Initialize].

broken_overlay

Overlay used to visualize broken status.

can_dry

Whether the fridge can dry its' contents. Used for display.

contents_overlay

Overlay used to visualize contents for default smartfringe.

drying

Whether the fridge is currently drying. Used by drying racks.

fill_level

Used to calculate smartfridge fullness while updating overlays.

icon_addon

Additional overlay on top, like hazard symbol for smartfringe in virology.

icon_lightmask

Lightmask used for emissive appearance if smartfringe has a light source.

is_secure

Whether the fridge is considered secure. Used for wiring and display.

item_quants

Associative list (/text => /number) tracking the amounts of a specific item held by the fridge.

light_power_on

Default light power, when on.

light_range_on

Default light range, when on.

max_n_of_items

The maximum number of items the fridge can hold. Multiplicated by the matter bin component's rating.

scan_id

Whether the fridge requires ID scanning. Used for the secure variant of the fridge.

seconds_electrified

How long in ticks the fridge is electrified for. Decrements every process.

shoot_inventory

Whether the fridge should randomly shoot held items at a nearby living target or not.

starting_items

Associative list (/obj/item => /number) representing the items the fridge should initially contain.

visible_contents

Whether the fridge's contents are visible on the world icon.

wires

The wires controlling the fridge.

Proc Details

accept_check

Returns whether the smart fridge can accept the given item.

By default checks if the item is in the typecache. Arguments:

load

Tries to load an item if it is accepted by /obj/machinery/smartfridge/proc/accept_check.

Arguments:

throw_item

Tries to shoot a random at a nearby living mob.