mirror of
https://github.com/doublespeakgames/adarkroom.git
synced 2026-05-28 08:11:54 +08:00
fix enableGodMode order to prevent strange behaviour
This commit is contained in:
+11
-10
@@ -908,20 +908,14 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
// give 100000 of all stores
|
// give 100000 of all stores
|
||||||
Prestige.storesMap.forEach(function (e) {
|
for (var i = 0; i < Prestige.storesMap.length; i++) {
|
||||||
State.stores[e.store] = 100000;
|
State.stores[Prestige.storesMap[i].store] = 100000;
|
||||||
});
|
|
||||||
|
}
|
||||||
for (var key in Room.TradeGoods) {
|
for (var key in Room.TradeGoods) {
|
||||||
State.stores[key] = 100000;
|
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
|
// open up all section
|
||||||
if(!Outside.tab) {
|
if(!Outside.tab) {
|
||||||
Outside.init();
|
Outside.init();
|
||||||
@@ -935,6 +929,13 @@
|
|||||||
Ship.init();
|
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
|
// remove all cooldowns
|
||||||
$('.button').each(function (i, el) {
|
$('.button').each(function (i, el) {
|
||||||
$(el).off('click');
|
$(el).off('click');
|
||||||
|
|||||||
Reference in New Issue
Block a user