cameroncondry / cbc-kitten-scientists

Add-on for the wonderful incremental browser game: http://kittensgame.com/web/
MIT License
113 stars 94 forks source link

Religion Bonus to Unicorns #270

Open IceColdRhino opened 4 years ago

IceColdRhino commented 4 years ago

Once you have Unicorn Tears in hand, if you’re trying to maximize the “Unicorns Bonus” parameter, it’s very easy to choose which action to take.

Each relevant building (Unicorn Tomb, Ivory Tower, Ivory Citadel, Sky Palace, Unicorn Utopia, Sunspire) has a unicorn bonus (B), base tear cost (C), and price ratio (R) which exponents itself based on the building level (L). (Explaining the obvious just for the sake of defining variables). The marginal benefit of any given purchase is calculated by:

(B/C)*R^(-L)

And you can find the point where any two building are equally as effective by setting their respective expressions equal to each other.

The thing is, when you actually do this, it turns out to just be a flat rate difference. For example, the difference between the Unicorn Tomb and the Ivory Citadel is 4. If I have 6 Unicorn Tombs and 1 Ivory Citadel, then I’d prefer to buy a Citadel over a Tomb. And that would remain true if I had 106 Tombs and 101 Citadels.

Unicorn Tombs should always be the highest value, but more explicitly: Your number of Unicorn Tombs should always be... ...6 more than your number of Ivory Towers ...4 more than your number of Ivory Citadels ...16 more than your number of Sky Palaces ...21 more than your number of Unicorn Utopias ...27 more than your number of Sunspires

So all that brings me to my suggestion/request. Since these are just flat values that don’t require any real-time re-calculation, would it be possible to introduce some sort of “Maximize Unicorns” option in the Options tab. I imagine this wouldn’t be too terribly different from the stockpile settings in the Crafting tab. Simply, “if Unicorn Tomb > Ivory Tower + 6, ignore Unicorn Tomb”, and so on down the line.

Wymrite commented 4 years ago

This is something I've been planning on adding for awhile and is part of the reason the options tab was made in the first place. I'll be working on implementing this after I'm finished with the update I'm currently sitting on, but the calculation will be a bit more robust to factor in ivory cost, alicorn production, etc as well.

wingedcatgirl commented 4 years ago

This has been resolved by #292 and should be closed.