Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var jquery = document.createElement("script");
- jquery.src = "http://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js";
- jquery.onload = function() {
- this.parentNode.removeChild(this);
- };
- (document.head||document.documentElement).appendChild(jquery);
- jquery.onload = function() {
- $(document).ready(function(){
- setTimeout(function(){
- Game.ShowMenu("stats");
- Game.UpdateMenuOld = Game.UpdateMenu;
- Game.UpdateMenu = function() {
- Game.UpdateMenuOld();
- if (Game.onMenu == 'stats') {
- $(".section").after("<div id='customStats' class='subsection'>"+
- "<div class='title'>Custom</div>"+
- "</div>");
- var normalCount = 0, frenzyCount = 0;
- var heavenlyChipsCount = Game.HowMuchPrestige(Game.cookiesReset+Game.cookiesEarned);
- if (Game.frenzy > 0) {
- normalCount = Game.convertToReadable(Game.cookiesPs / 7 * 1200);
- frenzyCount = Game.convertToReadable(Game.cookiesPs * 1200);
- } else {
- normalCount = Game.convertToReadable(Game.cookiesPs * 1200);
- frenzyCount = Game.convertToReadable(Game.cookiesPs * 7 * 1200);
- }
- $("#customStats").append("<div class='listing'><b>Max lucky bonus gain : </b>"+normalCount+"</div>"+
- "<div class='listing'><b>Max lucky bonus gain (with frenzy) : </b>"+frenzyCount+"</div>"+
- "<div class='listing'><b>Heavenly chips after reset : </b>"+heavenlyChipsCount+"</div>");
- }
- };
- Game.UpdateMenu();
- }, 1000);
- });
- };
- Game.convertToReadable = function(count){
- if (count < 1e+6) {
- count = count.toFixed(3);
- } else if (count < 1e+9) {
- count = (count / 1e+6).toFixed(3)+" million";
- } else if (count < 1e+12) {
- count = (count / 1e+9).toFixed(3)+" billion";
- } else if (count < 1e+15) {
- count = (count / 1e+12).toFixed(3)+" trillion";
- } else if (count < 1e+18) {
- count = (count / 1e+15).toFixed(3)+" quadrillion";
- } else if (count < 1e+21) {
- count = (count / 1e+18).toFixed(3)+" quintillion";
- } else if (count < 1e+24) {
- count = (count / 1e+21).toFixed(3)+" sextillion";
- }
- return count;
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement