Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- (function () {
- window.seeAll = function(yes) {
- if (window.seeAllYes === yes) return;
- window.seeAllYes = yes;
- if (yes) {
- window.seeAllInterval = setInterval(() => game.buildings.forEach(b => { if (b.owner.team !== PLAYING_PLAYER.team && b.owner.team.number !== 0) b.seenBy[PLAYING_PLAYER.team.number] = b.seenBy[b.owner.team.number];}), 250);
- } else {
- if (window.seeAllInterval) clearInterval(window.seeAllInterval);
- }
- }
- seeAll(true);
- })();
- // disable with seeAll(false);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement