From 347bb9efef5bda588d19728f62a0fb54b482a8d2 Mon Sep 17 00:00:00 2001
From: Anu <barrychahal@gmail.com>
Date: Wed, 20 Nov 2019 21:03:49 -0800
Subject: [PATCH] Update src/uncategorized/slaveInteract.tw

---
 src/uncategorized/slaveInteract.tw | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/uncategorized/slaveInteract.tw b/src/uncategorized/slaveInteract.tw
index 5aa65c1c8aa..00509583666 100644
--- a/src/uncategorized/slaveInteract.tw
+++ b/src/uncategorized/slaveInteract.tw
@@ -1047,7 +1047,7 @@
 		<</if>>
 		<<if $arcologies[0].FSSlaveProfessionalismResearch == 1>>
 			<<set _origIntel = $genePool.find(function(s) { return s.ID == $activeSlave.ID; }).intelligence>>
-			<<if (_origIntel+15 < $activeSlave.intelligence) && ($activeSlave.intelligence < 100)>>
+			<<if ($activeSlave.intelligence < _origIntel+15) && ($activeSlave.intelligence < 100)>>
 				| <<link "Psychostimulants">><<set $activeSlave.drugs = "psychostimulants">><<SlaveInteractDrugs>><</link>>
 			<<else>>
 				| Psychostimulants
-- 
GitLab