portable_chem_mixer
Vars | |
amount | Creating an empty slot for a beaker that can be added to dispense into |
---|---|
dispensable_reagents | The amount of reagent that is to be dispensed currently |
show_ph | List in which all currently dispensable reagents go If the UI has the pH meter shown |
Procs | |
replace_beaker | Replaces the beaker of the portable chemical mixer with another beaker, or simply adds the new beaker if none is in currently |
update_contents | Updates the contents of the portable chemical mixer |
Var Details
amount
Creating an empty slot for a beaker that can be added to dispense into
dispensable_reagents
The amount of reagent that is to be dispensed currently
show_ph
List in which all currently dispensable reagents go If the UI has the pH meter shown
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:
- mob/living/user - The user who is trying to exchange beakers
- obj/item/reagent_containers/new_beaker - The new beaker that the user wants to put into the device
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