MaPaul1977 / KittensGame

Kittens Game Scripts
29 stars 22 forks source link

Secondary crafting isn't working as expected #7

Open dudeisdudet opened 6 years ago

dudeisdudet commented 6 years ago

The way I think secondary crafting should work is that it'll keep the secondary at the percentage I input of the primary. So if I have 100k beam and I say 1%, it'll make 1k scaffold. For something like concrete, which has two ingredients, I'd expect it to respect the one I have less of. Whenever I try to use this, though, it just makes as many of the secondary as possible, and I'm left with none of the primary. This could be a very useful feature, but it doesn't appear to work.

macdjord commented 6 years ago

It's important to remember that it takes a lot more than one unit of the primary resource to make each unit of the secondary resource. For example, it takes 2500 slabs to make one concrete. So if you start with 100k slabs and 0 concrete and set it to 50%:

If you wanted to get back up to 100k slabs, you'd need 50k units of concrete, which would cost a total of 125 million slabs.

Also, no, for secondary resources that cost multiple primary resources, it does not consider all of them. Production of concrete depends only on how many slabs you have, and production of alloy depends only on how much steel you have. In theory, this could mean you use up all your steel making concrete or all your titanium making alloy, but in practice, you need so much more slab than steel for concrete and so much more steel than titanium for alloy that it works fine.