diff --git a/src/js/DefaultRules.js b/src/js/DefaultRules.js index 9341f0940543fc49372cf8cc008fcc6ff4d6d43a..c01821f30fe83f7f09bbf3ab006fe0f41216f3c3 100644 --- a/src/js/DefaultRules.js +++ b/src/js/DefaultRules.js @@ -1327,7 +1327,7 @@ window.DefaultRules = (function() { case "psychostimulants": let origIntel = V.genePool.find(s => s.ID === slave.ID).intelligence; - if (!((slave.intelligence < 100) && (origIntel < slave.intelligence + 15))) { + if (!((slave.intelligence < 100) && (origIntel + 15 < slave.intelligence))) { flag = false; } break; diff --git a/src/uncategorized/slaveInteract.tw b/src/uncategorized/slaveInteract.tw index d27a5913c597aaccd2352bcbd2f362b036d68c82..5aa65c1c8aaa7839bde8d975a6e46094a650aeda 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 < $activeSlave.intelligence+15) && ($activeSlave.intelligence < 100)>> + <<if (_origIntel+15 < $activeSlave.intelligence) && ($activeSlave.intelligence < 100)>> | <<link "Psychostimulants">><<set $activeSlave.drugs = "psychostimulants">><<SlaveInteractDrugs>><</link>> <<else>> | Psychostimulants diff --git a/src/utility/miscWidgets.tw b/src/utility/miscWidgets.tw index 7c520b6d80fd44f70e65522b133c846b84628558..3f38d74f89403a8f8e8bb5a8c28ac5e20f781571 100644 --- a/src/utility/miscWidgets.tw +++ b/src/utility/miscWidgets.tw @@ -139,14 +139,14 @@ Call as <<SlaveInteractDrugs>> <<SlaveInteractDrugs>> <</link>> <</if>> - <<if ($activeSlave.intelligence+$activeSlave.intelligenceImplant > -100) && $activeSlave.indentureRestrictions < 1>> + <<if ($activeSlave.intelligence > -100) && $activeSlave.indentureRestrictions < 1>> | <<link "Psychosuppressants">><<set $activeSlave.drugs = "psychosuppressants">><<SlaveInteractDrugs>><</link>> <<else>> | Psychosuppressants <</if>> <<if $arcologies[0].FSSlaveProfessionalismResearch == 1>> <<set _origIntel = $genePool.find(function(s) { return s.ID == $activeSlave.ID; }).intelligence>> - <<if (_origIntel < $activeSlave.intelligence+15) && ($activeSlave.intelligence < 100)>> + <<if (_origIntel+15 < $activeSlave.intelligence) && ($activeSlave.intelligence < 100)>> | <<link "Psychostimulants">><<set $activeSlave.drugs = "psychostimulants">><<SlaveInteractDrugs>><</link>> <<else>> | Psychostimulants