From 17b7704fe6fa170c3b07f0bd58b7d73e1399a8fb Mon Sep 17 00:00:00 2001
From: ErzengelLichtes <erzengel.des.lichtes@gmail.com>
Date: Thu, 4 Jul 2019 22:09:29 -0700
Subject: [PATCH] Made "straightforward cosmetic procedures" consistent with
 "implants" so that you can specify that you don't want the corporation to
 apply cosmetics (since this makes slaves unappealing in purity societies).

---
 src/pregmod/manageCorporation.tw | 19 +++++++++++++++----
 1 file changed, 15 insertions(+), 4 deletions(-)

diff --git a/src/pregmod/manageCorporation.tw b/src/pregmod/manageCorporation.tw
index f04219aefb3..880154834d0 100644
--- a/src/pregmod/manageCorporation.tw
+++ b/src/pregmod/manageCorporation.tw
@@ -1553,7 +1553,7 @@ __Slave specialization__
 			<br>Slave assets are made to be [[Petite|Manage Corporation][$corpSpecInjection = 1, $corpSpecToken -= 1, $corpSpecTimer = 2]] | [[Tasteful|Manage Corporation][$corpSpecInjection = 2, $corpSpecToken -= 1, $corpSpecTimer = 2]] | [[Huge|Manage Corporation][$corpSpecInjection = 3, $corpSpecToken -= 1, $corpSpecTimer = 2]] -- //Further specializations possible//
 		<</if>>
 		<<if ndef $corpSpecCosmetics && ($corpDivBreak > 0 || $corpDivSurgery > 0 || $corpDivTrain > 0)>> /*This used to be $surgicalUpgradeCosmetics, it is a general improvement specialization*/
-			<br>Straightforward cosmetic procedures are [[Applied|Manage Corporation][$corpSpecCosmetics = 1, $corpSpecToken -= 1, $corpSpecTimer = 2]]
+			<br>Straightforward cosmetic procedures are [[Applied|Manage Corporation][$corpSpecCosmetics = 1, $corpSpecToken -= 1, $corpSpecTimer = 2]][[Not Applied|Manage Corporation][$corpSpecCosmetics = 0, $corpSpecTimer = 2]]
 		<</if>>
 		<<if ndef $corpSpecEducation && $corpDivTrain > 0>> /*This used to be $trainingUpgradeEducation, it is the training specialization*/
 			<br>Slaves are given [[No Education|Manage Corporation][$corpSpecEducation == 0, $corpSpecToken -= 1, $corpSpecTimer = 2]] | [[Basic Education|Manage Corporation][$corpSpecEducation = 1, $corpSpecToken -= 1, $corpSpecTimer = 2]] -- //Further specializations possible//
@@ -2067,6 +2067,14 @@ __Slave specialization__
 		<<if $corpSpecTimer == 0>>
 			<<link "No Focus">><<unset $corpSpecCosmetics>><<set $corpSpecToken += 1, $corpSpecTimer = 2>><<goto "Manage Corporation">><</link>>
 		<</if>>
+    <<elseif $corpSpecCosmetics == 0>>
+        <br>The corporation doesn't apply cosmetic procedures.
+        <<if $corpSpecTimer == 0>>
+            <<if $corpSpecToken > 0>>
+                [[Applied|Manage Corporation][$corpSpecCosmetics = 1, $corpSpecToken -= 1, $corpSpecTimer = 2]] | 
+            <</if>>
+            <<link "No Focus">><<unset $corpSpecCosmetics>><<set $corpSpecToken += 1, $corpSpecTimer = 2>><<goto "Manage Corporation">><</link>>
+        <</if>>
 	<</if>>
 	<<if $corpSpecImplants == 1>>
 		<br>The corporation applies tasteful implants to all slaves.
@@ -2083,9 +2091,12 @@ __Slave specialization__
 		<</if>>
 	<<elseif $corpSpecImplants == 0>>
 		<br>The corporation keeps their slaves entirely implant free.
-		<<if $corpSpecTimer == 0 && $corpSpecToken > 0>>
-			[[Tasteful Implants|Manage Corporation][$corpSpecImplants = 1, $corpSpecToken -= 1, $corpSpecTimer = 2]] | <<link "No Focus">><<unset $corpSpecImplants>><<set $corpSpecTimer = 2>><<goto "Manage Corporation">><</link>>
-		<</if>>
+        <<if $corpSpecTimer == 0>>
+            <<if $corpSpecToken > 0>>
+                [[Tasteful Implants|Manage Corporation][$corpSpecImplants = 1, $corpSpecToken -= 1, $corpSpecTimer = 2]] | 
+            <</if>>
+            <<link "No Focus">><<unset $corpSpecImplants>><<set $corpSpecTimer = 2>><<goto "Manage Corporation">><</link>>
+        <</if>>
 	<</if>>
 	<<if ndef $corpSpecPussy && ndef $corpSpecDick && ndef $corpSpecBalls && $corpSpecGenitalia == 1>>
 		<<set ndef $corpSpecGenitalia,
-- 
GitLab