From 16f034c8b1b80dc8bacbeaa95b5eeb97b26f7b2e Mon Sep 17 00:00:00 2001
From: Skriv <skrivelese@gmail.com>
Date: Sat, 25 May 2019 14:42:37 +0200
Subject: [PATCH] restore original

---
 src/js/DefaultRules.js | 33 ++++++++++++++++++++++++---------
 1 file changed, 24 insertions(+), 9 deletions(-)

diff --git a/src/js/DefaultRules.js b/src/js/DefaultRules.js
index 9005abaa5e2..90ed3d4ce5e 100644
--- a/src/js/DefaultRules.js
+++ b/src/js/DefaultRules.js
@@ -803,10 +803,16 @@ window.DefaultRules = (function() {
 							r += `<br>${slave.slaveName} has been given a ${slave.vaginalAttachment}.`;
 							break;
 					}
-				} else if (slave.vaginalAttachment === "none") {
-					r += `<br>${slave.slaveName} has been instructed not to use any vaginal accessories.`;
 				} else {
-					r += `<br>${slave.slaveName} has been given a ${slave.vaginalAttachment}.`;
+					switch (slave.vaginalAttachment) {
+						case "none":
+							r += `<br>${slave.slaveName} has been instructed not to use any vaginal accessories.`;
+							break;
+
+						default:
+							r += `<br>${slave.slaveName} has been given a ${slave.vaginalAttachment}.`;
+							break;
+					}
 				}
 			}
 		}
@@ -1086,10 +1092,14 @@ window.DefaultRules = (function() {
 		} else if ((rule.buttplugAttachment !== undefined) && (rule.buttplugAttachment !== "no default setting")) {
 			if ((slave.buttplugAttachment !== rule.buttplugAttachment)) {
 				slave.buttplugAttachment = rule.buttplugAttachment;
-				if (slave.buttplugAttachment === "none") {
-					r += `<br>${slave.slaveName} has been instructed not to use an attachment for ${his} anal accessory.`;
-				} else {
-					r += `<br>${slave.slaveName} has been given a ${slave.buttplugAttachment} to attach to ${his} buttplug.`;
+				switch (slave.buttplugAttachment) {
+					case "none":
+						r += `<br>${slave.slaveName} has been instructed not to use an attachment for ${his} anal accessory.`;
+						break;
+
+					default:
+						r += `<br>${slave.slaveName} has been given a ${slave.buttplugAttachment} to attach to ${his} buttplug.`;
+						break;
 				}
 			}
 		}
@@ -1534,14 +1544,19 @@ window.DefaultRules = (function() {
 					break;
 
 				case "breast injections":
+					if (!(slave.boobs < 48000)) {
+						flag = false;
+					}
+					break;
+
 				case "hyper breast injections":
-					if (slave.boobs >= 48000) {
+					if (!(slave.boobs < 48000)) {
 						flag = false;
 					}
 					break;
 
 				case "breast redistributors":
-					if (slave.boobs - slave.boobsImplant <= 100) {
+					if (!(slave.boobs - slave.boobsImplant > 100)) {
 						flag = false;
 					}
 					break;
-- 
GitLab