diff --git a/script/engine.js b/script/engine.js index e88c30f22..ed7053c04 100644 --- a/script/engine.js +++ b/script/engine.js @@ -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(); @@ -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');