From 30d1af963e1246ba6beb8428dd96ed47ceee30e3 Mon Sep 17 00:00:00 2001 From: Blank_Alt <> Date: Tue, 1 Sep 2020 23:32:10 +1200 Subject: [PATCH] SecExp-fix --- src/Mods/SecExp/edicts.tw | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/src/Mods/SecExp/edicts.tw b/src/Mods/SecExp/edicts.tw index 490489b8c1a..f263e9c48af 100644 --- a/src/Mods/SecExp/edicts.tw +++ b/src/Mods/SecExp/edicts.tw @@ -38,20 +38,21 @@ <br> //Will provide cash each week. The higher the flux of citizens to slaves the higher the income. Will cost a small amount of authority each week.// <</if>> - <<set _secUpgrades = $SecExp.buildings.secHub.upgrades>> - <<if $SecExp.edicts.sellData === 1>> - <br>''Private Data marketization:'' you are selling private citizens' data to the best bidder. - [[Repeal|edicts][$SecExp.edicts.sellData = 0]] - <<elseif $SecExp.edicts.sellData === 0 && $SecExp.buildings.secHub && (Object.values(_secUpgrades.security).reduce((a, b) => a + b) > 0 || Object.values(_secUpgrades.crime).reduce((a, b) => a + b) > 0) || Object.values(_secUpgrades.intel).reduce((a, b) => a + b) > 0)>> - <br>''Private Data marketization:'' allow the selling of private citizens' data. - <<if $SecExp.core.authority >= 1000>> - [[Implement|edicts][$SecExp.edicts.sellData = 1, cashX(-5000, "edicts"), $SecExp.core.authority -= 1000]] - <<else>> - <br>//Not enough Authority.// + <<if $SecExp.buildings.secHub>> + <<set _secUpgrades = $SecExp.buildings.secHub.upgrades>> + <<if $SecExp.edicts.sellData === 1>> + <br>''Private Data marketization:'' you are selling private citizens' data to the best bidder. + [[Repeal|edicts][$SecExp.edicts.sellData = 0]] + <<elseif $SecExp.edicts.sellData === 0 && Object.values(_secUpgrades.security).reduce((a, b) => a + b) > 0 || Object.values(_secUpgrades.crime).reduce((a, b) => a + b) > 0 || Object.values(_secUpgrades.intel).reduce((a, b) => a + b) > 0>> + <br>''Private Data marketization:'' allow the selling of private citizens' data. + <<if $SecExp.core.authority >= 1000>> + [[Implement|edicts][$SecExp.edicts.sellData = 1, cashX(-5000, "edicts"), $SecExp.core.authority -= 1000]] + <<else>> + <br>//Not enough Authority.// + <</if>> + <br> //Will generate income dependent on the amount of upgrades installed in the security HQ, but will cost a small amount of authority each week.// <</if>> - <br> //Will generate income dependent on the amount of upgrades installed in the security HQ, but will cost a small amount of authority each week.// <</if>> - <<if $SecExp.buildings.propHub>> <<if $SecExp.edicts.propCampaignBoost == 1>> <br>''Obligatory educational material:'' you are forcing residents to read curated educational material about the arcology. @@ -66,7 +67,6 @@ <br> //Will increase the effectiveness of propaganda campaigns, but will incur upkeep costs.// <</if>> <</if>> - <<if $SecExp.buildings.transportHub>> <<if $SecExp.edicts.tradeLegalAid == 1>> <br>''Legal aid for new businesses:'' New businesses can rely on your help for legal expenses and issues. -- GitLab