edit (bug found): It came to my attention that the current Cookie Monster displays Time Left without even considering wrinklers. Even if you have 10 wrinklers and your income is 50% less, it will display the same amount of time as if you had your unwithered cps still. This is incorrect info as there are only 2 situations that are correct:
Time left with withered cps + bank.
Player does not intend to pop wrinklers.
2. Time left with unwithered cps + bank + wrinkler bank + wrinkler bonus cps.
Player intends to pop wrinklers.
Would like to add that I don't think anyone would intend not to ever pop wrinklers, so I think #2 should be default. Not sure why #1 would ever be desired.
//C# Pseudo Code private static int SecondsLeft(double cost, double cookiesInBank, double rewardsFromPopping, double wrinklerCPS) { var cookiesNeeded = (cost - cookiesInBank - rewardsFromPopping); var secLeft = Math.Ceiling(cookiesNeeded / wrinklerCPS); return secLeft; }
edit (bug found): It came to my attention that the current Cookie Monster displays Time Left without even considering wrinklers. Even if you have 10 wrinklers and your income is 50% less, it will display the same amount of time as if you had your unwithered cps still. This is incorrect info as there are only 2 situations that are correct:
Would like to add that I don't think anyone would intend not to ever pop wrinklers, so I think #2 should be default. Not sure why #1 would ever be desired.