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 -35
View File
@@ -10,7 +10,8 @@ var Path = {
'bullets': 0.1,
'energy cell': 0.2,
'laser rifle': 5,
'bolas': 0.5
'plasma rifle': 5,
'bolas': 0.5,
},
name: 'Path',
@@ -67,7 +68,9 @@ var Path = {
},
getCapacity: function() {
if($SM.get('stores.convoy', true) > 0) {
if($SM.get('stores["cargo drone"]', true) > 0) {
return Path.DEFAULT_BAG_SPACE + 100;
} else if($SM.get('stores.convoy', true) > 0) {
return Path.DEFAULT_BAG_SPACE + 60;
} else if($SM.get('stores.wagon', true) > 0) {
return Path.DEFAULT_BAG_SPACE + 30;
@@ -98,7 +101,7 @@ var Path = {
var needsAppend = false;
if(perks.length === 0) {
needsAppend = true;
perks = $('<div>').attr({'id': 'perks', 'data-legend': _('perks:')});
perks = $('<div>').attr({'id': 'perks', 'data-legend': _('perks')});
}
for(var k in $SM.get('character.perks')) {
var id = 'perk_' + k.replace(' ', '-');
@@ -129,7 +132,9 @@ var Path = {
// Add the armour row
var armour = _("none");
if($SM.get('stores["s armour"]', true) > 0)
if($SM.get('stores["kinetic armour"]', true) > 0)
armour = _("kinetic");
else if($SM.get('stores["s armour"]', true) > 0)
armour = _("steel");
else if($SM.get('stores["i armour"]', true) > 0)
armour = _("iron");
@@ -169,7 +174,7 @@ var Path = {
'bayonet': {type: 'weapon' },
'charm': {type: 'tool'},
'medicine': {type: 'tool', desc: _('restores') + ' ' + World.MEDS_HEAL + ' ' + _('hp') }
}, Room.Craftables);
}, Room.Craftables, Fabricator.Craftables);
for(var k in carryable) {
var lk = _(k);
@@ -329,35 +334,5 @@ var Path = {
} else if(e.category == 'income' && Engine.activeModule == Path){
Path.updateOutfitting();
}
},
scrollSidebar: function(direction, reset){
if( typeof reset != "undefined" ){
$('#perks').css('top', '0px');
$('#storesContainer').css('top', '206px');
Path._STORES_OFFSET = 0;
return;
}
var momentum = 10;
if( direction == 'up' )
momentum = momentum * -1;
if( direction == 'down' && inView( direction, $('#perks') ) ){
return false;
}else if( direction == 'up' && inView( direction, $('#storesContainer') ) ){
return false;
}
scrollByX( $('#perks'), momentum );
scrollByX( $('#storesContainer'), momentum );
Path._STORES_OFFSET += momentum;
}
};