cameroncondry / cbc-kitten-scientists

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

some new functions and some bug fixed #292

Closed Cirn09 closed 4 years ago

Cirn09 commented 4 years ago

new functions:

bug fixed:

I am sorry for my ugly code. Those functions has been tested by some Chinese players for a week.

cameroncondry commented 4 years ago

So far I am quite happy with these updates. However, the branch currently has conflicts. When you get a chance, please resolve the conflicts and I'll go ahead and pull it into master. Thank you for the great additions!

cameroncondry commented 4 years ago

My apologies, should have looked at the conflicts. I went ahead and resolved the issue and merged in your updates. Thanks again for the great additions!

oliversalzburg commented 3 years ago

What is the logic behind this piece of code?

var epiphanyRecommend = (1-k+Math.sqrt(80*(k*k-1)*x+(k-1)*(k-1)))*k/(40*(k+1)*(k+1)*(k-1))+x+x/(k*k-1);
PeterCheney commented 3 years ago

What is the logic behind this piece of code?

var epiphanyRecommend = (1-k+Math.sqrt(80*(k*k-1)*x+(k-1)*(k-1)))*k/(40*(k+1)*(k+1)*(k-1))+x+x/(k*k-1);

transcendend level = TT

  • transcendend next level will lose some of faithRatio.
  • x = needNextLevel = lose faithRaito's value.
  • then transcendend level will improve the adore gain faithRatio value.
  • k = next transcendend level / now transcendend level = (1+ (TT+1))^2 / (1+TT) ^2= adoreIncreaceRatio