Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
Aaron Wright committed Oct 26, 2020
1 parent 5923039 commit 5e8378b
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions fc_main.js
Original file line number Diff line number Diff line change
Expand Up @@ -1246,21 +1246,20 @@ function purchaseEfficiency(price, deltaCps, baseDeltaCps, currentCps) {

function recommendationList(recalculate) {
if (recalculate) {
FrozenCookies.showAchievements=false;
FrozenCookies.showAchievements = false;
FrozenCookies.caches.recommendationList = addScores(
upgradeStats(recalculate)
.concat(buildingStats(recalculate))
.concat(santaStats())
.sort(function(a, b) {
return a.efficiency != b.efficiency ? a.efficiency - b.efficiency : (a.delta_cps != b.delta_cps ? b.delta_cps - a.delta_cps : a.cost - b.cost);
.concat(buildingStats(recalculate))
.concat(santaStats())
.sort(function (a, b) {
return a.efficiency != b.efficiency ? a.efficiency - b.efficiency : (a.delta_cps != b.delta_cps ? b.delta_cps - a.delta_cps : a.cost - b.cost);
}));
if (FrozenCookies.pastemode) {
FrozenCookies.caches.recommendationList.reverse();
}
FrozenCookies.showAchievements=true;
FrozenCookies.showAchievements = true;
}
return FrozenCookies.caches.recommendationList;
// return upgradeStats(recalculate).concat(buildingStats(recalculate)).sort(function(a,b){return (a.efficiency - b.efficiency)});
}

function addScores(recommendations) {
Expand Down

0 comments on commit 5e8378b

Please sign in to comment.