Advertisement
Guest User

Untitled

a guest
May 28th, 2015
248
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.13 KB | None | 0 0
  1. var jquery = document.createElement("script");
  2. jquery.src = "http://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js";
  3. jquery.onload = function() {
  4. this.parentNode.removeChild(this);
  5. };
  6. (document.head||document.documentElement).appendChild(jquery);
  7.  
  8. jquery.onload = function() {
  9. $(document).ready(function(){
  10. setTimeout(function(){
  11. Game.ShowMenu("stats");
  12. Game.UpdateMenuOld = Game.UpdateMenu;
  13. Game.UpdateMenu = function() {
  14. Game.UpdateMenuOld();
  15. if (Game.onMenu == 'stats') {
  16. $(".section").after("<div id='customStats' class='subsection'>"+
  17. "<div class='title'>Custom</div>"+
  18. "</div>");
  19.  
  20. var normalCount = 0, frenzyCount = 0;
  21. var heavenlyChipsCount = Game.HowMuchPrestige(Game.cookiesReset+Game.cookiesEarned);
  22. if (Game.frenzy > 0) {
  23. normalCount = Game.convertToReadable(Game.cookiesPs / 7 * 1200);
  24. frenzyCount = Game.convertToReadable(Game.cookiesPs * 1200);
  25. } else {
  26. normalCount = Game.convertToReadable(Game.cookiesPs * 1200);
  27. frenzyCount = Game.convertToReadable(Game.cookiesPs * 7 * 1200);
  28. }
  29. $("#customStats").append("<div class='listing'><b>Max lucky bonus gain : </b>"+normalCount+"</div>"+
  30. "<div class='listing'><b>Max lucky bonus gain (with frenzy) : </b>"+frenzyCount+"</div>"+
  31. "<div class='listing'><b>Heavenly chips after reset : </b>"+heavenlyChipsCount+"</div>");
  32. }
  33. };
  34. Game.UpdateMenu();
  35. }, 1000);
  36. });
  37. };
  38.  
  39. Game.convertToReadable = function(count){
  40. if (count < 1e+6) {
  41. count = count.toFixed(3);
  42. } else if (count < 1e+9) {
  43. count = (count / 1e+6).toFixed(3)+" million";
  44. } else if (count < 1e+12) {
  45. count = (count / 1e+9).toFixed(3)+" billion";
  46. } else if (count < 1e+15) {
  47. count = (count / 1e+12).toFixed(3)+" trillion";
  48. } else if (count < 1e+18) {
  49. count = (count / 1e+15).toFixed(3)+" quadrillion";
  50. } else if (count < 1e+21) {
  51. count = (count / 1e+18).toFixed(3)+" quintillion";
  52. } else if (count < 1e+24) {
  53. count = (count / 1e+21).toFixed(3)+" sextillion";
  54. }
  55. return count;
  56. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement