From 67ec66a1bc4a084ea9ec9b2c3f50b480082ce83a Mon Sep 17 00:00:00 2001
From: lowercasedonkey <lowercasedonkey@gmail.com>
Date: Sun, 3 Jan 2021 12:59:06 -0500
Subject: [PATCH] change to a "surgery" category

---
 src/uncategorized/managePenthouse.tw | 82 +++++++++++++---------------
 1 file changed, 39 insertions(+), 43 deletions(-)

diff --git a/src/uncategorized/managePenthouse.tw b/src/uncategorized/managePenthouse.tw
index eefb3ed5a6c..e0fd4c4e789 100644
--- a/src/uncategorized/managePenthouse.tw
+++ b/src/uncategorized/managePenthouse.tw
@@ -138,11 +138,6 @@
 		There is a small but handsome suite next to yours reserved for the Head Girl.
 	<</if>>
 	</div>
-</p>
-
-<h2>Penthouse Minor Facilities</h2>
-
-<p>
 	<div>
 		<<if $dojo == 0>>
 			[[Set up a personal armory to support a bodyguard|Manage Penthouse][cashX(forceNeg(Math.trunc(5000*$upgradeMultiplierArcology)), "capEx"), $dojo = 1, $PC.skill.engineering += 1]]
@@ -154,6 +149,31 @@
 			There is a small armory next to your office that can support a bodyguard, with a little room for them to rest in when off duty.
 		<</if>>
 	</div>
+	<div>
+		<<if !$toyShop>>
+			[[Install a workshop for making custom toys|Manage Penthouse][cashX(-10000, "capEx"), $toyShop = true, $PC.skill.engineering += .1]]
+			<span class="detail">Costs <<print cashFormat(10000)>></span>
+		<<else>>
+			There is a [[workshop|Toy Shop]] for making custom toys.
+		<</if>>
+	</div>
+</p>
+
+<h2>Surgery</h2>
+
+<p>
+	<div>
+		<<if $surgeryUpgrade == 0>>
+			<<if $rep > 10000>>
+				[[Upgrade the remote surgery|Manage Penthouse][cashX(forceNeg(Math.trunc(50000*$upgradeMultiplierArcology)), "capEx"), $surgeryUpgrade = 1, $PC.skill.engineering += 1]]
+				<span class="detail">Costs <<print cashFormat(Math.trunc(50000*$upgradeMultiplierArcology))>></span>
+			<<else>>
+				<span class="note">You lack the reputation to secure rare surgery upgrades.</span>
+			<</if>>
+		<<else>>
+			Your remote surgery has been heavily upgraded and customized.
+		<</if>>
+	</div>
 
 	<div>
 		<<if $dispensary == 0>>
@@ -253,14 +273,20 @@
 		</div>
 	<</if>>
 
-	<div>
-		<<if !$toyShop>>
-			[[Install a workshop for making custom toys|Manage Penthouse][cashX(-10000, "capEx"), $toyShop = true, $PC.skill.engineering += .1]]
-			<span class="detail">Costs <<print cashFormat(10000)>></span>
-		<<else>>
-			There is a [[workshop|Toy Shop]] for making custom toys.
-		<</if>>
-	</div>
+	<<if $seePreg == 1>>
+		<div>
+			<<if $pregnancyMonitoringUpgrade == 0>>
+				<<if $rep > 10000>>
+					[[Upgrade the pregnancy monitoring systems|Manage Penthouse][cashX(forceNeg(Math.trunc(30000*$upgradeMultiplierArcology)), "capEx"), $pregnancyMonitoringUpgrade = 1, $PC.skill.engineering += 1]]
+					<span class="detail">Costs <<print cashFormat(Math.trunc(30000*$upgradeMultiplierArcology))>></span>
+				<<else>>
+					<span class="note">You lack the reputation to purchase improved pregnancy monitoring systems.</span>
+				<</if>>
+			<<else>>
+				Your pregnancy monitoring systems have been heavily upgraded.
+			<</if>>
+		</div>
+	<</if>>
 </p>
 
 <h2>Penthouse Upgrades</h2>
@@ -418,36 +444,6 @@
 	</div>
 </p>
 
-<p>
-	<div>
-	<<if $surgeryUpgrade == 0>>
-		<<if $rep > 10000>>
-			[[Upgrade the remote surgery|Manage Penthouse][cashX(forceNeg(Math.trunc(50000*$upgradeMultiplierArcology)), "capEx"), $surgeryUpgrade = 1, $PC.skill.engineering += 1]]
-			<span class="detail">Costs <<print cashFormat(Math.trunc(50000*$upgradeMultiplierArcology))>></span>
-		<<else>>
-			<span class="note">You lack the reputation to secure rare surgery upgrades.</span>
-		<</if>>
-	<<else>>
-		Your remote surgery has been heavily upgraded and customized.
-	<</if>>
-	</div>
-
-	<<if $seePreg == 1>>
-		<div>
-		<<if $pregnancyMonitoringUpgrade == 0>>
-			<<if $rep > 10000>>
-				[[Upgrade the pregnancy monitoring systems|Manage Penthouse][cashX(forceNeg(Math.trunc(30000*$upgradeMultiplierArcology)), "capEx"), $pregnancyMonitoringUpgrade = 1, $PC.skill.engineering += 1]]
-				<span class="detail">Costs <<print cashFormat(Math.trunc(30000*$upgradeMultiplierArcology))>></span>
-			<<else>>
-				<span class="note">You lack the reputation to purchase improved pregnancy monitoring systems.</span>
-			<</if>>
-		<<else>>
-			Your pregnancy monitoring systems have been heavily upgraded.
-		<</if>>
-		</div>
-	<</if>>
-</p>
-
 <p>
 	<<if $rep >= 10000>>
 		[[Black Market|The Black Market]]
-- 
GitLab