From aa66ac19f90559999fcfffd356952e96ca7cc094 Mon Sep 17 00:00:00 2001
From: lowercasedonkey <lowercasedonkey@gmail.com>
Date: Wed, 21 Oct 2020 15:40:26 -0400
Subject: [PATCH] remove all rules for fuckdolls

---
 src/interaction/siRules.js | 231 ++++++++++++++++++-------------------
 1 file changed, 115 insertions(+), 116 deletions(-)

diff --git a/src/interaction/siRules.js b/src/interaction/siRules.js
index 67e7b9027eb..bf16d17c1e8 100644
--- a/src/interaction/siRules.js
+++ b/src/interaction/siRules.js
@@ -98,152 +98,151 @@ App.UI.SlaveInteract.rules = function(slave) {
 	p = document.createElement('p');
 	App.UI.DOM.appendNewElement("h3", p, `Other Rules`);
 
-	// Living
 	if (slave.fuckdoll > 0) {
 		App.UI.DOM.appendNewElement("span", p, "Rules have little meaning for living sex toys", "note");
 	} else {
+		// Living
 		penthouseCensus();
 		p.append("Living standard: ");
-	}
-	if (setup.facilityCareers.includes(slave.assignment)) {
-		App.UI.DOM.appendNewElement("span", p, ` ${His} living conditions are managed by ${his} assignment.`, "note");
-	} else if ((slave.assignment === "be your Head Girl") && (V.HGSuite === 1)) {
-		App.UI.DOM.appendNewElement("span", p, ` ${He} has ${his} own little luxurious room in the penthouse with everything ${he} needs to be a proper Head Girl.`, "note");
-	} else if ((slave.assignment === "guard you") && (V.dojo > 1)) {
-		App.UI.DOM.appendNewElement("span", p, ` ${He} has a comfortable room in the armory to call ${his} own.`, "note");
-	} else {
-		choices = [
-			{value: "spare"},
-			{value: "normal"},
-		];
-		if (canMoveToRoom(slave) || slave.rules.living === "luxurious") {
-			choices.push({value: "luxurious"});
+
+		if (setup.facilityCareers.includes(slave.assignment)) {
+			App.UI.DOM.appendNewElement("span", p, ` ${His} living conditions are managed by ${his} assignment.`, "note");
+		} else if ((slave.assignment === "be your Head Girl") && (V.HGSuite === 1)) {
+			App.UI.DOM.appendNewElement("span", p, ` ${He} has ${his} own little luxurious room in the penthouse with everything ${he} needs to be a proper Head Girl.`, "note");
+		} else if ((slave.assignment === "guard you") && (V.dojo > 1)) {
+			App.UI.DOM.appendNewElement("span", p, ` ${He} has a comfortable room in the armory to call ${his} own.`, "note");
 		} else {
-			choices.push({
-				title: `Luxurious`,
-				disabled: ["No luxurious rooms available"]
-			});
+			choices = [
+				{value: "spare"},
+				{value: "normal"},
+			];
+			if (canMoveToRoom(slave) || slave.rules.living === "luxurious") {
+				choices.push({value: "luxurious"});
+			} else {
+				choices.push({
+					title: `Luxurious`,
+					disabled: ["No luxurious rooms available"]
+				});
+			}
+
+			p.append(listChoices(choices, "living"));
 		}
 
-		p.append(listChoices(choices, "living"));
-	}
+		// Rest
+		if (["be a servant", "be a subordinate slave", "get milked", "please you", "serve in the club", "serve the public", "whore", "work as a farmhand", "work in the brothel", "work a glory hole"].includes(slave.assignment) || (V.dairyRestraintsSetting < 2 && slave.assignment === "work in the dairy")) {
+			div = document.createElement("div");
+			div.append("Sleep rules: ");
+			choices = [
+				{value: "none"},
+				{value: "cruel"},
+				{value: "restrictive"},
+				{value: "permissive"},
+				{value: "mandatory"},
+			];
+			div.append(listChoices(choices, "rest"));
+			p.append(div);
+		}
 
-	// Rest
-	if (["be a servant", "be a subordinate slave", "get milked", "please you", "serve in the club", "serve the public", "whore", "work as a farmhand", "work in the brothel", "work a glory hole"].includes(slave.assignment) || (V.dairyRestraintsSetting < 2 && slave.assignment === "work in the dairy")) {
-		div = document.createElement("div");
-		div.append("Sleep rules: ");
-		choices = [
-			{value: "none"},
-			{value: "cruel"},
-			{value: "restrictive"},
-			{value: "permissive"},
-			{value: "mandatory"},
-		];
-		div.append(listChoices(choices, "rest"));
-		p.append(div);
-	}
+		// Mobility Aids
+		if (!canWalk(slave) && canMove(slave)) {
+			div = document.createElement("div");
+			div.append("Use of mobility aids: ");
+			choices = [
+				{value: "restrictive"},
+				{value: "permissive"},
+			];
+			div.append(listChoices(choices, "mobility"));
+			p.append(div);
+		}
 
-	// Mobility Aids
-	if (slave.fuckdoll > 0) {
-		// Sex toys don't move around on their own//
-	} else if (!canWalk(slave) && canMove(slave)) {
+		// Punishment
 		div = document.createElement("div");
-		div.append("Use of mobility aids: ");
+		div.append("Typical punishment: ");
 		choices = [
-			{value: "restrictive"},
-			{value: "permissive"},
+			{value: "confinement"},
+			{value: "whipping"},
+			{value: "chastity"},
+			{value: "situational"},
 		];
-		div.append(listChoices(choices, "mobility"));
+		div.append(listChoices(choices, "punishment"));
 		p.append(div);
-	}
 
-	// Punishment
-	div = document.createElement("div");
-	div.append("Typical punishment: ");
-	choices = [
-		{value: "confinement"},
-		{value: "whipping"},
-		{value: "chastity"},
-		{value: "situational"},
-	];
-	div.append(listChoices(choices, "punishment"));
-	p.append(div);
-
-	// Reward
-	div = document.createElement("div");
-	div.append("Typical reward: ");
-	choices = [
-		{value: "relaxation"},
-		{value: "drugs"},
-		{value: "orgasm"},
-		{value: "situational"},
-	];
-	div.append(listChoices(choices, "reward"));
-	p.append(div);
-
-	// Lactation
-	if (slave.lactation !== 2) {
+		// Reward
 		div = document.createElement("div");
-		div.append("Lactation maintenance: ");
+		div.append("Typical reward: ");
 		choices = [
-			{
-				title: "Left alone",
-				value: "none",
-			},
+			{value: "relaxation"},
+			{value: "drugs"},
+			{value: "orgasm"},
+			{value: "situational"},
 		];
+		div.append(listChoices(choices, "reward"));
+		p.append(div);
 
-		if (slave.lactation === 0) {
-			choices.push(
-				{
-					title: "Induce lactation",
-					value: "induce",
-				}
-			);
-		} else {
-			choices.push(
+		// Lactation
+		if (slave.lactation !== 2) {
+			div = document.createElement("div");
+			div.append("Lactation maintenance: ");
+			choices = [
 				{
-					title: "Maintain lactation",
-					value: "maintain",
-				}
-			);
+					title: "Left alone",
+					value: "none",
+				},
+			];
+
+			if (slave.lactation === 0) {
+				choices.push(
+					{
+						title: "Induce lactation",
+						value: "induce",
+					}
+				);
+			} else {
+				choices.push(
+					{
+						title: "Maintain lactation",
+						value: "maintain",
+					}
+				);
+			}
+			div.append(listChoices(choices, "lactation"));
+			p.append(div);
 		}
-		div.append(listChoices(choices, "lactation"));
-		p.append(div);
-	}
 
-	p.append(orgasm(slave));
+		p.append(orgasm(slave));
+
+		if (slave.voice !== 0) {
+			div = document.createElement("div");
+			div.append("Speech rules: ");
+			choices = [
+				{value: "restrictive"},
+				{value: "permissive"},
+			];
+			if (slave.accent > 0 && slave.accent < 4) {
+				choices.push(
+					{value: "accent elimination"},
+				);
+			} else if (slave.accent > 3) {
+				choices.push(
+					{value: "language lessons"},
+				);
+			}
+			div.append(listChoices(choices, "speech"));
+			p.append(div);
+		}
 
-	if (slave.voice !== 0) {
 		div = document.createElement("div");
-		div.append("Speech rules: ");
+		div.append("Relationship rules: ");
 		choices = [
 			{value: "restrictive"},
+			{value: "just friends"},
 			{value: "permissive"},
 		];
-		if (slave.accent > 0 && slave.accent < 4) {
-			choices.push(
-				{value: "accent elimination"},
-			);
-		} else if (slave.accent > 3) {
-			choices.push(
-				{value: "language lessons"},
-			);
-		}
-		div.append(listChoices(choices, "speech"));
+		div.append(listChoices(choices, "relationship"));
 		p.append(div);
-	}
 
-	div = document.createElement("div");
-	div.append("Relationship rules: ");
-	choices = [
-		{value: "restrictive"},
-		{value: "just friends"},
-		{value: "permissive"},
-	];
-	div.append(listChoices(choices, "relationship"));
-	p.append(div);
-
-	p.append(smartSettings(slave));
+		p.append(smartSettings(slave));
+	}
 	frag.append(p);
 	return frag;
 
-- 
GitLab