mirror of
https://github.com/doublespeakgames/adarkroom.git
synced 2026-05-28 08:11:54 +08:00
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:
+10
-4
@@ -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'));
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user