reorder enable god mode code to prevent duplicate area tabs

This commit is contained in:
jorsi
2020-06-03 18:29:30 -04:00
parent 031d9435e3
commit 8dea25ccd2
+21 -21
View File
@@ -835,19 +835,6 @@
},
enableGodMode: function() {
// open up all section
if(!Outside.tab) {
Outside.init();
}
if(!Path.tab) {
Path.init();
}
if(!Ship.tab) {
Ship.init();
}
// add all remaining craftables and goods
var buildSection = $('#buildBtns');
if (buildSection.length === 0) {
@@ -909,14 +896,6 @@
}
}
// remove all cooldowns
$('.button').each(function (i, el) {
$(el).off('click');
$(el).click(function() {
$(this).data("handler")($(this));
})
});
// set water/health
Path.DEFAULT_BAG_SPACE = 1000;
World.BASE_WATER = 1000;
@@ -943,6 +922,27 @@
}
}
// open up all section
if(!Outside.tab) {
Outside.init();
}
if(!Path.tab) {
Path.init();
}
if(!Ship.tab) {
Ship.init();
}
// remove all cooldowns
$('.button').each(function (i, el) {
$(el).off('click');
$(el).click(function() {
$(this).data("handler")($(this));
})
});
}
};