Expansion (#707)

This additional content explores the aftermath of an event in The Ensign. A large dungeon, The Executioner, reveals the fate of one of the Wanderers’ most powerful weapons though multiple wings, each ending with a unique boss encounter. The fabricator allows the player to craft powerful items out of alien alloy, introducing new combat mechanics.
This commit is contained in:
Michael Townsend
2023-06-09 12:38:16 -04:00
committed by GitHub
parent 431b72fab8
commit 7ee96fd108
18 changed files with 5123 additions and 2038 deletions
+10 -4
View File
@@ -16,13 +16,19 @@ var Header = {
return $('div#header div.headerButton').length > 1;
},
addLocation: function(text, id, module) {
return $('<div>').attr('id', "location_" + id)
addLocation: function(text, id, module, before) {
const toAdd = $('<div>').attr('id', "location_" + id)
.addClass('headerButton')
.text(text).click(function() {
if(Header.canTravel()) {
Engine.travelTo(module);
}
}).appendTo($('div#header'));
});
if (before && $(`#location_${before}`).length > 0) {
return toAdd.insertBefore(`#location_${before}`);
}
return toAdd.appendTo($('div#header'));
}
};
};