From 7cfaed76af62634cad2a79d45ed2d0d836117a9b Mon Sep 17 00:00:00 2001
From: kopareigns <kopareigns@gmail.com>
Date: Sun, 7 Oct 2018 15:24:57 -0400
Subject: [PATCH] surgically modified race fix

---
 src/uncategorized/saLongTermEffects.tw | 6 ++----
 src/utility/assayWidgets.tw            | 6 ++----
 2 files changed, 4 insertions(+), 8 deletions(-)

diff --git a/src/uncategorized/saLongTermEffects.tw b/src/uncategorized/saLongTermEffects.tw
index 2ae357c246d..a5395721f9a 100644
--- a/src/uncategorized/saLongTermEffects.tw
+++ b/src/uncategorized/saLongTermEffects.tw
@@ -5517,8 +5517,7 @@
 			Society @@.green;approves@@ of $his unmarked, unblemished skin, advancing the fashion for unspoiled slaves.
 			<<FSChangePorn "BodyPurist" 1>>
 		<</if>>
-		<<set _race = $slaves[$i].race>>
-		<<if $slaves[$i].faceImplant <= 5 && _race.indexOf("surgically") == -1>>
+		<<if $slaves[$i].faceImplant <= 5 && $slaves[$i].race == $slaves[$i].origRace>>
 			Society @@.green;approves@@ of $his natural, untouched appearance, advancing the fashion for unaltered slaves.
 			<<FSChangePorn "BodyPurist" 1>>
 		<<else>>
@@ -5559,8 +5558,7 @@
 			<<FSChangePorn "TransformationFetishist" 1>>
 			<<set _transformed = 1>>
 		<</if>>
-		<<set _race = $slaves[$i].race>>
-		<<if $slaves[$i].faceImplant > 30 || _race.indexOf("surgically") == 1>>
+		<<if $slaves[$i].faceImplant > 30 || $slaves[$i].race != $slaves[$i].origRace>>
 			Society @@.green;approves@@ of $his surgically improved appearance; this supports the fashion for surgical corrections.
 			<<FSChangePorn "TransformationFetishist" 1>>
 		<</if>>
diff --git a/src/utility/assayWidgets.tw b/src/utility/assayWidgets.tw
index 7ecdf636f7b..57898776b85 100644
--- a/src/utility/assayWidgets.tw
+++ b/src/utility/assayWidgets.tw
@@ -980,8 +980,7 @@
 	<<if (Math.abs($args[0].hipsImplant) > 1)>>
 		<<set $beauty += ($arcologies[0].FSTransformationFetishist/20)+(Math.abs($args[0].hipsImplant))>>
 	<</if>>
-	<<set _race = $args[0].race>>
-	<<if _race.indexOf("surgically") != -1>>
+	<<if $args[0].race != $args[0].origRace>>
 		<<set $beauty += ($arcologies[0].FSTransformationFetishist/20)>>
 	<</if>>
 	<<if $args[0].faceImplant > 95 && $args[0].face > 40>>
@@ -996,8 +995,7 @@
 	<<if $args[0].faceImplant > 5>>
 		<<set $beauty -= ($arcologies[0].FSBodyPurist/100)*($args[0].faceImplant/10)>>
 	<</if>>
-	<<set _race = $args[0].race>>
-	<<if _race.indexOf("surgically") != -1>>
+	<<if $args[0].race == $args[0].origRace>>
 		<<set $beauty -= ($arcologies[0].FSBodyPurist/20)>>
 	<</if>>
 <<elseif $arcologies[0].FSTransformationFetishist == "unset">>
-- 
GitLab