diff --git a/src/SpecialForce/SpecialForce.js b/src/SpecialForce/SpecialForce.js index 142ba0d0e3cdad6f2f1e319a6de4f91b394a8110..375a08bae8aaa27089a0ef2cfb099eb20b400784 100644 --- a/src/SpecialForce/SpecialForce.js +++ b/src/SpecialForce/SpecialForce.js @@ -1,10 +1,10 @@ // V=SugarCube.State.variables, T=SugarCube.State.temporary; App.SF.Init = function() { const V = State.variables; - if (V.SF.Depravity === undefined) { + if (V.SF.Size === 0) { Object.assign(V.SF, { - Depravity:0, Size:0, Upgrade:0, Gift:0, + Active:2, Depravity:0, Size:0, Upgrade:0, Gift:0, UC:{Assign:0, Lock:0, num:0}, ROE:"hold", Target:"recruit", Regs:"strict", Caps:"The Special Force", Lower:"the special force", Subsidy:1, Squad:{ diff --git a/src/js/economyJS.js b/src/js/economyJS.js index f3d5af97c07aaed921da249d4d052f129b7dab06..8ee83b2c2c72056b82abed35e0cf88075ff2c171 100644 --- a/src/js/economyJS.js +++ b/src/js/economyJS.js @@ -510,8 +510,7 @@ window.getEnvironmentCosts = function(cost) { window.getSFCosts = function() { let costs = 0; if (State.variables.SF.Toggle && State.variables.SF.Active >= 1 && State.variables.SF.Subsidy !== undefined) { - Count(); - costs += Math.ceil(State.temporary.SFSubsidy); + App.SF.Count(); costs += Math.ceil(State.temporary.SFSubsidy); } return costs; };