mirror of
https://github.com/doublespeakgames/adarkroom.git
synced 2026-06-01 10:11:55 +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:
+13
-9
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user