From 35cc665b0b10d3eb601fe4b4399d049c2677616b Mon Sep 17 00:00:00 2001
From: lowercasedonkey <lowercasedonkey@gmail.com>
Date: Sun, 29 Nov 2020 02:48:11 -0500
Subject: [PATCH] bait and tackle

---
 src/events/intro/pcBodyIntro.js | 116 ++++++++++++++++++++++----------
 1 file changed, 79 insertions(+), 37 deletions(-)

diff --git a/src/events/intro/pcBodyIntro.js b/src/events/intro/pcBodyIntro.js
index 19384437a6a..d445f3d85e6 100644
--- a/src/events/intro/pcBodyIntro.js
+++ b/src/events/intro/pcBodyIntro.js
@@ -42,13 +42,87 @@ App.Intro.PCBodyIntro = function() {
 			options.addOption(`Under my suit jacket, <strong>feminine breasts.</strong>`, "boobs", V.PC)
 				.addValue("Remove breasts", 100).addComment(comment);
 		} else {
-			if (V.PC.title > 0) {
-				options.addOption(`Under my suit jacket, <strong>masculine muscles.</strong>`, "boobs", V.PC)
-					.addValue("Add breasts", 900).addComment(comment);
+			options.addOption(`Under my suit jacket, <strong>${(V.PC.title > 0) ? `masculine muscles` : `a flat chest`}.</strong>`, "boobs", V.PC)
+				.addValue("Add breasts", 900).addComment(comment);
+		}
+
+		// Lower deck
+		comment = `These options will affect sex scenes. Feminine options will increase difficulty.`;
+		r = [];
+		r.push(`Behind the front of my tailored`);
+		if (V.PC.dick !== 0) {
+			if (V.PC.vagina !== -1) {
+				r.push(`slacks, <strong>both a penis and a vagina.</strong>`);
+				options.addOption(r.join(" "))
+					.customButton(
+						"Remove the penis",
+						() => {
+							V.PC.dick = 0;
+							V.PC.balls = 0;
+							V.PC.scrotum = 0;
+							V.PC.prostate = 0;
+						},
+						"PC Body Intro"
+					)
+					.customButton(
+						"Remove the vagina",
+						() => {
+							V.PC.vagina = -1;
+							V.PC.ovaries = 0;
+						},
+						"PC Body Intro"
+					);
 			} else {
-				options.addOption(`Under my suit jacket, <strong>a flat chest.</strong>`, "boobs", V.PC)
-					.addValue("Add breasts", 900).addComment(comment);
+				r.push(`slacks, a <strong>penis.</strong>`);
+				options.addOption(r.join(" "))
+					.customButton(
+						"Switch to vagina",
+						() => {
+							V.PC.dick = 0;
+							V.PC.balls = 0;
+							V.PC.scrotum = 0;
+							V.PC.prostate = 0;
+							V.PC.genes = "XX";
+							V.PC.vagina = 1;
+							V.PC.ovaries = 1;
+						},
+						"PC Body Intro"
+					)
+					.customButton(
+						"Add a vagina",
+						() => {
+							V.PC.vagina = 1;
+							V.PC.ovaries = 1;
+						},
+						"PC Body Intro"
+					);
 			}
+		} else {
+			r.push(`skirt, a <strong>vagina.</strong>`);
+			options.addOption(r.join(" "))
+				.customButton(
+					"Switch to penis",
+					() => {
+						V.PC.dick = 4;
+						V.PC.balls = 3;
+						V.PC.scrotum = 3;
+						V.PC.prostate = 1;
+						V.PC.genes = "XY";
+						V.PC.vagina = -1;
+						V.PC.ovaries = 0;
+					},
+					"PC Body Intro"
+				)
+				.customButton(
+					"Add a penis",
+					() => {
+						V.PC.dick = 4;
+						V.PC.balls = 3;
+						V.PC.scrotum = 3;
+						V.PC.prostate = 1;
+					},
+					"PC Body Intro"
+				);
 		}
 
 		el.append(options.render());
@@ -58,38 +132,6 @@ App.Intro.PCBodyIntro = function() {
 };
 
 /*
-
-	</div>
-
-	<div>
-		r.push(`Behind the front of my tailored`);
-		if (V.PC.dick !== 0) {
-			if (V.PC.vagina !== -1) {
-				r.push(`slacks,`);
-				<span style="font-weight:Bold">
-					r.push(`both a penis and a vagina.`);
-				</span>
-				[[Remove the penis|PC Body Intro][V.PC.dick = 0, V.PC.balls = 0, V.PC.scrotum = 0, V.PC.prostate = 0]] | [[Remove the vagina|PC Body Intro][V.PC.vagina = -1, V.PC.ovaries = 0]]
-			} else {
-				r.push(`slacks, a`);
-				<span style="font-weight:Bold">
-					r.push(`penis.`);
-				</span>
-				[[Switch to vagina|PC Body Intro][V.PC.dick = 0, V.PC.balls = 0, V.PC.scrotum = 0, V.PC.prostate = 0, V.PC.genes = "XX", V.PC.vagina = 1, V.PC.ovaries = 1]] | [[Add a vagina|PC Body Intro][V.PC.vagina = 1, V.PC.ovaries = 1]]
-			}
-		} else {
-			r.push(`skirt, a`);
-			<span style="font-weight:Bold">
-				r.push(`vagina.`);
-			</span>
-			[[Switch to penis|PC Body Intro][V.PC.dick = 4, V.PC.balls = 3, V.PC.scrotum = 3, V.PC.prostate = 1, V.PC.genes = "XY", V.PC.vagina = -1, V.PC.ovaries = 0]] | [[Add a penis|PC Body Intro][V.PC.dick = 4, V.PC.balls = 3, V.PC.scrotum = 3, V.PC.prostate = 1]]
-		}
-	</div>
-	<div class="indent note">
-		r.push(`These options will affect sex scenes. Feminine options will increase difficulty.`);
-	</div>
-</p>
-
 <p>
 	<div class="intro question">
 		r.push(`How old are you?`);
-- 
GitLab