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:
@@ -661,37 +661,5 @@ var Outside = {
|
||||
Outside.updateWorkersView();
|
||||
Outside.updateVillageIncome();
|
||||
}
|
||||
},
|
||||
|
||||
scrollSidebar: function(direction, reset) {
|
||||
|
||||
if( typeof reset != "undefined" ){
|
||||
$('#village').css('top', '0px');
|
||||
$('#storesContainer').css('top', '224px');
|
||||
Outside._STORES_OFFSET = 0;
|
||||
return false;
|
||||
}
|
||||
|
||||
var momentum = 10;
|
||||
|
||||
// If they hit up, we scroll everything down
|
||||
if( direction == 'up' )
|
||||
momentum = momentum * -1;
|
||||
|
||||
/* Let's stop scrolling if the top or bottom bound is in the viewport, based on direction */
|
||||
if( direction == 'down' && inView( direction, $('#village') ) ){
|
||||
|
||||
return false;
|
||||
|
||||
}else if( direction == 'up' && inView( direction, $('#storesContainer') ) ){
|
||||
|
||||
return false;
|
||||
|
||||
}
|
||||
|
||||
scrollByX( $('#village'), momentum );
|
||||
scrollByX( $('#storesContainer'), momentum );
|
||||
Outside._STORES_OFFSET += momentum;
|
||||
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user