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
+13 -9
View File
@@ -826,15 +826,19 @@ var Room = {
}
for (var k in $SM.get('stores')) {
var type = null;
if (Room.Craftables[k]) {
type = Room.Craftables[k].type;
} else if (Room.TradeGoods[k]) {
type = Room.TradeGoods[k].type;
} else if (Room.MiscItems[k]) {
type = Room.MiscItems[k].type;
if (k.indexOf('blueprint') > 0) {
// don't show blueprints
continue;
}
const good =
Room.Craftables[k] ||
Room.TradeGoods[k] ||
Room.TradeGoods[k] ||
Room.MiscItems[k] ||
Fabricator.Craftables[k];
const type = good ? good.type : null;
var location;
switch (type) {
case 'upgrade':
@@ -854,7 +858,7 @@ var Room = {
break;
}
var id = "row_" + k.replace(' ', '-');
var id = "row_" + k.replace(/ /g, '-');
var row = $('div#' + id, location);
var num = $SM.get('stores["' + k + '"]');
@@ -1139,7 +1143,7 @@ var Room = {
if (Room.craftUnlocked(k)) {
var loc = Room.needsWorkshop(craftable.type) ? craftSection : buildSection;
craftable.button = new Button.Button({
id: 'build_' + k,
id: 'build_' + k.replace(/ /g, '-'),
cost: craftable.cost(),
text: _(k),
click: Room.build,