Skip to content
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

Secondary Crafting is Highly Suboptimal #14

Open
macdjord opened this issue Mar 1, 2018 · 1 comment
Open

Secondary Crafting is Highly Suboptimal #14

macdjord opened this issue Mar 1, 2018 · 1 comment

Comments

@macdjord
Copy link
Contributor

macdjord commented Mar 1, 2018

Under the current system, autocraft will craft a secondary resource whenever the amount of that resource you have stockpiled is less than X% of the amount of the source resource you have stockpiled, where X is an adjustable percentage common to all secondary resources.

Unfortunately, this results in highly disproportionate crafting of the various secondary resources, because they each require different amounts of their respective primary resource per unit crafted. For instance, in my current game, I have a craft effectiveness of +612%. As a result, 13% of my steal income gets converted into gears, while 66% of it gets converted into alloy - but just over 99% of my slab production gets converted into concrete, because it takes so many slabs to make a single unit of concrete.

A much better way to determine how much of each secondary resource to craft would be this:

  • Check how much of the required primary resource is currently stockpiled
  • Calculate how much of the secondary resource could be manufactured if you converted it all right now. (Be sure to account for the current workshop craft effectiveness as well as the base ration of primary resource to secondary resource.)
  • Multiply this number by the set secondary crafting percentage
  • If the current stockpile of the secondary resource is less than the calculated amount, take the difference and craft that much of the secondary resource

The end result of this new algorithm would be that, over the long run, if you set your secondary craft ratio to X%, then X% of your income of each primary resource will be converted into the secondary resource.

@macdjord
Copy link
Contributor Author

macdjord commented Mar 1, 2018

It would also be nice if we could set the %age separately for the different resources - I need a lot more alloy than I do gears, for instance - but that's less important.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant