FrozenCookies icon indicating copy to clipboard operation
FrozenCookies copied to clipboard

Golden Cookie spawn time estimate calculations dont reflect when the golden cookie will actually spawn, given certain GC frequency upgrades

Open mr-cats opened this issue 4 years ago • 3 comments

The golden cookie estimate spawn timers suggest that Frozen Cookies is calculating the minimum GC spawn time to be about 2130 ticks, which is what the minimum spawn time would be if you only had the two double frequency upgrades in addition to one of the "5% more frequent" upgrades. If you have other late game means of improving GC Frequency, the estimate does not reflect it.

mr-cats avatar Jan 12 '21 17:01 mr-cats

I've seen this myself, but haven't dug into the code on that yet, so thanks.

I think there are two things to look at. One is the point you bring up about the minimum spawn time and the multipliers. Another is once the spawn time is determined to be able to correctly calculate the probabilities across the full spawn time. I've made a couple of changes regarding the probability prediction, but haven't got the modifier calculation all done. I'll poke at that some more.

adavidw avatar Jan 12 '21 17:01 adavidw

If these calculations are using a value for minimum and maximum spawn time, I believe these can be taken directly from Game.shimmerTypes["golden"].minTime and Game.shimmerTypes["golden"].maxTime instead of inferred from upgrades, which has the benefit of including garden plant effects as well.

Somewhat related, if the frequency increase upgrades that are tracked by FC are purchased, it updates the estimate calculator immediately, whereas the game only updates the frequency upon the next GC click. I think this issue also would get solved by taking the times directly from the game.

mr-cats avatar Jan 12 '21 18:01 mr-cats

I can confirm the numbers on the display do not account for the garden.

RobertBuchananWMG avatar Jan 17 '21 23:01 RobertBuchananWMG