From b37a4d5501976be322ba7a6bc62666bcd250c1a8 Mon Sep 17 00:00:00 2001
From: pregmodfan <pregmodfan@cock.li>
Date: Fri, 16 Mar 2018 05:30:18 +0200
Subject: [PATCH] RA belly implant more work

---
 src/uncategorized/rulesAutosurgery.tw | 19 ++++++++++++++++++-
 1 file changed, 18 insertions(+), 1 deletion(-)

diff --git a/src/uncategorized/rulesAutosurgery.tw b/src/uncategorized/rulesAutosurgery.tw
index 59aef885702..1a89ea609b3 100644
--- a/src/uncategorized/rulesAutosurgery.tw
+++ b/src/uncategorized/rulesAutosurgery.tw
@@ -79,7 +79,7 @@
 <</if>>
 
 <<if ndef $thisSurgery>>
-	<<set $thisSurgery = {eyes: "no default setting", lactation: "no default setting", cosmetic: 0, accent: "no default setting", shoulders: "no default setting", shouldersImplant: "no default setting", boobs: "no default setting", hips: "no default setting", hipsImplant: "no default setting", butt: "no default setting", faceShape: "no default setting", lips: "no default setting", holes: 0, bodyhair: 0, hair: 0}>>
+	<<set $thisSurgery = {eyes: "no default setting", lactation: "no default setting", cosmetic: 0, accent: "no default setting", shoulders: "no default setting", shouldersImplant: "no default setting", boobs: "no default setting", hips: "no default setting", hipsImplant: "no default setting", butt: "no default setting", faceShape: "no default setting", lips: "no default setting", holes: 0, bodyhair: 0, hair: 0, bellyImplant: "no default setting"}>>
 <</if>>
 
 <<set $seed = 0>>
@@ -355,6 +355,23 @@
 	<<set $slaves[$i].hips++, $slaves[$i].hipsImplant++>>
 	<<set $cash -= $surgeryCost>>
 	<<if $PC.medicine >= 100>><<set $slaves[$i].health -= 5>><<else>><<set $slaves[$i].health -= 10>><</if>>
+<<elseif $slaves[$i].bellyImplant < 0 && $bellyImplants > 0 && $thisSurgery.bellyImplant == "install" && $slaves[$i].womb.length == 0 && $slaves[$i].broodmother == 0>>
+	<<set $slaves[$i].bellyImplant = 100>>
+	<<set $slaves[$i].preg = -2>>
+	<<set $cash -= $surgeryCost>>
+	<<if $activeSlave.ovaries == 1 || $activeSlave.mpreg == 1>>
+		<<set $surgeries.push("install belly implant")>>
+		<<if $PC.medicine >= 100>><<set $slaves[$i].health -= 5>><<else>><<set $slaves[$i].health -= 10>><</if>>
+	<<else>>
+		<<set $surgeries.push("install male belly implant")>>
+		<<if $PC.medicine >= 100>><<set $slaves[$i].health -= 25>><<else>><<set $slaves[$i].health -= 50>><</if>>
+	<</if>>
+<<elseif $slaves[$i].bellyImplant >= 0 && $thisSurgery.bellyImplant == "remove">>
+	<<set $surgeries.push("remove belly implant")>>
+	<<if $PC.medicine >= 100>><<set $slaves[$i].health -= 5>><<else>><<set $slaves[$i].health -= 10>><</if>>
+	<<set $slaves[$i].preg = 0>>
+	<<set $slaves[$i].bellyImplant = -1>>
+	<<set $cash -= $surgeryCost>>
 <<else>>
 
 <<set $seed = 1>>
-- 
GitLab