mirror of
https://github.com/doublespeakgames/adarkroom.git
synced 2026-05-28 00:01:54 +08:00
7ee96fd108
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.
35 lines
849 B
JavaScript
35 lines
849 B
JavaScript
var Score = {
|
|
|
|
name : 'Score',
|
|
|
|
options : {},
|
|
|
|
init : function(options) {
|
|
this.options = $.extend(this.options, options);
|
|
},
|
|
|
|
calculateScore : function() {
|
|
var scoreUnadded = Prestige.getStores(false);
|
|
var fullScore = 0;
|
|
|
|
var factor = [1, 1.5, 1, 2, 2, 3, 3, 2, 2, 2, 2, 1.5, 1,
|
|
1, 10, 30, 50, 100, 150, 150, 3, 3, 5, 4];
|
|
for(var i = 0; i< factor.length; i++){
|
|
fullScore += scoreUnadded[i] * factor[i];
|
|
}
|
|
|
|
fullScore = fullScore + $SM.get('stores["alien alloy"]', true) * 10;
|
|
fullScore = fullScore + $SM.get('stores["fleet beacon"]', true) * 500;
|
|
fullScore = fullScore + Ship.getMaxHull() * 50;
|
|
return Math.floor(fullScore);
|
|
},
|
|
|
|
save: function() {
|
|
$SM.set('playStats.score', Score.calculateScore());
|
|
},
|
|
|
|
totalScore : function() {
|
|
return $SM.get('previous.score', true) + Score.calculateScore();
|
|
}
|
|
};
|