-
Notifications
You must be signed in to change notification settings - Fork 81
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Keg "sell excess" calculations does not account crop quality #79
Comments
I've actually been taking a harder look at how quality is distributed - it's also why I didn't include the math for selling excess by quality and defaulted excess to normal quality when I worked on this with @Thorinair. Backing up for a moment on the original ask here - @Thorinair I'd be happy to re-work the logic on quality outcome. The issue is it uses probability and not event driven conditional probability. Then apply quality to all produce results. Any thoughts takeaways? |
@doodlebunnyhops it is indeed quite a messy problem. Making it event driven would be messy as it would require simulation day-by-day, and would also result in random results each time, and not a proper average. I think the cleanest solution would be to keep it as averages, and implement the existing code into the remaining crops calculation. Complication here is that we cannot just put the excess into the formula. Most players would first process the normal value crop, and sell the higher valuable ones, as that makes most sense for profit. This means we first need to calculate the amounts of crops (maybe whole numbers?) and then "spend them" on making the artisan goods. Essentially, the whole code would have to be reworked... The only solution I see here is to either keep the excess sold to just normal, or do a compromise and process it with the existing code anyway. |
I dabbled with this and while it certainly muddied up the sections for dehydrator specifically So #80 adds a new button if you want to see a predictive like result and can recalculate it to see how the results change. More importantly to the original ask - it properly sells excess by crop quality, regardless if using predictive model or not. |
There are cases where adding kegs as an option results in less profit than just selling the crops outright
This is because the keg calculations are not considering crop quality and are instead using the base price of the crop.
My suggestion is to replace
with
Fyi this is a hacky solution. A DRYer one would be splitting out the crop selling logic so it can be reused.
The text was updated successfully, but these errors were encountered: