SHARE
TWEET

Untitled

a guest Sep 15th, 2019 104 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // Open Developer Console (Ctrl+Shift+I)
  2. // Select Console
  3. // Find dropbox selector that says 'top', select 'gameiframe (kong-index.html)'
  4. // Paste following code in console and press Enter
  5.  
  6. window.addEventListener('keydown', function(event) {
  7.     if (document.activeElement.type === "text" || document.activeElement.type === "number") return false
  8.     const tmp = event.keyCode;
  9.    
  10.     switch (event.keyCode) {
  11.         case 97: //1
  12.             prestige(0);
  13.             openBattleFieldScreen();
  14.         break;
  15.  
  16.         case 98: //2
  17.             prestige(1);
  18.             openBattleFieldScreen();
  19.         break;
  20.  
  21.         case 99: //3
  22.             prestige(2);
  23.             openBattleFieldScreen();
  24.         break;
  25.  
  26.         case 100: //4
  27.             prestige(3);
  28.             openBattleFieldScreen();
  29.         break;
  30.  
  31.         case 101: //5
  32.             prestige(4);
  33.             openBattleFieldScreen();
  34.         break;
  35.  
  36.         case 102: //6
  37.             prestige(5);
  38.             openBattleFieldScreen();
  39.         break;
  40.  
  41.         case 103: //7
  42.             prestige(6);
  43.             openBattleFieldScreen();
  44.         break;
  45.  
  46.         case 104: //8
  47.             prestige(7);
  48.             openBattleFieldScreen();
  49.         break;
  50.     }
  51. }, false);
  52.  
  53. document.getElementById('combat-log').setAttribute('style','width: 70vw;');
  54. var div = document.createElement('div');
  55. div.setAttribute('id','layer-helper');
  56. div.setAttribute('style', 'width: 30vw; bottom: 0; right: 0; position: fixed; text-align: right;');
  57. document.getElementById('battlefield-screen').append(div);
  58. var nextUpg = [];
  59. for (var i=1; i<=game.prestige.length; i++) {
  60.     var p = document.createElement('p');
  61.     p.setAttribute('id', 'p_l' + i);
  62.     p.setAttribute('class', 'combat-log-record');
  63.     p.setAttribute('style', 'display: block');
  64.     var span = document.createElement('span');
  65.     span.setAttribute('id', 'l' + i);
  66.     span.innerText = 'Layer ' + i + ' : ';
  67.     p.append(span);
  68.     div.append(p);
  69. }
  70.  
  71.  
  72. var sInterval = setInterval(function() {
  73.     for (var i=0; i<game.prestige.length; i++) {
  74.         var tp1 = game.prestige[i][1];
  75.         var tp11 = tp1.plus(1).times(i > 0 ? i : 1);
  76.         var value1 = getMultiBuyTarget(tp1, typeof game.options == "undefined" || typeof game.options[3] == "undefined" ? 0 : game.options[3]);
  77.         var number1 = value1.plus(1).times(i > 0 ? i : 1);
  78.         var tweak1 = getPrestigePointsFromStatUpgrades(value1).minus(getPrestigePointsFromStatUpgrades(tp1));
  79.        
  80.         var cur = getPrestigePointsFromStatUpgrades(tp1);
  81.         var str1 = (cur.cmp(10000) >= 0)?cur.toExponential(1):cur.toNumber();
  82.        
  83.         var mult = getAvailablePrestigePoints()[i].cmp(0)==0?new Decimal(0):(getAvailablePrestigePoints()[i].divideBy(2).floor().pow(0.4).floor().multiply(i==0?new Decimal(1):i).divideBy(game.prestige[i][1].cmp(0)==0?new Decimal(1):game.prestige[i][1]).floor().divideBy(i==0?new Decimal(1):i)).floor();
  84.         var str = (mult.cmp(10000) >= 0)?mult.toExponential(1):mult.toNumber();
  85.         document.getElementById('l' + (i+1)).innerText = 'Layer ' + (i+1) + ': Current ' + str1 + ' prestige x' + str;
  86.         //console.log("l" + (i+1) + ": x" + str);
  87.     }
  88. }, 100);
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top