Skip to content

Commit

Permalink
fix enableGodMode order to prevent strange behaviour
Browse files Browse the repository at this point in the history
  • Loading branch information
orsi committed Jun 4, 2020
1 parent b099a1d commit 51ddd24
Showing 1 changed file with 11 additions and 10 deletions.
21 changes: 11 additions & 10 deletions script/engine.js
Original file line number Diff line number Diff line change
Expand Up @@ -908,20 +908,14 @@
}

// give 100000 of all stores
Prestige.storesMap.forEach(function (e) {
State.stores[e.store] = 100000;
});
for (var i = 0; i < Prestige.storesMap.length; i++) {
State.stores[Prestige.storesMap[i].store] = 100000;

}
for (var key in Room.TradeGoods) {
State.stores[key] = 100000;
}

// set world map mask to reveal entire map
for(var j = 0; j <= World.RADIUS * 2; j++) {
for(var i = 0; i <= World.RADIUS * 2; i++) {
State.game.world.mask[i][j] = true;
}
}

// open up all section
if(!Outside.tab) {
Outside.init();
Expand All @@ -935,6 +929,13 @@
Ship.init();
}

// set world map mask to reveal entire map
for(var j = 0; j <= World.RADIUS * 2; j++) {
for(var i = 0; i <= World.RADIUS * 2; i++) {
State.game.world.mask[i][j] = true;
}
}

// remove all cooldowns
$('.button').each(function (i, el) {
$(el).off('click');
Expand Down

0 comments on commit 51ddd24

Please sign in to comment.