From 9731b0fd614ef05d1118c326acde78840c08afbd Mon Sep 17 00:00:00 2001
From: Pregmodder <pregmodder@gmail.com>
Date: Sun, 12 Apr 2020 18:47:52 -0400
Subject: [PATCH] Bad gates

---
 src/js/eventSelectionJS.js | 48 +++++++++++++++++++++-----------------
 1 file changed, 26 insertions(+), 22 deletions(-)

diff --git a/src/js/eventSelectionJS.js b/src/js/eventSelectionJS.js
index e6d115e243d..17b3cac59ef 100644
--- a/src/js/eventSelectionJS.js
+++ b/src/js/eventSelectionJS.js
@@ -1477,21 +1477,23 @@ window.generateRandomEventPoolStandard = function(eventSlave) {
 			}
 		}
 
-		if (eventSlave.vagina === 0) {
-			if (eventSlave.devotion > 50) {
-				if (eventSlave.trust > 20) {
-					if (eventSlave.rules.speech !== "restrictive") {
-						State.variables.RESSevent.push("devoted virgin");
+		if (canWalk(slave) && hasAnyArms(slave)) {
+			if (eventSlave.vagina === 0) {
+				if (eventSlave.devotion > 50) {
+					if (eventSlave.trust > 20) {
+						if (eventSlave.rules.speech !== "restrictive") {
+							State.variables.RESSevent.push("devoted virgin");
+						}
 					}
 				}
 			}
-		}
 
-		if (eventSlave.anus === 0) {
-			if (eventSlave.devotion > 50) {
-				if (eventSlave.trust > 20) {
-					if (eventSlave.rules.speech !== "restrictive") {
-						State.variables.RESSevent.push("devoted anal virgin");
+			if (eventSlave.anus === 0) {
+				if (eventSlave.devotion > 50) {
+					if (eventSlave.trust > 20) {
+						if (eventSlave.rules.speech !== "restrictive") {
+							State.variables.RESSevent.push("devoted anal virgin");
+						}
 					}
 				}
 			}
@@ -2707,21 +2709,23 @@ window.generateRandomEventPoolServant = function(eventSlave) {
 			}
 		}
 
-		if (eventSlave.vagina === 0) {
-			if (eventSlave.devotion > 50) {
-				if (eventSlave.trust > 20) {
-					if (eventSlave.rules.speech !== "restrictive") {
-						State.variables.RESSevent.push("devoted virgin");
+		if (canWalk(slave) && hasAnyArms(slave)) {
+			if (eventSlave.vagina === 0) {
+				if (eventSlave.devotion > 50) {
+					if (eventSlave.trust > 20) {
+						if (eventSlave.rules.speech !== "restrictive") {
+							State.variables.RESSevent.push("devoted virgin");
+						}
 					}
 				}
 			}
-		}
 
-		if (eventSlave.anus === 0) {
-			if (eventSlave.devotion > 50) {
-				if (eventSlave.trust > 20) {
-					if (eventSlave.rules.speech !== "restrictive") {
-						State.variables.RESSevent.push("devoted anal virgin");
+			if (eventSlave.anus === 0) {
+				if (eventSlave.devotion > 50) {
+					if (eventSlave.trust > 20) {
+						if (eventSlave.rules.speech !== "restrictive") {
+							State.variables.RESSevent.push("devoted anal virgin");
+						}
 					}
 				}
 			}
-- 
GitLab