Advertisement
Guest User

VMDC change proposition

a guest
Jul 29th, 2019
163
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.63 KB | None | 0 0
  1. function checkVoidMap() {
  2. if (game.global.totalPortals < 5) return;
  3. if (game.global.universe == 2 && game.global.totalRadPortals < 1) return;
  4. // voidMaxLevel was 1% useful 99% confusing
  5. // this works best if Radiant has x%-50% base 120% cap 0.5% step
  6. var chance = (Math.floor((game.global.lastVoidMap - 90) / 10) / 150000);
  7. game.global.lastVoidMap++;
  8. if (chance < 0) return;
  9. chance *= (1 + (getHeirloomBonus("Shield", "voidMaps") / 100));
  10. chance *= (1 + (game.goldenUpgrades.Void.currentBonus));
  11. if (seededRandom(game.global.voidSeed++) >= chance) return;
  12. createVoidMap();
  13. game.global.lastVoidMap = 0;
  14. return 1;
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement