Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function checkVoidMap() {
- if (game.global.totalPortals < 5) return;
- if (game.global.universe == 2 && game.global.totalRadPortals < 1) return;
- // voidMaxLevel was 1% useful 99% confusing
- // this works best if Radiant has x%-50% base 120% cap 0.5% step
- var chance = (Math.floor((game.global.lastVoidMap - 90) / 10) / 150000);
- game.global.lastVoidMap++;
- if (chance < 0) return;
- chance *= (1 + (getHeirloomBonus("Shield", "voidMaps") / 100));
- chance *= (1 + (game.goldenUpgrades.Void.currentBonus));
- if (seededRandom(game.global.voidSeed++) >= chance) return;
- createVoidMap();
- game.global.lastVoidMap = 0;
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement