From 296b57efb9ce1d30bd356c5f3efece06b7f103a0 Mon Sep 17 00:00:00 2001
From: Blank_Alt <12406-Blank_Alt@users.noreply.gitgud.io>
Date: Fri, 8 Jan 2021 22:27:43 -0800
Subject: [PATCH] Hotfix sec exp

---
 src/Mods/SecExp/buildings/securityHQ.tw |  4 ++--
 src/Mods/SecExp/js/secExp.js            | 16 +++++++++++-----
 2 files changed, 13 insertions(+), 7 deletions(-)

diff --git a/src/Mods/SecExp/buildings/securityHQ.tw b/src/Mods/SecExp/buildings/securityHQ.tw
index 6d177e9af60..5fc43dfb626 100644
--- a/src/Mods/SecExp/buildings/securityHQ.tw
+++ b/src/Mods/SecExp/buildings/securityHQ.tw
@@ -237,7 +237,7 @@ Considering the current upgrades the maximum level of crime is <<print App.SecEx
 		<<if $SecExp.core.authority > 10000>>
 			<<if $SecExp.buildings.secHub.upgrades.crime.autoTrial == 0>>
 				<br>[[Install automated trials software|securityHQ][cashX(-Math.trunc(10000*$upgradeMultiplierArcology*_HistoryDiscount*$HackingSkillMultiplier), "capEx"), $SecExp.buildings.secHub.upgrades.crime.autoTrial = 1, $PC.skill.hacking += 1]]
-				<br>//Costs <<print cashFormat(Math.trunc(10000*$upgradeMultiplierArcology*_HistoryDiscount*$HackingSkillMultiplier))>>. Will bring down the crime level cap by 15 points, but will require 10 extra slaves in the headquarters and increases upkeep. The remaining slaves will be more efficient in dealing with crime.//
+				<br>//Costs <<print cashFormat(Math.trunc(10000*$upgradeMultiplierArcology*_HistoryDiscount*$HackingSkillMultiplier))>>. Will bring down the crime level cap by 15 points, but will require 5 extra slaves in the headquarters and increases upkeep. The remaining slaves will be more efficient in dealing with crime.//
 			<<else>>
 				<br>You have installed advanced legal algorithms that allows the handling of legal matters much quicker and much more accurately.
 			<</if>>
@@ -280,7 +280,7 @@ Considering the current upgrades the maximum level of crime is <<print App.SecEx
 	<br><br>Readiness<hr>
 	<<if $SecExp.buildings.secHub.upgrades.readiness.pathways == 0>>
 		[[Build specialized pathways in the arcology|securityHQ][cashX(-Math.trunc(5000*$upgradeMultiplierArcology*_HistoryDiscount), "capEx"), $SecExp.buildings.secHub.upgrades.readiness.pathways = 1]]
-		<br>//Costs <<print cashFormat(Math.trunc(5000*$upgradeMultiplierArcology*_HistoryDiscount))>>. Will increase readiness by 1, but will increase upkeep. The remaining slaves will be more efficient in dealing with crime.//
+		<br>//Costs <<print cashFormat(Math.trunc(5000*$upgradeMultiplierArcology*_HistoryDiscount))>>. Will increase readiness by 1, but will require 5 extra slaves in the headquarters and increase upkeep. The remaining slaves will be more efficient in dealing with crime.//
 	<<else>>
 		You have built specialized pathways inside the arcology to quickly move troops around the structure.
 	<</if>>
diff --git a/src/Mods/SecExp/js/secExp.js b/src/Mods/SecExp/js/secExp.js
index 5736f7464f1..23992d4263c 100644
--- a/src/Mods/SecExp/js/secExp.js
+++ b/src/Mods/SecExp/js/secExp.js
@@ -831,18 +831,20 @@ App.SecExp.Check = (function() {
 			if (V.SecExp.buildings.secHub.upgrades.security.cryptoAnalyzer === 1) {
 				Req += 10;
 			}
-			if (V.SecExp.buildings.secHub.upgrades.crime.autoTrial === 1) {
-				Req += 5;
+			
+			if (V.SecExp.buildings.secHub.upgrades.crime.advForensic === 1) {
+				Req += 10;
 			}
 			if (V.SecExp.buildings.secHub.upgrades.crime.autoArchive === 1) {
 				Req += 5;
 			}
-			if (V.SecExp.buildings.secHub.upgrades.crime.worldProfiler === 1) {
-				Req += 10;
+			if (V.SecExp.buildings.secHub.upgrades.crime.autoTrial === 1) {
+				Req += 5;
 			}
-			if (V.SecExp.buildings.secHub.upgrades.crime.advForensic === 1) {
+			if (V.SecExp.buildings.secHub.upgrades.crime.worldProfiler === 1) {
 				Req += 10;
 			}
+
 			if (V.SecExp.buildings.secHub.upgrades.intel.sensors === 1) {
 				Req += 5;
 			}
@@ -852,6 +854,10 @@ App.SecExp.Check = (function() {
 			if (V.SecExp.buildings.secHub.upgrades.intel.radar === 1) {
 				Req += 10;
 			}
+
+			if (V.SecExp.buildings.secHub.upgrades.readiness.pathways === 1) {
+				Req += 5;
+			}
 			if (V.SecExp.buildings.secHub.upgrades.readiness.rapidVehicles === 1) {
 				Req += 5;
 			}
-- 
GitLab