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

towel

Vars

max_reagent_volumeHow many units of liquid can this towel store?
shapeThe shape we're currently in.
wetAre we currently wet?

Procs

attack_on_liquids_turfThe procedure for remove liquids from turf
change_towel_shapeHelper to change the shape of the towel, so that it updates its look both in-hand and on the body of the wearer.
make_usedSimple helper to make the towel into a used towel shape.
set_wetHelper proc to handle setting the towel's wet variable, changing the icon_state accordingly and making the towel look a little damp if wet, and removing that color if not wet.
transfer_reagents_to_towelHelper to transfer reagents to the towel.
transfer_towel_reagents_toHelper to transfer reagents from the towel to something else, handling all the work related to ensuring that the towel gets updated visually if it now becomes dry, while also optionally applying a loss factor to the transfer.
update_slot_related_flagsHelper proc to change the slot flags of the towel based on its shape.

Var Details

max_reagent_volume

How many units of liquid can this towel store?

shape

The shape we're currently in.

wet

Are we currently wet?

Proc Details

attack_on_liquids_turf

The procedure for remove liquids from turf

The object is called from liquid_interaction element. The procedure check range of mop owner and tile, then check reagents in mop, if reagents volume < mop capacity - liquids absorbs from tile In another way, input a chat about mop capacity Arguments:

change_towel_shape

Helper to change the shape of the towel, so that it updates its look both in-hand and on the body of the wearer.

Arguments:

make_used

Simple helper to make the towel into a used towel shape.

Arguments:

set_wet

Helper proc to handle setting the towel's wet variable, changing the icon_state accordingly and making the towel look a little damp if wet, and removing that color if not wet.

Arguments:

transfer_reagents_to_towel

Helper to transfer reagents to the towel.

Arguments:

transfer_towel_reagents_to

Helper to transfer reagents from the towel to something else, handling all the work related to ensuring that the towel gets updated visually if it now becomes dry, while also optionally applying a loss factor to the transfer.

Arguments:

Helper proc to change the slot flags of the towel based on its shape.