space-station-14
space-station-14 copied to clipboard
Price of food depends on its nutritional capacity
About the PR
This allow to calculate a price based on the reagents in a SolutionContainerManager.
The reagent prototype now have a PricePerUnit datafield that is used is the calculation. Right now only Nutriment, Vitamin and Protein got a price.
This can easily be extended to drinks and chemicals.
fixes #11464
Changelog
:cl:
- add: the price of food now depends on its nutritional capacity
Kinda weird having SolutionPrice considering the same reagent in one container or another changes its price.
Kinda weird having SolutionPrice considering the same reagent in one container or another changes its price.
You mean I should remove that component and calculate the price on every SolutionContainer ?
This pull request has conflicts, please resolve those before we can evaluate the pull request.
Kinda weird having SolutionPrice considering the same reagent in one container or another changes its price.
You mean I should remove that component and calculate the price on every SolutionContainer ?
yes, it seems like it's too prone to data entry bugs where contributors forget about it.