diff --git a/src/Mods/SecExp/buildings/propagandaHub.tw b/src/Mods/SecExp/buildings/propagandaHub.tw index a35f7d7a6b9efe0aec7abc178c4d030822740db1..9e34b6fb818e0286911d7dbfe6e59dfca48381c4 100644 --- a/src/Mods/SecExp/buildings/propagandaHub.tw +++ b/src/Mods/SecExp/buildings/propagandaHub.tw @@ -86,14 +86,14 @@ The propaganda hub is a surprisingly inconspicuous building, dimly lit from the <</if>> <br> <<if $SecExp.buildings.propHub.upgrades.campaign < 5>> - <<set _cost = Math.trunc(5000 * $upgradeMultiplierArcology * ($SecExp.buildings.propHub.upgrades.campaign + 1) * _HistoryDiscount*$HackingSkillMultiplier)>> + <<set _costC = Math.trunc(5000 * $upgradeMultiplierArcology * ($SecExp.buildings.propHub.upgrades.campaign + 1) * _HistoryDiscount*$HackingSkillMultiplier)>> <<link "Invest more resources in the propaganda machine" "propagandaHub">> - <<run cashX(forceNeg(_cost), "capEx")>> + <<run cashX(-_costC, "capEx")>> <<set $SecExp.buildings.propHub.upgrades.campaign += 1>> <<= IncreasePCSkills('hacking', 0.5)>> <</link>> <br>Invest more resources into the project to increase its effectiveness. - <br>//Costs <<print cashFormat(_cost)>>. Will provide more of the focused resource each week but increase reputation upkeep.// + <br>//Costs <<print cashFormat(_costC)>>. Will provide more of the focused resource each week but increase reputation upkeep.// <<else>> You upgraded your propaganda machine to its limits. <</if>> @@ -112,13 +112,13 @@ The propaganda hub is a surprisingly inconspicuous building, dimly lit from the <br>//Costs <<print cashFormat(Math.trunc(5000*$upgradeMultiplierArcology * _HistoryDiscount))>>. Will provide authority and unlock special upgrades, but will increase upkeep.// <<else>> <<if $SecExp.buildings.propHub.upgrades.miniTruth < 5>> - <<set _cost = Math.trunc(5000*$upgradeMultiplierArcology * ($SecExp.buildings.propHub.upgrades.miniTruth + 1) * _HistoryDiscount)>> + <<set _costM = Math.trunc(5000*$upgradeMultiplierArcology * ($SecExp.buildings.propHub.upgrades.miniTruth + 1) * _HistoryDiscount)>> <<link "Enlarge the authenticity department" "propagandaHub">> - <<run cashX(forceNeg(_cost), "capEx")>> + <<run cashX(-_costM, "capEx")>> <<set $SecExp.buildings.propHub.upgrades.miniTruth += 1>> <</link>> <br>Invest more resources into the project to increase its effectiveness. - <br>//Costs <<print cashFormat(_cost)>>. Will provide more authority each week, but increases upkeep.// + <br>//Costs <<print cashFormat(_costM)>>. Will provide more authority each week, but increases upkeep.// <<else>> You have upgraded the authenticity department to its maximum. <</if>> @@ -160,13 +160,13 @@ The propaganda hub is a surprisingly inconspicuous building, dimly lit from the <br>//Costs <<print cashFormat(Math.trunc(10000*$upgradeMultiplierArcology * _HistoryDiscount))>>. Will provide authority and unlock special upgrades, but will increase upkeep.// <<else>> <<if $SecExp.buildings.propHub.upgrades.secretService < 5 && $rep >= ($SecExp.buildings.propHub.upgrades.secretService * 1000) + 5000>> - <<set _cost = Math.trunc(5000*$upgradeMultiplierArcology * ($SecExp.buildings.propHub.upgrades.secretService + 1) * _HistoryDiscount)>> + <<set _costSS = Math.trunc(5000*$upgradeMultiplierArcology * ($SecExp.buildings.propHub.upgrades.secretService + 1) * _HistoryDiscount)>> <<link "Expand the secret service" "propagandaHub">> + <<run cashX(-_costSS, "capEx")>> <<set $SecExp.buildings.propHub.upgrades.secretService += 1>> - <<run cashX(forceNeg(_cost), "capEx")>> <</link>> <br>Invest more resources into the project to increase its effectiveness. - <br>//Costs <<print cashFormat(_cost)>>. Will provide more authority each week, but increases upkeep.// + <br>//Costs <<print cashFormat(_costSS)>>. Will provide more authority each week, but increases upkeep.// <<elseif $SecExp.buildings.propHub.upgrades.secretService < 5>> You lack the reputation to further expand operations. <<else>> @@ -195,4 +195,4 @@ The propaganda hub is a surprisingly inconspicuous building, dimly lit from the <<else>> You have infiltrated the black market and are now in partial control of it. [[Withdraw from the black market|propagandaHub][$SecExp.buildings.propHub.upgrades.marketInfiltration = 0]] <</if>> -<</if>> +<</if>> \ No newline at end of file diff --git a/src/Mods/SecExp/buildings/riotControlCenter.tw b/src/Mods/SecExp/buildings/riotControlCenter.tw index 7656b81d9b4ffaccd1c75bc83cef45238c082c08..6ab03a6c31d564d29dddacf1f0b14102e5a17fb3 100644 --- a/src/Mods/SecExp/buildings/riotControlCenter.tw +++ b/src/Mods/SecExp/buildings/riotControlCenter.tw @@ -19,14 +19,14 @@ The riot control center opens its guarded doors to you. The great chamber inside <<else>> You are providing free access to many mass media in the arcology. <<if $SecExp.buildings.riotCenter.upgrades.freeMedia < 5>> - <<set _cost = Math.trunc(5000 * $upgradeMultiplierArcology * ($SecExp.buildings.riotCenter.upgrades.freeMedia + 1)*$HackingSkillMultiplier)>> + <<set _costFM = Math.trunc(5000 * $upgradeMultiplierArcology * ($SecExp.buildings.riotCenter.upgrades.freeMedia + 1)*$HackingSkillMultiplier)>> <br><<link "Invest more resources in the free media project" "riotControlCenter">> + <<run cashX(-_costFM, "capEx")>> <<set $SecExp.buildings.riotCenter.upgrades.freeMedia++>> - <<run cashX(forceNeg(_cost), "capEx")>> <<= IncreasePCSkills('hacking', 0.5)>> <</link>> <br>Invest more resources into the project to increase its effectiveness. - <br>//Costs <<print cashFormat(_cost)>>. Will accelerate the tension decay, but will increase upkeep costs.// + <br>//Costs <<print cashFormat(_costFM)>>. Will accelerate the tension decay, but will increase upkeep costs.// <<else>> You upgraded your free media scheme to its limits. <</if>> @@ -58,24 +58,24 @@ The riot control center opens its guarded doors to you. The great chamber inside <<else>> You created a rapid deployment riot unit. <<if $SecExp.buildings.riotCenter.upgrades.rapidUnit < 5>> - <<set _cost = Math.trunc(5000 * $upgradeMultiplierArcology * ($SecExp.buildings.riotCenter.upgrades.rapidUnit + 1))>> + <<set _costRU = Math.trunc(5000 * $upgradeMultiplierArcology * ($SecExp.buildings.riotCenter.upgrades.rapidUnit + 1))>> <br><<link "Invest more resources in the rapid deployment unit" "riotControlCenter">> + <<run cashX(-_costRU, "capEx")>> <<set $SecExp.buildings.riotCenter.upgrades.rapidUnit++>> - <<run cashX(forceNeg(_cost), "capEx")>> <</link>> <br>Invest more resources into the project to increase its effectiveness. - <br>//Costs <<print cashFormat(_cost)>>. Will lower action costs.// + <br>//Costs <<print cashFormat(_costRU)>>. Will lower action costs.// <<else>> <br>You upgraded your rapid deployment unit to its limits. <</if>> <<if $SecExp.buildings.riotCenter.upgrades.rapidUnitSpeed < 2>> - <<set _cost = Math.trunc(5000 * $upgradeMultiplierArcology * ($SecExp.buildings.riotCenter.upgrades.rapidUnitSpeed + 1))>> + <<set _costRUS = Math.trunc(5000 * $upgradeMultiplierArcology * ($SecExp.buildings.riotCenter.upgrades.rapidUnitSpeed + 1))>> <br><<link "Enhance the internal informants network" "riotControlCenter">> + <<run cashX(-_costRUS, "capEx")>> <<set $SecExp.buildings.riotCenter.upgrades.rapidUnitSpeed++>> - <<run cashX(forceNeg(_cost), "capEx")>> <</link>> <br>Invest more resources into the effectiveness of the informants network. - <br>//Costs <<print cashFormat(_cost)>>. Will reduce cooldown of the rapid deployment riot unit.// + <br>//Costs <<print cashFormat(_costRUS)>>. Will reduce cooldown of the rapid deployment riot unit.// <<else>> <br>You enhanced your informants network to its limits. <</if>> @@ -137,18 +137,19 @@ The riot control center opens its guarded doors to you. The great chamber inside <</link>> <br>//Will take weeks of work and will cost <<print cashFormat(5000)>> each week, but once finished rebellions will progress a lot slower.// <<elseif $SecExp.buildings.riotCenter.brainImplantProject < 5>> + <<set _costBIP = Math.trunc(50000 * $upgradeMultiplierArcology * $SecExp.buildings.riotCenter.brainImplantProject*$HackingSkillMultiplier)>> <<link "Invest more resources in the brain implant project" "riotControlCenter">> + <<run cashX(-_costBIP, "capEx")>> <<set $SecExp.buildings.riotCenter.brainImplantProject++>> - <<run cashX(forceNeg(Math.trunc(50000 * $upgradeMultiplierArcology * $SecExp.buildings.riotCenter.brainImplantProject*$HackingSkillMultiplier)), "capEx")>> <<= IncreasePCSkills('hacking', 1)>> <</link>> <br>Invest more resources into the project to increase its speed. - <br>//One-time cost of <<print cashFormat(Math.trunc(50000 * $upgradeMultiplierArcology * $SecExp.buildings.riotCenter.brainImplantProject*$HackingSkillMultiplier))>> with an additional <<print cashFormat(5000)>> each week in maintenance. Will shorten the time required to complete the project.// + <br>//One-time cost of <<print cashFormat(_costBIP)>> with an additional <<print cashFormat(5000)>> each week in maintenance. Will shorten the time required to complete the project.// <<else>> You sped up the project to its maximum. <</if>> <<if $SecExp.buildings.riotCenter.brainImplant != -1>> - <br><br>The great brain implant project is underway. Estimated time to completion: <<print Math.trunc((100 - $SecExp.buildings.riotCenter.brainImplant) / $SecExp.buildings.riotCenter.brainImplantProject)>> + <br>The great brain implant project is underway. Estimated time to completion: <<print Math.trunc((100 - $SecExp.buildings.riotCenter.brainImplant) / $SecExp.buildings.riotCenter.brainImplantProject)>>. <</if>> <<else>> The great brain implant project is completed, rebellions against you will be extremely difficult to organize. @@ -197,13 +198,13 @@ The riot control center opens its guarded doors to you. The great chamber inside <<if $SF.Toggle && $SF.Active >= 1>> <br> <<if $SecExp.edicts.SFSupportLevel >= 4 && $SF.Squad.Armoury >= 8 && !$SecExp.rebellions.sfArmor>> - <<set _cost = Math.ceil(500000*App.SF.env()*(1.15+($SF.Squad.Armoury/10)))>> + <<set _costSFA = Math.ceil(500000*App.SF.env()*(1.15+($SF.Squad.Armoury/10)))>> <<link "Give the riot unit access to the combat armor suits of $SF.Lower.""riotControlCenter">> <<set $SecExp.rebellions.sfArmor = 1>> - <<run cashX((-_cost), "capEx")>> + <<run cashX(-_costSFA, "capEx")>> <</link>> - //Costs <<print cashFormat(_cost)>> + //Costs <<print cashFormat(_costSFA)>> <<else>> You have given the riot unit access to the combat armor suits of $SF.Lower. <</if>> -<</if>> +<</if>> \ No newline at end of file