From e46643959e5e1c24b9f3adcd209e128ed345a5e0 Mon Sep 17 00:00:00 2001
From: Svornost <11434-svornost@users.noreply.gitgud.io>
Date: Tue, 4 Feb 2020 23:30:13 -0800
Subject: [PATCH] Get rid of the $pure global variable

---
 src/js/slaveCostJS.js               | 1 -
 src/uncategorized/saRecruitGirls.tw | 9 ++++-----
 2 files changed, 4 insertions(+), 6 deletions(-)

diff --git a/src/js/slaveCostJS.js b/src/js/slaveCostJS.js
index d7b20b594cb..18ec90f9593 100644
--- a/src/js/slaveCostJS.js
+++ b/src/js/slaveCostJS.js
@@ -1291,7 +1291,6 @@ window.BeautyArray = function(slave) {
 	 */
 	function calcPurityBeauty(slave) {
 		if (isPure(slave)) {
-			V.pure = V.pure++ || 1;
 			if (arcology.FSBodyPurist !== "unset") {
 				adjustBeauty("Purity: Body Purist", (arcology.FSBodyPurist / 5));
 			}
diff --git a/src/uncategorized/saRecruitGirls.tw b/src/uncategorized/saRecruitGirls.tw
index b25ec45137f..888987d3bc3 100644
--- a/src/uncategorized/saRecruitGirls.tw
+++ b/src/uncategorized/saRecruitGirls.tw
@@ -38,7 +38,6 @@
 		acting as a sexual Ambassador to $arcologies[_j].name, which mostly means that $he travels there in $his official capacity and has culturally influential sex with its leading citizens.
 
 		<<set _oldRepGain = hashSum($lastWeeksRepIncome)>>
-		<<set $pure = 0>>
 		<<run saServeThePublic($slaves[$i])>>
 		<<set _influence = Math.clamp((hashSum($lastWeeksRepIncome)-_oldRepGain)*0.01,1,3)>>
 
@@ -123,18 +122,18 @@
 		<</if>>
 		<<if $arcologies[0].FSBodyPurist != "unset">>
 			<<if $arcologies[_j].FSBodyPurist != "unset">>
-				$He advances Body Purism there with a lot of unadorned public nudity<<if $pure>>, which $he's perfect for, since $he's an all-natural beauty<<set $arcologies[_j].FSBodyPurist++>><</if>>.
+				$He advances Body Purism there with a lot of unadorned public nudity<<if isPure($slaves[$i])>>, which $he's perfect for, since $he's an all-natural beauty<<set $arcologies[_j].FSBodyPurist++>><</if>>.
 				<<set $arcologies[_j].FSBodyPurist += _influence>>
 			<<elseif $arcologies[_j].FSTransformationFetishist != "unset">>
-				$He challenges Transformation Fetishism there with a lot of unadorned public nudity<<if $pure>>, which $he's perfect for, since $he's an all-natural beauty<<set $arcologies[_j].FSTransformationFetishist-->><</if>>.
+				$He challenges Transformation Fetishism there with a lot of unadorned public nudity<<if isPure($slaves[$i])>>, which $he's perfect for, since $he's an all-natural beauty<<set $arcologies[_j].FSTransformationFetishist-->><</if>>.
 				<<set $arcologies[_j].FSTransformationFetishist -= _influence>>
 			<</if>>
 		<<elseif $arcologies[0].FSTransformationFetishist != "unset">>
 			<<if $arcologies[_j].FSTransformationFetishist != "unset">>
-				$He advances Transformation Fetishism there with a lot of slutty public nudity<<if !$pure>>, which $he's perfect for, since $he's a whorish sex doll full of plastic<<set $arcologies[_j].FSTransformationFetishist++>><</if>>.
+				$He advances Transformation Fetishism there with a lot of slutty public nudity<<if isSurgicallyImproved($slaves[$i])>>, which $he's perfect for, since $he's a whorish sex doll full of plastic<<set $arcologies[_j].FSTransformationFetishist++>><</if>>.
 				<<set $arcologies[_j].FSTransformationFetishist += _influence>>
 			<<elseif $arcologies[_j].FSBodyPurist != "unset">>
-				$He challenges Body Purism there with a lot of slutty public nudity<<if !$pure>>, which $he's perfect for, since $he's a whorish sex doll full of plastic<<set $arcologies[_j].FSBodyPurist-->><</if>>.
+				$He challenges Body Purism there with a lot of slutty public nudity<<if isSurgicallyImproved($slaves[$i])>>, which $he's perfect for, since $he's a whorish sex doll full of plastic<<set $arcologies[_j].FSBodyPurist-->><</if>>.
 				<<set $arcologies[_j].FSBodyPurist -= _influence>>
 			<</if>>
 		<</if>>
-- 
GitLab