You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Right now this method just recalculates all output prices 10 times in a row (horribly inefficient). This is done to ensure dependent prices are guaranteed to be correct for other output recipes.
For example, if the output list has Iron Bar and Iron Pickaxe, we need to make sure the output price of Iron Bar is correct before using that price for the Iron Bar ingredient in the Iron Pickaxe recipe. Right now it is just brute forced. The goal should be an "OutputPriceCorrect" flag on each output recipe that is set to false when we need to recalculate prices, and is set to true if the price is calculated with only ingredients that are in the Inputs section, OR with ingredients in the Outputs section that have their OutputPriceCorrect flag already true.
The text was updated successfully, but these errors were encountered:
Right now this method just recalculates all output prices 10 times in a row (horribly inefficient). This is done to ensure dependent prices are guaranteed to be correct for other output recipes.
For example, if the output list has Iron Bar and Iron Pickaxe, we need to make sure the output price of Iron Bar is correct before using that price for the Iron Bar ingredient in the Iron Pickaxe recipe. Right now it is just brute forced. The goal should be an "OutputPriceCorrect" flag on each output recipe that is set to false when we need to recalculate prices, and is set to true if the price is calculated with only ingredients that are in the Inputs section, OR with ingredients in the Outputs section that have their OutputPriceCorrect flag already true.
The text was updated successfully, but these errors were encountered: