From d3ec358065af1a763d6ff9de4c06bb5a81dbde40 Mon Sep 17 00:00:00 2001
From: Skriv <skrivelese@gmail.com>
Date: Fri, 18 Sep 2020 15:30:25 +0200
Subject: [PATCH] deduplicate

---
 js/birth.js | 223 +++-------------------------------------------------
 1 file changed, 12 insertions(+), 211 deletions(-)

diff --git a/js/birth.js b/js/birth.js
index 41304ba4ab5..e5d227e201e 100644
--- a/js/birth.js
+++ b/js/birth.js
@@ -245,7 +245,7 @@ globalThis.birth = function(slave) {
 						} else {
 							r.push(`Another slave`);
 						}
-						r.push(`is at ${his} side in an instant, pulling ${him} to ${his} feet and into a birthing stall. ${He} also shows almost no reaction when ${his} ${children} ${(slave.pregType <= 1)?`begin`:`begins`} to come out, or when ${he} is subsequently hosed off before being led back to ${V.farmyardName}.`);
+						r.push(`is at ${his} side in an instant, pulling ${him} to ${his} feet and into a birthing stall. ${He} also shows almost no reaction when ${his} ${children} ${(slave.pregType <= 1) ? `begin` : `begins`} to come out, or when ${he} is subsequently hosed off before being led back to ${V.farmyardName}.`);
 					}
 				} else {
 					if (V.farmyardShows && V.seeBestiality) {
@@ -825,19 +825,8 @@ globalThis.ampBirth = function(slave) { // "AmpBirth"
 			}
 
 			case "whore":
-				if (slave.fetish === "mindbroken") {
-					r.push(`${He} is placed on ${his} bed and stripped. Instinctively, ${he} begins to push out ${his} ${babies}, indifferent to ${his} watching helper. ${His} ${childrenAre} promptly taken and, following a cleaning and fresh change of clothes, ${he} is carried back to ${his} station.`);
-				} else {
-					r.push(`${He} is placed on ${his} bed and stripped. ${He} wiggles ${himself} into a comfortable spot and begins working on birthing ${his} ${babies},`);
-					if (slave.geneticQuirks.uterineHypersensitivity === 2) {
-						r.push(`convulsing with orgasms in the process and`);
-					}
-					r.push(`fully aware of ${his} watching helper. ${His} ${childrenAre} promptly taken and, following a cleaning and fresh change of clothes, ${he} is carried back to ${his} station.`);
-					V.humiliation = 1;
-				}
-				break;
-
 			case "serve the public":
+			case "choose her own job":
 				if (slave.fetish === "mindbroken") {
 					r.push(`${He} is placed on ${his} bed and stripped. Instinctively, ${he} begins to push out ${his} ${babies}, indifferent to ${his} watching helper. ${His} ${childrenAre} promptly taken and, following a cleaning and fresh change of clothes, ${he} is carried back to ${his} station.`);
 				} else {
@@ -906,6 +895,7 @@ globalThis.ampBirth = function(slave) { // "AmpBirth"
 				break;
 
 			case "stay confined":
+			case "be confined in the cellblock":
 				if (slave.fetish === "mindbroken") {
 					r.push(`${He} is placed in a specially designed cell to give birth in. Instinctively, ${he} begins to push out ${his} ${babies}. ${His} ${childrenAre} promptly taken and, after ${he} and the cell are hosed down, ${he} is moved back into a standard cell.`);
 				} else {
@@ -994,19 +984,6 @@ globalThis.ampBirth = function(slave) { // "AmpBirth"
 				}
 				break;
 
-			case "choose her own job":
-				if (slave.fetish === "mindbroken") {
-					r.push(`${He} is placed on ${his} bed and stripped. Instinctively, ${he} begins to push out ${his} ${babies}, indifferent to ${his} watching helper. ${His} ${childrenAre} promptly taken and, following a cleaning and fresh change of clothes, ${he} is carried back to ${his} station.`);
-				} else {
-					r.push(`${He} is placed on ${his} bed and stripped. ${He} wiggles ${himself} into a comfortable spot and begins working on birthing ${his} ${babies},`);
-					if (slave.geneticQuirks.uterineHypersensitivity === 2) {
-						r.push(`convulsing with orgasms in the process and`);
-					}
-					r.push(`fully aware of ${his} watching helper. ${His} ${childrenAre} promptly taken and, following a cleaning and fresh change of clothes, ${he} is carried back to ${his} station.`);
-					V.humiliation = 1;
-				}
-				break;
-
 			case "rest in the spa":
 				if (slave.fetish === "mindbroken") {
 					r.push(`${He} is placed in a special flotation device and placed in a birthing pool. Instinctively, ${he} begins to push out ${his} ${babies}, indifferent to ${his} watching helper. ${His} ${childrenAre} promptly taken and, following a cleaning, ${he} is taken back to the spa.`);
@@ -1128,14 +1105,6 @@ globalThis.ampBirth = function(slave) { // "AmpBirth"
 				r.push(`delivers ${his} ${children} before taking them away. Before long ${he} is returned to ${his} recovery room to rest.`);
 				break;
 
-			case "be confined in the cellblock":
-				if (slave.fetish === "mindbroken") {
-					r.push(`${He} is placed in a specially designed cell to give birth in. Instinctively, ${he} begins to push out ${his} ${babies}. ${His} ${childrenAre} promptly taken and, after ${he} and the cell are hosed down, ${he} is moved back into a standard cell.`);
-				} else {
-					r.push(`${He} is placed in a specially designed cell to give birth in. Reluctantly, ${he} begins to push out ${his} ${babies}${UH}. ${His} ${childrenAre} promptly taken and, after ${he} and the cell are hosed down, ${he} is moved back into a standard cell.`);
-				}
-				break;
-
 			default:
 				if (slave.fetish === "mindbroken") {
 					r.push(`${He} is placed on ${his} bed and stripped. Instinctively, ${he} begins to push out ${his} ${babies}, indifferent to ${his} watching helper. ${His} ${childrenAre} promptly taken and, following a cleaning and fresh change of clothes, ${he} is carried back to ${his} station.`);
@@ -1917,7 +1886,7 @@ globalThis.suddenBirth = function(slave) { // "SuddenBirth"
 				break;
 
 			case "be your Concubine":
-				if (slave.fetish === "mindbroken") {
+				if (slave.fetish === "mindbroken") { // TODO: WRITE BRANCH
 					r.push(`${slave.slaveName} cradles ${his} swollen belly, waiting for your return, when ${his} water breaks. Saddened that you aren't there for the show, ${he} begins waddling off to find you. By the time ${he} reaches your office, ${he} is barely holding back ${his} ${children}. You rise to meet ${him} and help ${him} onto the couch, just before it's too late.`);
 					r.push(clothingBirth(slave));
 					r.push(`Cradling your ${newborns}, the two of you rest for a spell before sending them off and spending some more intimate time together.`);
@@ -2030,7 +1999,7 @@ globalThis.deadlyBirth = function(slave, curBabies) { // "DeadlyBirth">>
 		He, His,
 		he, his, himself
 	} = getPronouns(slave);
-	const{HeU, heU} = getNonlocalPronouns(V.seeDicks).appendSuffix('U');
+	const {HeU, heU} = getNonlocalPronouns(V.seeDicks).appendSuffix('U');
 	let r = [];
 	V.slaveDead = 1;
 	const babies = slave.pregType > 1 ? `babies` : `baby`;
@@ -2053,6 +2022,7 @@ globalThis.deadlyBirth = function(slave, curBabies) { // "DeadlyBirth">>
 			break;
 
 		case "stay confined":
+		case "be confined in the cellblock":
 			r.push(`Since ${he} is locked in a cell, ${he} doesn't have far to go. Reluctantly, ${he} begins laboring on ${his} ${babies}. However, ${he} soon finds that ${he} is incapable of actually giving birth to ${his} ${children}. As blood begins to seep from ${his} nethers, ${he} desperately tries to get anyone's attention.`);
 			App.Events.addParagraph(el, r);
 			r = [];
@@ -2069,18 +2039,6 @@ globalThis.deadlyBirth = function(slave, curBabies) { // "DeadlyBirth">>
 			r.push(`Or ${he} would have been, if ${he} weren't locked in an arcade cabinet. A gush of liquid pours from the ${slave.slaveName}'s cunt, followed by the attendant in charge of the arcade hanging an "out of order" sign on ${his} exposed rear. While ${his} mouth is filled with a customer's dick, ${his} body instinctively attempts laboring on ${his} ${babies}. However, ${he} soon finds that ${he} is incapable of actually giving birth to ${his} ${children}. As blood begins to seep from ${his} nethers, ${he} desperately tries to get anyone's attention. The attendant rushes to ${his} aid, but fails to get the cabinet open in time to save ${slave.slaveName}. ${He} and ${his} ${children} were an unfortunate loss.`);
 			break;
 
-		case "be confined in the cellblock":
-			r.push(`Since ${he} is locked in a cell, ${he} doesn't have far to go. Reluctantly, ${he} begins laboring on ${his} ${babies}. However, ${he} soon finds that ${he} is incapable of actually giving birth to ${his} ${children}. As blood begins to seep from ${his} nethers, ${he} desperately tries to get anyone's attention.`);
-			App.Events.addParagraph(el, r);
-			r = [];
-			r.push(`Only once meal time comes around and food shoved into ${his} cell does anyone think something is amiss. When the food isn't desperately snatched away, ${his} cell is opened and ${he} checked up on. ${His} gravid corpse, propped up in the corner,`);
-			if (slave.mpreg === 1) {
-				r.push(`asshole`);
-			} else {
-				r.push(`vagina`);
-			}
-			r.push(`agape, is all that remains of the unfortunate ${slave.slaveName}.`);
-			break;
 
 		default:
 			r.push(`As ${he} is helped back to ${his} bed and to give birth, ${his} water breaks and ${he} slumps to the ground. As ${his} helper rushes off to find aid, ${he} begins laboring on ${his} ${babies}. However, ${he} soon finds that ${he} is incapable of actually giving birth to ${his} ${children}. As blood begins to seep from ${his} nethers, ${he} desperately tries to get anyone's attention.`);
@@ -2848,6 +2806,9 @@ globalThis.clothingBirth = function(slave) { // widget "ClothingBirth">>
 				break;
 
 			case "a hijab and blouse":
+			case "a slutty schutzstaffel uniform":
+			case "a dirndl":
+			case "a biyelgee costume":
 				if (slave.fetish === "mindbroken") {
 					r.push(`${babies}, indifferent to the obvious wetness forming`);
 					if (slave.mpreg === 1) {
@@ -3184,58 +3145,6 @@ globalThis.clothingBirth = function(slave) { // widget "ClothingBirth">>
 				break;
 
 			case "a cybersuit":
-				if (slave.fetish === "mindbroken") {
-					r.push(`${babies}, indifferent to who may be watching ${his}`);
-					if (slave.mpreg === 1) {
-						r.push(`crotch.`);
-					} else {
-						r.push(`ass.`);
-					}
-					if (slave.pregType > 30 && slave.broodmother === 0) {
-						r.push(`Child after child is born into ${his} bodysuit as the`);
-						if (slave.mpreg === 1) {
-							r.push(`seat`);
-						} else {
-							r.push(`front`);
-						}
-						r.push(`distends more and more. Eventually the squirming mass pulls ${him} to the floor, where ${he} lies, still very much in labor. As the load of newborns reaches the bodysuit's limit, a loud rip sounds out as the overburdened garment splits and frees ${his} brood into the world.`);
-					} else if (slave.pregType > 10 && slave.broodmother === 0) {
-						r.push(`Child after child is born into ${his} bodysuit as the`);
-						if (slave.mpreg === 1) {
-							r.push(`seat`);
-						} else {
-							r.push(`front`);
-						}
-						r.push(`distends more and more. Eventually the squirming mass pulls ${him} to the floor, where ${he} lays until ${he} finishes giving birth. ${He} struggles to get to ${his} feet and carry on with ${his} task until someone helps free them from their rubber prison.`);
-					} else if (slave.pregType > 4 && slave.broodmother === 0) {
-						r.push(`Child after child is born into ${his} bodysuit as the`);
-						if (slave.mpreg === 1) {
-							r.push(`seat`);
-						} else {
-							r.push(`front`);
-						}
-						r.push(`distends more and more. ${He} struggles to carry on with ${his} task with the squirming mass between ${his} legs until someone helps free them from their rubber prison.`);
-					} else {
-						r.push(`${He} finishes giving birth and begins anew on ${his} assigned task, ignoring the squirming ${babies} distending the`);
-						if (slave.mpreg === 1) {
-							r.push(`seat`);
-						} else {
-							r.push(`crotch`);
-						}
-						r.push(`of ${his} bodysuit until someone helps them from their rubber prison.`);
-					}
-				} else {
-					r.push(`Quickly ${he} attempts to remove ${his} bodysuit but fails to do so before having to push out ${babyIntro}. ${He} can't hide what's happening between ${his} legs,`);
-					if (slave.fetish === "humiliation") {
-						r.push(`but that only makes it more exciting.`);
-					} else {
-						r.push(`so ${he} bears with it.`);
-					}
-					r.push(`The tight material stretches as ${his} child is born into it and with a little help ${he}'s freed to finish giving birth.`);
-				}
-				break;
-
-
 			case "a tight Imperial bodysuit":
 				if (slave.fetish === "mindbroken") {
 					r.push(`${babies}, indifferent to who may be watching ${his}`);
@@ -3288,6 +3197,7 @@ globalThis.clothingBirth = function(slave) { // widget "ClothingBirth">>
 				}
 				break;
 
+
 			case "a ball gown":
 				if (slave.fetish === "mindbroken") {
 					r.push(`${babies}, indifferent to the obvious wetness forming`);
@@ -3351,6 +3261,7 @@ globalThis.clothingBirth = function(slave) { // widget "ClothingBirth">>
 				break;
 
 			case "a military uniform":
+			case "a red army uniform":
 				if (slave.fetish === "mindbroken") {
 					r.push(`${babies}, indifferent to the obvious wetness forming`);
 					if (slave.mpreg === 1) {
@@ -3392,42 +3303,6 @@ globalThis.clothingBirth = function(slave) { // widget "ClothingBirth">>
 				}
 				break;
 
-			case "a slutty schutzstaffel uniform":
-				if (slave.fetish === "mindbroken") {
-					r.push(`${babies}, indifferent to the obvious wetness forming`);
-					if (slave.mpreg === 1) {
-						r.push(`under ${his} rear.`);
-					} else {
-						r.push(`over ${his} crotch.`);
-					}
-				} else {
-					r.push(`Quickly ${he} spreads ${his} legs apart and begins pushing out ${babyIntro}.`);
-					if (slave.fetish === "humiliation") {
-						r.push(`${He} is disappointed that ${his} skirt hides what's happening between ${his} legs.`);
-					} else {
-						r.push(`${He} does ${his} best to hide what's happening between ${his} legs.`);
-					}
-				}
-				break;
-
-			case "a red army uniform":
-				if (slave.fetish === "mindbroken") {
-					r.push(`${babies}, indifferent to the obvious wetness forming`);
-					if (slave.mpreg === 1) {
-						r.push(`under ${his} rear.`);
-					} else {
-						r.push(`over ${his} crotch.`);
-					}
-				} else {
-					r.push(`Quickly ${he} spreads ${his} legs apart and begins pushing out ${babyIntro}. `);
-					if (slave.fetish === "humiliation") {
-						r.push(`${He} is disappointed that ${his} skirt hides what's happening between ${his} legs.`);
-					} else {
-						r.push(`${He} does ${his} best to hide what's happening between ${his} legs.`);
-					}
-				}
-				break;
-
 			case "a long qipao":
 				if (slave.fetish === "mindbroken") {
 					r.push(`${babies}, indifferent to the obvious wetness forming`);
@@ -3447,29 +3322,6 @@ globalThis.clothingBirth = function(slave) { // widget "ClothingBirth">>
 				break;
 
 			case "battlearmor":
-				if (slave.fetish === "mindbroken") {
-					r.push(`${babies}, indifferent to the obvious wetness forming`);
-					if (slave.mpreg === 1) {
-						r.push(`under ${his} rear.`);
-					} else {
-						r.push(`over ${his} crotch.`);
-					}
-				} else {
-					r.push(`Quickly ${he} attempts to unfasten ${his} armor but fails to do so before having to push out ${babyIntro}. As ${he} crowns into ${his} armor, ${he} can't hide the wetness and bulge between ${his}`);
-					if (slave.mpreg === 1) {
-						r.push(`buttocks,`);
-					} else {
-						r.push(`legs,`);
-					}
-					if (slave.fetish === "humiliation") {
-						r.push(`but that only makes it more exciting.`);
-					} else {
-						r.push(`so ${he} bears with it.`);
-					}
-					r.push(`With a little help, ${he} manages to escape ${his} armor and finish giving birth.`);
-				}
-				break;
-
 			case "Imperial Plate":
 				if (slave.fetish === "mindbroken") {
 					r.push(`${babies}, indifferent to the obvious wetness forming`);
@@ -3494,6 +3346,7 @@ globalThis.clothingBirth = function(slave) { // widget "ClothingBirth">>
 				}
 				break;
 
+
 			case "a mounty outfit":
 			case "a police uniform":
 			case "leather pants and pasties":
@@ -3523,23 +3376,6 @@ globalThis.clothingBirth = function(slave) { // widget "ClothingBirth">>
 				}
 				break;
 
-			case "a dirndl":
-				if (slave.fetish === "mindbroken") {
-					r.push(`${babies}, indifferent to the obvious wetness forming`);
-					if (slave.mpreg === 1) {
-						r.push(`under ${his} rear.`);
-					} else {
-						r.push(`over ${his} crotch.`);
-					}
-				} else {
-					r.push(`Quickly ${he} spreads ${his} legs apart and begins pushing out ${babyIntro}.`);
-					if (slave.fetish === "humiliation") {
-						r.push(`${He} is disappointed that ${his} skirt hides what's happening between ${his} legs.`);
-					} else {
-						r.push(`${He} does ${his} best to hide what's happening between ${his} legs.`);
-					}
-				}
-				break;
 
 			case "lederhosen":
 				if (slave.fetish === "mindbroken") {
@@ -3565,24 +3401,6 @@ globalThis.clothingBirth = function(slave) { // widget "ClothingBirth">>
 				}
 				break;
 
-			case "a biyelgee costume":
-				if (slave.fetish === "mindbroken") {
-					r.push(`${babies}, indifferent to the obvious wetness forming`);
-					if (slave.mpreg === 1) {
-						r.push(`under ${his} rear.`);
-					} else {
-						r.push(`over ${his} crotch.`);
-					}
-				} else {
-					r.push(`Quickly ${he} spreads ${his} legs apart and begins pushing out ${babyIntro}.`);
-					if (slave.fetish === "humiliation") {
-						r.push(`${He} is disappointed that ${his} skirt hides what's happening between ${his} legs.`);
-					} else {
-						r.push(`${He} does ${his} best to hide what's happening between ${his} legs.`);
-					}
-				}
-				break;
-
 			case "a nice nurse outfit":
 			case "a t-shirt and jeans":
 				if (slave.fetish === "mindbroken") {
@@ -3655,23 +3473,6 @@ globalThis.clothingBirth = function(slave) { // widget "ClothingBirth">>
 
 			case "a gothic lolita dress":
 			case "a hanbok":
-				if (slave.fetish === "mindbroken") {
-					r.push(`${babies}, indifferent to the obvious wetness forming`);
-					if (slave.mpreg === 1) {
-						r.push(`under ${his} rear.`);
-					} else {
-						r.push(`over ${his} crotch.`);
-					}
-				} else {
-					r.push(`Quickly ${he} spreads ${his} legs apart and begins pushing out ${babyIntro}.`);
-					if (slave.fetish === "humiliation") {
-						r.push(`${He} is thrilled that ${his} dress reveals what's happening between ${his} legs.`);
-					} else {
-						r.push(`${He} does ${his} best to hide what's happening between ${his} legs.`);
-					}
-				}
-				break;
-
 			case "a bra":
 			case "a button-up shirt":
 			case "a sweater":
-- 
GitLab