[NO GBP] Apply multiplier correctly when transferring reagents. (#79084)

## About The Pull Request
- Fixes #79083 

The multiplier should be applied per reagent volume & not on the
requested amount as a whole.

## Changelog
🆑
fix: cryo and stuff that transfers reagents with a multiplier should
transfer correct volumes as expected.
/🆑
This commit is contained in:
SyncIt21
2023-10-21 18:22:59 +02:00
committed by GitHub
parent 9ed4bd202d
commit 4db10f0aa3
4 changed files with 25 additions and 21 deletions
@@ -30,7 +30,7 @@
//compute how much more is needed and round it
diff = chamber.required_reagents[required_reagent] - present_amount
if(diff >= CHEMICAL_QUANTISATION_LEVEL * 10) //should be safe even after rounding
if(diff >= 0.01)
process_request(min(diff, MACHINE_REAGENT_TRANSFER), required_reagent, dir)
return