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

Portable Chemical Mixer

Vars

amountCreating an empty slot for a beaker that can be added to dispense into
anomaly_core_presentThe amount of reagent that is to be dispensed currently
dispensable_reagentsTRUE if an anomaly core has been added

Procs

ComponentInitializeList in which all currently dispensable reagents go
replace_beakerReplaces the beaker of the portable chemical mixer with another beaker, or simply adds the new beaker if none is in currently
update_contentsUpdates the contents of the portable chemical mixer

Var Details

amount

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

anomaly_core_present

The amount of reagent that is to be dispensed currently

dispensable_reagents

TRUE if an anomaly core has been added

Proc Details

ComponentInitialize

List in which all currently dispensable reagents go

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

Updates the contents of the portable chemical mixer

A list of dispensable reagents is created by iterating through each source beaker in the portable chemical beaker and reading its contents