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

towel_rack

Towel Racks A rack to store towels.

Vars

max_towelsMax amount of towels we can hold.
towelsAll of the towels we're holding. Last in first out

Procs

add_towelAdd [added_towel] into the rack, if we can.
remove_towelRemove the last towel from the rack. Last in, first out.

Var Details

max_towels

Max amount of towels we can hold.

towels

All of the towels we're holding. Last in first out

Proc Details

add_towel

Add [added_towel] into the rack, if we can.

added_towel - the towel we're adding to the rack user - the mob who is inserting the towel

return FALSE if we fail to insert the towel, and TRUE otherwise

remove_towel

Remove the last towel from the rack. Last in, first out.

user - the mob who is removing the towel

returns the towel removed.