From 7d974c72c0f2399a5e1e28b4aa9def794a43fad2 Mon Sep 17 00:00:00 2001 From: Blank_Alt <> Date: Thu, 7 Jan 2021 22:51:26 +1300 Subject: [PATCH] latest code 2021-01-07 --- src/Mods/SecExp/js/Unit.js | 2 +- src/Mods/SpecialForce/SpecialForce.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Mods/SecExp/js/Unit.js b/src/Mods/SecExp/js/Unit.js index 26a146b8ce1..f4ac65b3bc5 100644 --- a/src/Mods/SecExp/js/Unit.js +++ b/src/Mods/SecExp/js/Unit.js @@ -157,7 +157,7 @@ App.SecExp.unit = (function() { } input.cyber = input.cyber || 0; input.commissars = input.commissars || 0; - input.maxTroops = Math.min(0, input.maxTroops); + input.maxTroops = input.maxTroops || 30; input.troops = Math.clamp(input.troops, 0, input.maxTroops); } diff --git a/src/Mods/SpecialForce/SpecialForce.js b/src/Mods/SpecialForce/SpecialForce.js index 67ce6ff108c..6b08d91e9ba 100644 --- a/src/Mods/SpecialForce/SpecialForce.js +++ b/src/Mods/SpecialForce/SpecialForce.js @@ -1453,7 +1453,7 @@ App.SF.AAR = function(endWeekCall = 1) { r += `<span class='red'>barely enough to cover expenses.</span> More growth will be needed to ensure profitability, <span class='yellow'>hopefully purchasing more upgrades will help.</span>`; r += ` Per the estimates that ${App.SF.SFC()} provides, an additional <span class='yellowgreen'>${cashFormat(profit)}</span> is required for sufficient cover.`; } - r + = `An difference of ${profit/V.SF.lastWeeksProfit}% since last week`; + r += `An difference of ${profit/V.SF.lastWeeksProfit}% since last week`; V.SF.lastWeeksProfit = profit; r += ` ${capSF} managed to recruit ${FNG} new soldiers this week, and your reputation has <span class='green'>increased through the improvement of trade security.</span>`; -- GitLab