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

portable_chem_mixer

Vars

amountThe amount of reagent that is to be dispensed currently
beakerCreating an empty slot for a beaker that can be added to dispense into
dispensable_reagentsList in which all currently dispensable reagents go

Procs

replace_beakerReplaces the beaker of the portable chemical mixer with another beaker, or simply adds the new beaker if none is in currently
update_contentsReload dispensable reagents from new contents

Var Details

amount

The amount of reagent that is to be dispensed currently

beaker

Creating an empty slot for a beaker that can be added to dispense into

dispensable_reagents

List in which all currently dispensable reagents go

Proc Details

replace_beaker

Replaces the beaker of the portable chemical mixer with another beaker, or simply adds the new beaker if none is in currently

Checks if a valid user and a valid new beaker exist and attempts to replace the current beaker in the portable chemical mixer with the one in hand. Simply places the new beaker in if no beaker is currently loaded Arguments:

update_contents

Reload dispensable reagents from new contents