Criteria of hidden upgrades related prestige level '7' were changed since 2.048.
This PR is based on old PR from @grelca. (#1161) But some changes were made.
CountSevens function uses the algorithm that used by Cookie Clicker.
To fix an issue #1162, CalculateLuckyLevels function uses only top 15 digits if number of digits of given currentLevel is greater than 15. Because Javascript Number type has a precision of 53 bits, which is approximately 15.95 digits in decimal.
Criteria of hidden upgrades related prestige level '7' were changed since 2.048.
This PR is based on old PR from @grelca. (#1161) But some changes were made.
CountSevens
function uses the algorithm that used by Cookie Clicker.CalculateLuckyLevels
function uses only top 15 digits if number of digits of givencurrentLevel
is greater than 15. Because JavascriptNumber
type has a precision of 53 bits, which is approximately 15.95 digits in decimal.