/**
 * STANDARD EVENTS
 * @param {App.Entity.SlaveState} eventSlave
 */
globalThis.generateRandomEventPoolStandard = function(eventSlave) {
	if (eventSlave.fetish !== "mindbroken") {
		if (hasAnyArms(eventSlave) && hasAnyLegs(eventSlave)) {
			if (canTalk(eventSlave)) {
				if (V.RECockmilkInterceptionIDs.length > 1 || (V.RECockmilkInterceptionIDs.length === 1 && eventSlave.ID !== V.RECockmilkInterceptionIDs[0])) {
					if (eventSlave.devotion > 20) {
						if (eventSlave.dietCum > 0 || (eventSlave.fetishKnown && eventSlave.fetish === "cumslut")) {
							V.RETSevent.push("cockmilk interception");
						}
					}
				}

				if (V.REInterslaveBeggingIDs.length > 1 || (V.REInterslaveBeggingIDs.length === 1 && eventSlave.ID !== V.REInterslaveBeggingIDs[0])) {
					if (V.universalRulesConsent === 1) {
						if (eventSlave.devotion > 20) {
							if (eventSlave.energy > 40) {
								if (canPenetrate(eventSlave)) {
									if (canSee(eventSlave)) {
										if (eventSlave.rules.release.slaves === 1) {
											V.RETSevent.push("interslave begging");
										}
									}
								}
							}
						}
					}
				}

				if (V.seeIncest === 1) {
					if (eventSlave.devotion > 20) {
						if (eventSlave.sexualQuirk === "perverted" || eventSlave.energy > 80) {
							if (eventSlave.belly < 100000) {
								if (eventSlave.lactation > 0) {
									if (eventSlave.nipples !== "fuckable") {
										if (eventSlave.rules.release.family === 1) {
											if (eventSlave.daughters > 0) {
												V.RETSevent.push("incestuous nursing");
											}
										}
									}
								}
							}
						}
					}
				}

				if (eventSlave.intelligence + eventSlave.intelligenceImplant > 50) {
					if (eventSlave.devotion > 50) {
						if (eventSlave.intelligenceImplant >= 15) {
							if (eventSlave.accent < 4) {
								V.RESSevent.push("devoted educated slave");
							}
						}
					}
				}

				if (eventSlave.skill.entertainment >= 60 || ["a ballerina", "a camgirl", "a camwhore", "a cheerleader", "a classical dancer", "a dancer", "a house DJ", "a party girl", "an aspiring pop star", "an exotic dancer", "an idol"].includes(eventSlave.career)) {
					if (canHear(eventSlave)) {
						if (eventSlave.health.condition > 40) {
							if (eventSlave.devotion > 50) {
								if (eventSlave.trust > 50) {
									V.RESSevent.push("happy dance");
								}
							}
						}
					}
				}

				if (V.RERepressedAnalVirginSubIDs.length > 0) {
					if (eventSlave.anus === 0) {
						if (eventSlave.devotion >= -50) {
							if (eventSlave.trust >= -50) {
								if (eventSlave.sexualFlaw === "repressed") {
									V.RETSevent.push("repressed anal virgin");
								}
							}
						}
					}
				}

				if (V.assistant > 0) {
					if (V.assistant.appearance !== "normal") {
						if (eventSlave.devotion >= -20) {
							if (canSee(eventSlave)) {
								if (eventSlave.devotion <= 50) {
									if (eventSlave.assignment === Job.HOUSE) {
										if (canDoAnal(eventSlave) || canDoVaginal(eventSlave)) {
											V.RESSevent.push("PA servant");
										}
									}
								} else if (eventSlave.trust > 75) {
									if (eventSlave.energy > 60) {
										if ((canDoAnal(eventSlave) && eventSlave.anus > 0) || (canDoVaginal(eventSlave) && eventSlave.vagina > 0)) {
											V.RESSevent.push("PA flirting");
										}
									}
								}
							}
						}
					}
				}

				if (eventSlave.clothes === "a succubus outfit") {
					if (eventSlave.devotion > 20) {
						if (eventSlave.trust > 20) {
							V.RESSevent.push("sexy succubus");
						}
					}
				}

				if (V.HeadGirl !== 0) {
					if (eventSlave.devotion <= 50) {
						if (eventSlave.anus !== 0 && canDoAnal(eventSlave)) {
							if (V.HGSeverity >= 0) {
								V.events.push("RE anal punishment");
							}
							V.events.push("RE shower punishment");
						}
					}
					if (eventSlave.ID === V.HeadGirl.ID) {
						if (eventSlave.trust > 50) {
							V.RESSevent.push("trusting HG");
						}
					}
					if (eventSlave.ID !== V.HeadGirl.ID) {
						if (canSee(eventSlave) && canWalk(eventSlave)) {
							if (eventSlave.rules.speech !== "restrictive") {
								if (eventSlave.trust > 75) {
									if (eventSlave.devotion > 50) {
										if (eventSlave.skill.oral > 30) {
											if (eventSlave.intelligence + eventSlave.intelligenceImplant >= V.HeadGirl.intelligence + V.HeadGirl.intelligenceImplant) {
												if (eventSlave.skill.oral > V.HeadGirl.skill.oral) {
													V.events.push("RE HG replacement");
												}
											}
										}
									}
								}
							}
						}
					}
				}

				if (eventSlave.rules.living === "spare") {
					if (eventSlave.devotion <= 20) {
						if (eventSlave.devotion > -10) {
							V.RESSevent.push("sleeping ambivalent");
						}
						if (eventSlave.trust < -20) {
							V.RESSevent.push("bad dream");
						}
					}
				}

				if (eventSlave.devotion <= 50) {
					if (eventSlave.devotion >= -20) {
						if (eventSlave.weekAcquired > 0) {
							if (V.week - eventSlave.weekAcquired < 10) {
								if (eventSlave.energy > 20) {
									if (eventSlave.anus !== 0) {
										if (eventSlave.vagina !== 0) {
											V.RESSevent.push("ignorant horny");
										}
									}
								}
							}
						}
					}
				}

				if (V.RETasteTestSubIDs.length > 1) {
					if (eventSlave.rules.living === "luxurious") {
						if (eventSlave.devotion > 20) {
							if (eventSlave.energy > 80) {
								if (canTaste(eventSlave)) {
									V.RETSevent.push("taste test");
								}
							}
						}
					}
				}

				if (V.modRequestsAllowed > 0) {
					if (eventSlave.trust > 50) {
						if (eventSlave.devotion > 20) {
							if (eventSlave.dick !== 0 || eventSlave.vagina !== -1) {
								if (eventSlave.nipples !== "fuckable") {
									if (eventSlave.rules.speech === "permissive") {
										if (eventSlave.corsetPiercing === 0) {
											if (eventSlave.tonguePiercing === 0) {
												if (eventSlave.anusPiercing === 0) {
													if (eventSlave.nipplesPiercing === 0) {
														if (eventSlave.dickPiercing === 0) {
															if (eventSlave.vaginaPiercing === 0) {
																if (eventSlave.lipsTat === 0 || eventSlave.lipsTat === "none") {
																	if (eventSlave.vaginaTat === 0 || eventSlave.vaginaTat === "none") {
																		V.RESSevent.push("mods please");
																	}
																}
															}
														}
													}
												}
											}
										}
									}
								}
							}
						}
					}
				}

				if (eventSlave.muscles > 5) {
					if (eventSlave.devotion > 20) {
						if (eventSlave.diet !== "slimming") {
							V.RESSevent.push("sore shoulders");
						}
					}
				}

				if (eventSlave.relationship > 3) {
					let relationshipSlave = V.slaves.find(s => s.ID === eventSlave.relationshipTarget);
					if (relationshipSlave.devotion > 20) {
						if (canWalk(relationshipSlave)) {
							if (canTalk(relationshipSlave)) {
								if (eventSlave.devotion > 50) {
									if (eventSlave.trust > 50) {
										if (eventSlave.rules.speech !== "restrictive") {
											V.RETSevent.push("date please");
										}
										if (relationshipSlave.anus !== 0) {
											if (relationshipSlave.dick !== 1) {
												if (relationshipSlave.dick === 0 || canAchieveErection(relationshipSlave)) {
													if (relationshipSlave.fetish === "dom" || relationshipSlave.fetish === "sadist") {
														V.RETSevent.push("top exhaustion");
													}
												}
											}
										}
									}
								}
							}
						}
					}
				}

				if (V.REAnalCowgirlSubIDs.length > 1 || (V.REAnalCowgirlSubIDs.length === 1 && eventSlave.ID !== V.REAnalCowgirlSubIDs[0])) {
					if (eventSlave.devotion > 20) {
						if (eventSlave.rules.release.slaves === 1) {
							if (eventSlave.fetish === "buttslut" || eventSlave.fetish === "sadist" || eventSlave.fetish === "dom") {
								if ((eventSlave.chastityPenis !== 1) || (eventSlave.dick === 0)) {
									V.RETSevent.push("anal cowgirl");
								}
							}
						}
					}
				}

				if (V.REBoobCollisionSubIDs.length > 1) {
					if (eventSlave.devotion > 20) {
						if (eventSlave.trust > 20) {
							if (eventSlave.boobs > 3000) {
								if (eventSlave.attrXX >= 50 || (eventSlave.fetish === "boobs" && eventSlave.fetishStrength > 95)) {
									V.RETSevent.push("boob collision");
								}
							}
						}
					}
				}

				if (V.weatherToday.severity <= 1) {
					if (eventSlave.trust > 50) {
						if (eventSlave.devotion > 20) {
							if (eventSlave.anus !== 0 && canDoAnal(eventSlave)) {
								if (eventSlave.vagina !== 0) {
									V.RESSevent.push("confident tanning");
								}
							}
						}
					}
				}

				if (eventSlave.devotion > 50) {
					if (eventSlave.trust > 50) {
						let giver = 0;
						if (V.HeadGirl === 0) {
							giver = 1;
						} else if (V.HeadGirl.ID !== eventSlave.ID) {
							giver = 1;
						}
						if (giver === 1) {
							V.RESSevent.push("a gift");
						}
					}
				}

				if (eventSlave.relationship >= 2) {
					if (eventSlave.relationship < 5) {
						if (eventSlave.devotion > 20) {
							if (eventSlave.trust >= -20) {
								V.events.push("RE relationship advice");
							}
						}
					}
				}

				if (eventSlave.devotion > 50) {
					if (eventSlave.anus > 0) {
						if (eventSlave.vagina !== 0) {
							if (eventSlave.trust > 20) {
								V.RESSevent.push("devoted exhibition");
								V.RESSevent.push("devoted lotion");
							}
							if (eventSlave.energy > 95 && canDoAnal(eventSlave)) {
								V.RESSevent.push("devoted nympho");
							}
							if (eventSlave.rules.release.masturbation === 1) {
								if (hasBothArms(eventSlave)) {
									if ((eventSlave.chastityPenis !== 1) || (eventSlave.dick === 0)) {
										V.RESSevent.push("permitted masturbation");
									}
								}
							}
						}
					}
				}

				if (eventSlave.trust < -50) {
					if (eventSlave.devotion <= 20) {
						V.RESSevent.push("terrified inspection");
					}
				}

				if (eventSlave.dick > 0) {
					if (eventSlave.anus > 0) {
						if (eventSlave.devotion >= 10) {
							if (eventSlave.genes === "XY") {
								if (V.REFeminizationCheckinIDs.includes(eventSlave.ID)) {
									V.RECIevent.push("feminization");
								}
							}
							if (eventSlave.trust >= 10) {
								if (canAchieveErection(eventSlave)) {
									if (V.REFutaSisterCheckinIDs.includes(eventSlave.ID)) {
										V.RECIevent.push("futa");
									}
								}
							}
						}
					}
				}

				if (eventSlave.skill.anal > 30) {
					if (eventSlave.devotion >= 10) {
						if (V.REMILFCheckinIDs.includes(eventSlave.ID)) {
							V.RECIevent.push("MILF");
						}
					}
				}

				if (eventSlave.attrXY > 50) {
					if (eventSlave.anus !== 0) {
						if (eventSlave.vagina !== 0) {
							if (eventSlave.devotion >= 10) {
								if (V.REOrientationCheckinIDs.includes(eventSlave.ID)) {
									V.RECIevent.push("orientation");
								}
							}
						}
					}
				}

				if (canSee(eventSlave)) {
					if (eventSlave.face >= -10) {
						if (eventSlave.devotion >= 10) {
							if ([Job.PUBLIC, Job.WHORE].includes(eventSlave.assignment)) {
								if (V.REUglyCheckinIDs.includes(eventSlave.ID)) {
									V.RECIevent.push("ugly");
								}
							}
						}
					}
				}

				if (eventSlave.anus > 1) {
					if (eventSlave.anus < 4) {
						if (eventSlave.analArea > 1) {
							if (eventSlave.devotion > 50) {
								if (eventSlave.trust > 50) {
									if (V.REButtholeCheckinIDs.includes(eventSlave.ID)) {
										V.RECIevent.push("butthole");
									}
								}
							}
						}
					}
				}

				/*
				if(eventSlave.drugs === "breast injections") {
					if(eventSlave.anus > 0 || eventSlave.vagina > 0) {
						if(eventSlave.devotion <= 50) {
							if(eventSlave.devotion >= -20) {
								if(eventSlave.trust >= -50) {
									if(V.REReductionCheckinIDs.includes(eventSlave.ID)) {
										V.RECIevent.push("reduction");
									}
								}
							}
						}
					}
				}
				*/

				if (eventSlave.assignment === Job.HOUSE) {
					if (eventSlave.devotion <= 95) {
						if (eventSlave.intelligence + eventSlave.intelligenceImplant < -50) {
							V.RESSevent.push("cooler lockin");
						}
					}
				}

				if (V.universalRulesConsent === 0) {
					if (eventSlave.devotion > 50) {
						if (eventSlave.fetish === "sadist" || eventSlave.fetish === "dom" || eventSlave.energy > 95) {
							if (V.REShowerForceSubIDs.length > 0) {
								if (eventSlave.trust <= 75) {
									V.RETSevent.push("shower force");
								}
							}
							if (eventSlave.anus > 0) {
								if (V.RESadisticDescriptionSubIDs.length > 0) {
									V.RETSevent.push("sadistic description");
								}
							}
							if (V.cockFeeder > 0) {
								if (canPenetrate(eventSlave) || eventSlave.dick === 0) {
									V.RESSevent.push("kitchen molestation");
								}
							}
						}
						if (V.REIfYouEnjoyItSubIDs.length > 0) {
							V.RETSevent.push("if you enjoy it");
						}
						if (V.RESimpleAssaultIDs.length > 0) {
							if (canPenetrate(eventSlave)) {
								V.RETSevent.push("simple assault");
							}
						}
					}
				}

				if (eventSlave.devotion < -50) {
					if (eventSlave.trust >= -20) {
						if (eventSlave.rules.speech === "restrictive") {
							V.RESSevent.push("vocal disobedience");
						}
					}
				}

				if (V.boobAccessibility !== 1 && V.ballsAccessibility !== 1 && V.pregAccessibility !== 1) {
					if (eventSlave.boobs > 10000) {
						if (eventSlave.devotion >= -20) {
							if (V.slaves.length > 2) {
								if (canDoAnal(eventSlave) || canDoVaginal(eventSlave)) {
									V.RESSevent.push("huge tits");
								}
							}
						}
					}
				}

				if (eventSlave.physicalAge > 30) {
					if (eventSlave.ageImplant > 0) {
						if (eventSlave.devotion > 20) {
							V.RESSevent.push("age implant");
						}
					}
				}

				if (V.seeAge !== 0) {
					if (eventSlave.devotion > 50) {
						if (eventSlave.rules.speech !== "restrictive") {
							if (eventSlave.birthWeek >= 51) {
								/* let's give this a much higher chance of appearing */
								V.RESSevent.push("birthday");
								V.RESSevent.push("birthday");
								V.RESSevent.push("birthday");
								V.RESSevent.push("birthday");
								V.RESSevent.push("birthday");
								V.RESSevent.push("birthday");
								V.RESSevent.push("birthday");
								V.RESSevent.push("birthday");
							}
						}
					}
				}

				if (eventSlave.clothes === "a penitent nuns habit") {
					if (eventSlave.anus > 0) {
						if (eventSlave.devotion >= -20) {
							if (eventSlave.devotion <= 50) {
								V.RESSevent.push("penitent");
							}
						}
					}
				}

				if (eventSlave.slaveName !== eventSlave.birthName && eventSlave.birthName !== "") {
					if (eventSlave.devotion <= 20) {
						if (eventSlave.trust >= -20) {
							if (eventSlave.anus > 0 && canDoAnal(eventSlave)) {
								V.RESSevent.push("not my name");
							}
						}
					}
				}

				if (V.slaves.length > 2) {
					if (eventSlave.devotion >= -20) {
						if (eventSlave.heels === 1) {
							if (eventSlave.shoes === "heels" || eventSlave.shoes === "boots" || eventSlave.shoes === "extreme heels") {
								V.RESSevent.push("tendon fall");
							}
						}
					}
				}

				if (eventSlave.devotion > 20 || eventSlave.trust < -20) {
					if (eventSlave.devotion <= 50) {
						if (eventSlave.vagina < 0) {
							if (canDoAnal(eventSlave)) {
								if (eventSlave.anus > 0) {
									if (eventSlave.skill.anal <= 30) {
										V.RESSevent.push("obedient shemale");
									}
								}
							}
						}
					}
				}

				if (eventSlave.devotion > 50) {
					if (eventSlave.trust > 20) {
						if (eventSlave.physicalAge > 37) {
							if (eventSlave.anus > 0) {
								if (eventSlave.vagina > 0) {
									V.RESSevent.push("devoted old");
								}
							}
						}
					}
				}

				if (eventSlave.devotion > 20) {
					if (eventSlave.trust > 20) {
						if (eventSlave.actualAge > 35) {
							if (canDoAnal(eventSlave) || canDoVaginal(eventSlave)) {
								if (V.PC.actualAge < 25) {
									V.RESSevent.push("young PC age difference");
								}
							}
						}
					}
				}

				if (eventSlave.devotion > 20) {
					if (eventSlave.trust > 20) {
						if (eventSlave.actualAge < 22) {
							if (canDoAnal(eventSlave) || canDoVaginal(eventSlave)) {
								if (V.PC.actualAge >= 50) {
									V.RESSevent.push("old PC age difference");
								}
							}
						}
					}
				}

				if (eventSlave.fetish === "humiliation" || eventSlave.energy > 95) {
					if (eventSlave.devotion <= 50) {
						if (eventSlave.devotion >= -20) {
							if (canDoAnal(eventSlave) || canDoVaginal(eventSlave)) {
								if (eventSlave.vagina !== 0) {
									if (eventSlave.anus !== 0) {
										if (eventSlave.fetishKnown === 1) {
											V.RESSevent.push("fearful humiliation");
										}
									}
								}
							}
						}
					}
				}

				if (eventSlave.rules.living === "luxurious") {
					if (eventSlave.devotion <= 75) {
						if (eventSlave.devotion > 50) {
							V.RESSevent.push("newly devoted sunrise");
						}
					}
				}

				if (V.PC.dick > 0) {
					if (V.PC.belly < 5000) {
						if (eventSlave.assignment === Job.HOUSE) {
							if (eventSlave.attrXY <= 35 || eventSlave.behavioralFlaw === "hates men" || eventSlave.sexualFlaw === "repressed") {
								if (eventSlave.devotion >= -20) {
									if (eventSlave.trust > 20) {
										V.RESSevent.push("frightening dick");
									}
								}
							}
						}
					}
				}

				if (V.spa > 0) {
					if (eventSlave.boobs > 2000) {
						if (eventSlave.devotion > 20) {
							if (eventSlave.trust > 20) {
								if (canDoAnal(eventSlave) || canDoVaginal(eventSlave)) {
									V.RESSevent.push("spa boobs");
								}
							}
						}
					}
				}

				if (eventSlave.lactation > 0) {
					if (eventSlave.boobs > 800) {
						if (eventSlave.nipples !== "fuckable") {
							if (eventSlave.devotion > 20) {
								if (eventSlave.trust > 20) {
									V.RESSevent.push("cow milking");
								}
							}
						}
					}
				}

				if (eventSlave.dietCum > 0) {
					if (eventSlave.devotion <= 20) {
						if ((eventSlave.fetish !== "cumslut" && eventSlave.fetish !== "masochist" && eventSlave.fetishStrength < 60) || eventSlave.fetishKnown === 0) {
							V.RESSevent.push("retching cum feeding");
						}
					}
				}

				if (V.arcologies[0].FSSubjugationist !== "unset") {
					if (eventSlave.race !== V.arcologies[0].FSSubjugationistRace) {
						if (V.week - eventSlave.weekAcquired > 1) {
							if (V.week - eventSlave.weekAcquired < 10) {
								if (eventSlave.devotion < -20) {
									if (eventSlave.trust >= -20) {
										if (eventSlave.health.condition > -20) {
											if (eventSlave.race === eventSlave.origRace) {
												if (eventSlave.indentureRestrictions < 1) {
													V.RESSevent.push("subjugation blues");
												}
											}
										}
									}
								}
							}
						}
					}
				}

				if (canTalk(eventSlave)) {
					if (eventSlave.dietCum > 0) {
						if (eventSlave.diet === "fattening") {
							if (eventSlave.trust >= -50) {
								if (eventSlave.fetish !== "cumslut") {
									if (eventSlave.weight < -30) {
										if (eventSlave.health.condition > -80) {
											if (eventSlave.behavioralFlaw !== "anorexic") {
												if (eventSlave.sexualFlaw !== "self hating") {
													if (eventSlave.fetishStrength <= 60 || eventSlave.fetishKnown !== 1) {
														V.RESSevent.push("too thin for cum diet");
													}
												}
											}
										}
									}
								}
							}
						}
					}
				}

				if (eventSlave.drugs === "intensive breast injections" || eventSlave.drugs === "hyper breast injections") {
					if (eventSlave.boobs <= 8000) {
						if (eventSlave.boobs > 2000) {
							if (eventSlave.devotion <= 50) {
								if (eventSlave.devotion >= -50) {
									if (eventSlave.trust >= -50) {
										if (eventSlave.fetish !== "boobs") {
											if (eventSlave.intelligence + eventSlave.intelligenceImplant >= -50) {
												V.RESSevent.push("breast expansion blues");
											}
										}
									}
								}
							}
						}
					}
				}

				if (eventSlave.physicalAge > 35) {
					if (eventSlave.rules.speech !== "restrictive") {
						if ([Job.PUBLIC, Job.WHORE].includes(eventSlave.assignment)) {
							if (eventSlave.devotion >= -20) {
								if (eventSlave.devotion <= 95) {
									V.RESSevent.push("ara ara");
								}
							}
						}
					}
				}

				if (eventSlave.anus > 3) {
					if (eventSlave.devotion > 50) {
						if (eventSlave.trust > 50) {
							V.RESSevent.push("gaped asshole");
						}
					}
				}

				if (eventSlave.health.condition > 90) {
					if (eventSlave.muscles > 5) {
						if (eventSlave.weight <= 30) {
							if (eventSlave.weight >= -30) {
								if (eventSlave.trust > 50) {
									if (eventSlave.devotion > 50) {
										V.RESSevent.push("passing declaration");
									}
								}
							}
						}
					}
				}

				if (eventSlave.trust < -50) {
					if (eventSlave.devotion <= 50) {
						V.RESSevent.push("im scared");
					}
				}

				if (eventSlave.fetish === "sadist") {
					if (eventSlave.fetishStrength > 20) {
						if (App.Entity.facilities.arcade.established) {
							if (eventSlave.trust >= -20) {
								if (eventSlave.devotion > 50) {
									if (eventSlave.belly < 300000) {
										V.RESSevent.push("arcade sadist");
									}
								}
							}
						}
					}
				}

				if (eventSlave.dick === 0) {
					if (eventSlave.vagina === -1) {
						if (canDoAnal(eventSlave)) {
							if (eventSlave.energy > 20) {
								if (eventSlave.devotion >= -50) {
									if (eventSlave.fetish !== "buttslut" || eventSlave.fetishStrength <= 20) {
										if (eventSlave.nipples !== "fuckable") {
											V.RESSevent.push("desperate null");
										}
									}
								}
							}
						}
					}
				}

				if (eventSlave.devotion > 20) {
					if (eventSlave.boobs > 2000) {
						V.RESSevent.push("back stretch");
					}
				}

				if (eventSlave.devotion > 20) {
					if (eventSlave.trust > 20) {
						if (eventSlave.rules.speech !== "restrictive") {
							if (eventSlave.choosesOwnClothes !== 1) {
								if (setup.modestClothes.includes(eventSlave.clothes)) {
									V.RESSevent.push("modest clothes");
								}
							}
						}
					}
				}

				if (V.PC.vagina > -1) {
					if (eventSlave.devotion <= 20) {
						if ((eventSlave.trust >= -20 && eventSlave.behavioralFlaw === "arrogant") || (eventSlave.trust > 20)) {
							if (eventSlave.muscles > 30) {
								if (eventSlave.health.condition > 20) {
									if (eventSlave.energy > 50) {
										if (canPenetrate(eventSlave)) {
											if (V.Bodyguard === 0) {
												V.RESSevent.push("mutinery attempt");
											}
										}
									}
								}
							}
						}
					}
				}
			} /* closes mute exempt */

			if (eventSlave.devotion > 20) {
				if (eventSlave.mouthAccessory !== "none") {
					V.RESSevent.push("gagged slave");
				}
			}

			if (eventSlave.trust > 20) {
				if (eventSlave.devotion > 20) {
					if (eventSlave.energy > 40) {
						if (eventSlave.belly < 300000) {
							if (V.PC.belly < 5000 && V.PC.balls < 10) {
								if (canSee(eventSlave)) {
									V.RESSevent.push("comfortable seat");
								}
							}
						}
					}
				}
			}

			if (eventSlave.devotion <= 20) {
				if (eventSlave.trust <= -20) {
					if (eventSlave.genes === "XY") {
						if (eventSlave.dick > 0) {
							if (eventSlave.chastityPenis !== 1) {
								if (eventSlave.vagina === -1) {
									if (eventSlave.attrXY < 50) {
										V.RESSevent.push("transition anxiety");
									}
								}
							}
						}
					}
				}
			}

			if (V.seeAge === 1) {
				if (eventSlave.actualAge < 18) {
					if (eventSlave.devotion > 20) {
						if (eventSlave.ovaries === 1) {
							if (eventSlave.pubertyXX === 0) {
								if (eventSlave.preg === 0) {
									if (eventSlave.physicalAge + eventSlave.birthWeek / 52 >= eventSlave.pubertyAgeXX - 0.5) {
										V.RESSevent.push(...Array.from({length: 10}, () => "first period"));
									}
								}
							}
						}
						if (canPenetrate(eventSlave)) {
							if (eventSlave.balls > 0) {
								if (eventSlave.pubertyXY === 0) {
									if (eventSlave.physicalAge + eventSlave.birthWeek / 52 >= eventSlave.pubertyAgeXY - 0.5) {
										V.RESSevent.push(...Array.from({length: 10}, () => "wet dreams"));
									}
								}
							}
						}
					}
				}
			} /* closes aging exemption */


			if (eventSlave.devotion >= -150) {
				if (eventSlave.devotion <= 50) {
					V.events.push("RE standard punishment");
				}
			}

			if (eventSlave.boobs > 600) {
				if (eventSlave.boobShape === "torpedo-shaped") {
					if (eventSlave.devotion >= -50) {
						V.RESSevent.push("torpedo squeeze");
					}
				}
			}

			if (eventSlave.assignment === Job.PUBLIC) {
				if (eventSlave.fetishKnown === 1) {
					if (V.arcologies[0].FSDegradationist === "unset") {
						if (V.arcologyUpgrade.drones === 1) {
							V.RESSevent.push("mean girls");
						}
					}
				}
			}

			if (eventSlave.balls > 0) {
				if (eventSlave.hormoneBalance >= 100) {
					if (V.hormoneUpgradeMood === 0) {
						if (eventSlave.trust >= -50) {
							if (eventSlave.devotion >= -20) {
								if (eventSlave.devotion <= 50) {
									V.RESSevent.push("orchiectomy please");
								}
							}
						}
					}
				}
			}

			if (eventSlave.trust > 20) {
				if (eventSlave.devotion > 50) {
					if (V.PC.belly < 5000) {
						V.RESSevent.push("shower slip");
					}
					if (getLimbCount(eventSlave, 102) === 4) {
						V.RESSevent.push("plimb help");
					}
				}
			}

			if (eventSlave.devotion <= 20) {
				if (eventSlave.devotion >= -50) {
					if (eventSlave.trust >= -20) {
						if (V.suppository !== 0) {
							if (eventSlave.fetish !== "buttslut") {
								V.RESSevent.push("suppository resistance");
							}
						}
						if (V.cockFeeder !== 0) {
							if (eventSlave.fetish !== "cumslut") {
								V.RESSevent.push("cockfeeder resistance");
							}
						}
					}
				}
			}

			if (eventSlave.relationship <= -2) {
				if (eventSlave.trust > 50) {
					if (eventSlave.devotion > 50) {
						V.RESSevent.push("bonded love");
					}
				}
			}

			if (eventSlave.trust > 20) {
				if (eventSlave.devotion > 50) {
					V.RESSevent.push("objectifying visit");
				}
			}

			if (canWalk(eventSlave)) {
				if (eventSlave.devotion > 20) {
					if (eventSlave.trust > -10) {
						if (eventSlave.ID !== V.HeadGirl.ID) {
							if (eventSlave.ID !== V.Concubine.ID) {
								V.RESSevent.push("refreshment delivery");
							}
						}
					}
				}
			}

			if (eventSlave.dick > 8) {
				if (eventSlave.balls > 0) {
					if (eventSlave.energy > 60) {
						if (eventSlave.devotion > 50) {
							if (eventSlave.trust > 50) {
								if (canDoAnal(eventSlave) || canDoVaginal(eventSlave)) {
									if (eventSlave.belly < 100000) {
										V.RESSevent.push("dick wringing");
									}
								}
							}
						}
					}
				}
			}

			if (eventSlave.balls > 0) {
				if (eventSlave.scrotum > 0) {
					if (eventSlave.chastityPenis === 1) {
						if (eventSlave.devotion <= 95) {
							if (eventSlave.energy > 50) {
								if (eventSlave.energy < 95) {
									if (eventSlave.devotion >= -20 || eventSlave.trust < -20) {
										V.RESSevent.push("cage relief");
									}
								}
							}
						}
					}
				}
			}

			if (V.PC.dick > 0) {
				if (V.PC.boobs >= 300) {
					if (canSee(eventSlave)) {
						if (eventSlave.devotion <= 50) {
							if (eventSlave.devotion >= -20) {
								if (((eventSlave.attrXY <= 35) && (eventSlave.attrXX > 65)) || ((eventSlave.attrXX <= 35) && (eventSlave.attrXY > 65))) {
									V.RESSevent.push("dickgirl PC");
								}
							}
						}
					}
				}
			}

			if (eventSlave.voice > 0) {
				if (eventSlave.lips <= 95) {
					if (eventSlave.mouthAccessory === "none") {
						if (eventSlave.accent === 3) {
							if (eventSlave.devotion <= 50) {
								if (eventSlave.trust > -10) {
									if (eventSlave.devotion >= -20 || eventSlave.trust < -20) {
										V.RESSevent.push("language lesson");
									}
								}
							}
						}
					}
				}
			}

			if (eventSlave.trust <= 20) {
				if (eventSlave.trust >= -75) {
					if (eventSlave.devotion <= 30) {
						if (eventSlave.devotion >= -20) {
							V.RESSevent.push("like me");
						}
					}
				}
			}

			if (eventSlave.boobs >= 2000) {
				if (eventSlave.boobsImplant === 0) {
					if (eventSlave.nipples !== "tiny" && eventSlave.nipples !== "fuckable") {
						if (eventSlave.devotion > 20) {
							V.RESSevent.push("huge naturals");
						}
					}
				}
			}

			if (eventSlave.boobs > 800) {
				if (Math.floor(eventSlave.boobsImplant / eventSlave.boobs) >= 0.60) {
					if (eventSlave.devotion > 20) {
						V.RESSevent.push("implant inspection");
					}
				}
			}

			if (eventSlave.devotion < -20) {
				if (eventSlave.trust >= -20) {
					if (eventSlave.clothes === "uncomfortable straps") {
						V.RESSevent.push("bondage gear");
					}
				}
			}

			if (eventSlave.labia > 1 && eventSlave.vagina >= 0) {
				if (eventSlave.muscles > 5 || eventSlave.diet === "muscle building") {
					if (eventSlave.belly < 10000) {
						if (eventSlave.devotion > 20) {
							if (eventSlave.trust > 20) {
								V.RESSevent.push("inconvenient labia");
							}
						}
					}
				}
			}

			if (eventSlave.devotion > 20 || eventSlave.trust < -20) {
				if (eventSlave.addict > 20) {
					if (eventSlave.aphrodisiacs > 0 || eventSlave.inflationType === "aphrodisiac") {
						V.RESSevent.push("obedient addict");
					}
				}
			}

			if (eventSlave.devotion < -50) {
				if (eventSlave.trust >= -50) {
					if (eventSlave.assignment !== Job.CONFINEMENT) {
						if (eventSlave.heels !== 1) {
							V.RESSevent.push("escapee");
						}
					}
				}
			}

			if (eventSlave.devotion <= 50) {
				if (eventSlave.trust >= -50) {
					if (eventSlave.behavioralFlaw === "gluttonous") {
						if (eventSlave.diet === "restricted") {
							V.RESSevent.push("diet");
						}
					}
				}
			}

			if (eventSlave.devotion <= 20) {
				if (eventSlave.devotion >= -50) {
					V.RESSevent.push("resistant shower");
				}
			}

			if (eventSlave.rules.speech !== "restrictive") {
				if (eventSlave.devotion >= -20) {
					if (eventSlave.trust >= -20) {
						if (eventSlave.energy > 75) {
							if (eventSlave.fetish !== "buttslut") {
								if (eventSlave.vagina !== 0 || eventSlave.anus !== 0) {
									V.RESSevent.push("night visit");
								}
							}
						}
					}
				}
			}

			if (eventSlave.rules.release.masturbation === 0 && !App.Utils.hasNonassignmentSex(eventSlave)) {
				if (eventSlave.need) {
					if (eventSlave.devotion <= 95) {
						if (eventSlave.trust >= -20) {
							if ((eventSlave.chastityPenis !== 1) || (eventSlave.dick === 0)) {
								V.RESSevent.push("forbidden masturbation");
							}
						}
					}
					if (eventSlave.devotion >= -20) {
						if (eventSlave.trust >= -50) {
							V.RESSevent.push("desperately horny");
						}
					}
				}
			}

			if (App.Utils.hasFamilySex(eventSlave) || eventSlave.rules.release.slaves === 1) {
				if (canPenetrate(eventSlave)) {
					V.RESSevent.push("slave dick on slave");
				}
			}

			if (eventSlave.devotion >= -20) {
				if (eventSlave.lactation > 1) {
					if (canDoVaginal(eventSlave) || canDoAnal(eventSlave)) {
						V.RESSevent.push("milkgasm");
					}
				}
			}

			if (eventSlave.waist < -95) {
				if (eventSlave.devotion > 20) {
					if (eventSlave.trust >= -20) {
						if (eventSlave.belly < 30000) {
							if (eventSlave.weight <= 95) {
								V.RESSevent.push("devoted waist");
							}
						}
					}
				}
			}

			if (eventSlave.skill.entertainment >= 100) {
				if (eventSlave.trust > 50) {
					if (eventSlave.assignment === Job.PUBLIC) {
						V.RESSevent.push("masterful entertainer");
					}
				}
			}

			if (eventSlave.skill.whoring >= 100) {
				if (eventSlave.trust > 50) {
					if (eventSlave.assignment === Job.WHORE) {
						V.RESSevent.push("masterful whore");
					}
				}
			}

			if (eventSlave.dick > 0) {
				if (eventSlave.balls === 0) {
					if (eventSlave.genes === "XY") {
						if (eventSlave.devotion <= 50) {
							if (eventSlave.trust < -50) {
								if (eventSlave.anus > 0) {
									if (canDoAnal(eventSlave)) {
										V.RESSevent.push("resistant gelding");
									}
								}
							}
						}
					}
				}
			}

			if (V.seePreg !== 0) {
				if (isFertile(eventSlave)) {
					if (eventSlave.devotion > 50) {
						if (V.PC.dick !== 0) {
							if (eventSlave.fetish === "pregnancy" || eventSlave.energy > 95) {
								if (eventSlave.eggType === "human") {
									if (eventSlave.fetishKnown === 1) {
										if (eventSlave.vagina !== 0) {
											if (eventSlave.anus > 0) {
												if (eventSlave.geneticQuirks.superfetation === 2 && (eventSlave.intelligence + eventSlave.intelligenceImplant > 15) && eventSlave.womb.length > 0) {
													if (eventSlave.belly < (eventSlave.pregAdaptation * 1750)) {
														V.RESSevent.push("impregnation please");
													}
												} else {
													V.RESSevent.push("impregnation please");
												}
											}
										}
									}
								}
							}
						}
					}
				}
			}

			if (["huge plug", "large plug", "long, huge plug", "long, large plug"].includes(eventSlave.buttplug)) {
				if (eventSlave.assignment !== Job.CONFINEMENT && isSlaveAvailable(eventSlave)) {
					if (eventSlave.devotion <= 20) {
						if (eventSlave.trust >= -50) {
							if (eventSlave.anus < 3) {
								V.RESSevent.push("plug disobedience");
							}
						}
					}
				}
			}

			if ([Job.PUBLIC, Job.WHORE].includes(eventSlave.assignment)) {
				if (eventSlave.vagina !== 0) {
					if (eventSlave.anus !== 0) {
						if (canDoAnal(eventSlave)) {
							if (eventSlave.devotion <= 50) {
								V.RESSevent.push("used whore");
							}
						}
					}
				}
			}

			if (eventSlave.assignment === Job.PUBLIC) {
				if (eventSlave.devotion >= -20) {
					if (canDoAnal(eventSlave) || canDoVaginal(eventSlave)) {
						V.RESSevent.push("nice guys");
					}
				}
			}

			if (eventSlave.height < (Height.mean(eventSlave) * 0.95)) {
				if (eventSlave.physicalAge > 12) {
					if (canDoAnal(eventSlave)) {
						if (eventSlave.devotion > 20) {
							if (eventSlave.trust <= 95) {
								V.RESSevent.push("devoted shortstack");
							}
						}
					}
				}
			}
		} /* closes amp/crawling exempt */

		if (canTalk(eventSlave)) {
			if (eventSlave.rules.speech !== "restrictive") {
				if (eventSlave.boobsImplant > 400) {
					if (eventSlave.lipsImplant >= 30) {
						if (eventSlave.buttImplant > 3) {
							if (eventSlave.boobs < 9000 || eventSlave.butt < 8) {
								V.RESSevent.push("surgery addict");
							}
						}
					}
				}
			}

			if ([Job.CONCUBINE, Job.FUCKTOY, Job.MASTERSUITE].includes(eventSlave.assignment)) {
				if (eventSlave.devotion > 20) {
					if (eventSlave.trust >= -20) {
						if (canDoAnal(eventSlave) || canDoVaginal(eventSlave)) {
							if ((eventSlave.chastityPenis !== 1) || (eventSlave.dick === 0)) {
								if (V.corp.Incorporated !== 0) {
									V.RESSevent.push("shift sleep");
								}
								if (canWalk(eventSlave)) {
									if (eventSlave.rules.release.masturbation === 1) {
										V.RESSevent.push("shift masturbation");
									}
								}
								if (eventSlave.skill.entertainment >= 60) {
									V.RESSevent.push("shift doorframe");
								}
							}
							if (canDoVaginal(eventSlave)) {
								if (V.PC.vagina > -1) {
									if (eventSlave.dick === 0) {
										if (V.fuckSlaves > 2) {
											V.RESSevent.push("fucktoy tribbing");
										}
									}
								}
							}
						}
					}
				}
			}

			if (eventSlave.rules.speech !== "restrictive") {
				if (eventSlave.counter.oral + eventSlave.counter.vaginal + eventSlave.counter.anal > 900) {
					if (eventSlave.counter.oral + eventSlave.counter.vaginal + eventSlave.counter.anal < 1100) {
						if (eventSlave.vagina !== 0) {
							if (eventSlave.anus > 0) {
								if (canDoAnal(eventSlave) || canDoVaginal(eventSlave)) {
									V.RESSevent.push("millenary");
								}
							}
						}
					}
				}
			}

			if (eventSlave.assignment === Job.CONFINEMENT) {
				if (eventSlave.devotion <= 50) {
					V.RESSevent.push("solitary desperation");
				}
			}

			if (eventSlave.rules.speech === "restrictive") {
				if (eventSlave.devotion > 60) {
					if (eventSlave.trust >= -20) {
						V.RESSevent.push("restricted profession");
					}
				}
			}

			if (eventSlave.rules.speech === "restrictive") {
				if (eventSlave.intelligence > 15) {
					if (eventSlave.trust >= -20) {
						if (eventSlave.devotion <= 20) {
							V.RESSevent.push("restricted smart");
						}
					}
				}
			}

			if (V.expansionRequestsAllowed > 0) {
				if (eventSlave.drugs === "no drugs") {
					if (eventSlave.rules.speech === "permissive") {
						if (eventSlave.health.condition > 20) {
							if (eventSlave.devotion >= -20) {
								if (eventSlave.trust > 20) {
									if (V.arcologies[0].FSSlimnessEnthusiast === "unset") {
										V.RESSevent.push("injections please");
									}
								}
							}
						}
					}
				}
			}

			if (eventSlave.assignment === Job.PUBLIC) {
				if (canDoAnal(eventSlave) || canDoVaginal(eventSlave)) {
					if (eventSlave.devotion > 50) {
						V.RESSevent.push("serve the public devoted");
					}
				}
			}

			if (eventSlave.behavioralFlaw === "bitchy") {
				if (canSee(eventSlave)) {
					if (eventSlave.devotion > 20) {
						if (eventSlave.trust >= -20) {
							V.RESSevent.push("obedient bitchy");
						}
					}
				}
			}
		} /* closes mute exempt */

		if (V.cockFeeder === 0) {
			if (eventSlave.intelligence + eventSlave.intelligenceImplant < -50) {
				if (eventSlave.devotion <= 50) {
					if (eventSlave.devotion >= -20 || eventSlave.trust < -20) {
						V.RESSevent.push("obedient idiot");
					}
				}
			}
		}

		if (eventSlave.boobs > 25000) {
			if (eventSlave.belly < 100000) {
				V.RESSevent.push("tittymonster inspection");
			}
		}

		if (V.assistant > 1) {
			if (eventSlave.fetishKnown === 1) {
				if (eventSlave.energy > 95) {
					if (eventSlave.devotion > 20) {
						if (eventSlave.rules.release.masturbation === 1) {
							V.RESSevent.push("nympho with assistant");
						}
					}
				}
			}
		}

		if (eventSlave.devotion > 50) {
			if (eventSlave.trust > 50) {
				if ([Job.CONCUBINE, Job.FUCKTOY, Job.MASTERSUITE].includes(eventSlave.assignment)) {
					V.RESSevent.push("bed snuggle");
				}
			}
		}

		if (eventSlave.minorInjury === "sore ass") {
			if (eventSlave.devotion <= 50) {
				V.RESSevent.push("sore ass");
			}
		}

		if (eventSlave.sexualFlaw === "hates oral") {
			if (V.PC.dick !== 0) {
				if (eventSlave.devotion <= 50) {
					V.RESSevent.push("hates oral");
				}
			}
		}

		if (canWalk(eventSlave) && hasAnyArms(eventSlave)) {
			if (eventSlave.vagina === 0) {
				if (eventSlave.devotion > 50) {
					if (eventSlave.trust > 20) {
						if (eventSlave.rules.speech !== "restrictive") {
							V.RESSevent.push("devoted virgin");
						}
					}
				}
			}

			if (eventSlave.anus === 0) {
				if (eventSlave.devotion > 50) {
					if (eventSlave.trust > 20) {
						if (eventSlave.rules.speech !== "restrictive") {
							V.RESSevent.push("devoted anal virgin");
						}
					}
				}
			}
		}

		if (V.seeExtreme === 1) {
			if (eventSlave.balls > 1) {
				if (eventSlave.scrotum > 0) {
					if (eventSlave.devotion <= 20) {
						if (eventSlave.trust <= 20) {
							if (eventSlave.rules.speech !== "restrictive") {
								V.RESSevent.push("fearful balls");
							}
						}
					}
				}
			}
		}

		if (eventSlave.devotion <= 50) {
			if (eventSlave.assignment === Job.QUARTER || eventSlave.assignment === Job.HOUSE) {
				V.RESSevent.push("scrubbing");
			}
		}

		if (eventSlave.devotion <= 20) {
			if (eventSlave.assignment === Job.QUARTER || eventSlave.assignment === Job.HOUSE) {
				if (eventSlave.clothes === "a slutty maid outfit" || eventSlave.clothes === "a nice maid outfit") {
					V.RESSevent.push("servant maid");
				}
			}
		}

		if (eventSlave.rules.speech !== "restrictive") {
			if (canDoVaginal(eventSlave)) {
				if (eventSlave.fetish !== "buttslut") {
					if (eventSlave.vagina === 0) {
						if (eventSlave.anus !== 0) {
							if (eventSlave.counter.oral + eventSlave.counter.vaginal + eventSlave.counter.anal > 100) {
								V.RESSevent.push("unhappy virgin");
							}
						}
					}
				}
			}
		}

		if (eventSlave.aphrodisiacs > 1 || eventSlave.inflationType === "aphrodisiac") {
			if (eventSlave.rules.speech === "restrictive" && eventSlave.rules.release.master === 1 && App.Utils.releaseRestricted(eventSlave)) {
				V.RESSevent.push("extreme aphrodisiacs");
			}
		}

		if (App.Utils.hasFamilySex(eventSlave) || eventSlave.rules.release.slaves === 1) {
			if (eventSlave.clit > 2) {
				V.RESSevent.push("slave clit on slave");
			}
		}

		if (eventSlave.rules.release.masturbation === 1) {
			if (eventSlave.dick > 4) {
				if (hasAnyArms(eventSlave)) {
					if (canAchieveErection(eventSlave)) {
						if (eventSlave.belly < 10000) {
							if (eventSlave.chastityPenis !== 1) {
								V.RESSevent.push("slave dick huge");
							}
						}
					}
				}
			}
		}

		if (eventSlave.heels === 1) {
			if (eventSlave.shoes === "heels" || eventSlave.shoes === "extreme heels") {
				if (canDoAnal(eventSlave) || canDoVaginal(eventSlave)) {
					V.RESSevent.push("heels");
				}
			}
		}

		if (eventSlave.rules.release.masturbation === 1) {
			if (eventSlave.belly < 300000) {
				if (eventSlave.anus > 2) {
					if (eventSlave.fetish === "buttslut" || eventSlave.energy > 95) {
						if (eventSlave.fetish !== "none") {
							if (canHold(eventSlave)) {
								if (canDoAnal(eventSlave)) {
									V.RESSevent.push("loose buttslut");
								}
							}
						}
					}
				}
			}
		}

		if (eventSlave.assignment === Job.WHORE) {
			if (canDoAnal(eventSlave) && (eventSlave.vagina < 0 || canDoVaginal(eventSlave))) {
				if (eventSlave.devotion < -20 && eventSlave.trust >= -20) {
					V.RESSevent.push("whore rebellious");
				}
			}
		}

		if (isAmputee(eventSlave)) {
			if (eventSlave.devotion > 20) {
				if (eventSlave.anus > 0 && canDoAnal(eventSlave)) {
					V.RESSevent.push("devoted amp");
				}
			}
			if (eventSlave.assignment === Job.REST) {
				V.RESSevent.push("resting amp");
			}
		}

		if (eventSlave.boobs < 500) {
			if (eventSlave.butt < 3) {
				if (canDoAnal(eventSlave) || canDoVaginal(eventSlave)) {
					if (eventSlave.devotion <= 50) {
						if (eventSlave.devotion > 20 && eventSlave.trust >= -20) {
							if (eventSlave.weight <= 10) {
								if (eventSlave.muscles <= 30) {
									V.RESSevent.push("obedient girlish");
								}
							}
						}
					}
				}
			}
		}

		if (eventSlave.boobs > 1200) {
			if (eventSlave.areolaeShape !== "circle") {
				if (eventSlave.devotion > 50) {
					V.RESSevent.push("shaped areolae");
				}
			}
		}

		if (eventSlave.behavioralFlaw === "arrogant") {
			if (eventSlave.devotion < -50) {
				if (eventSlave.trust >= -50) {
					V.RESSevent.push("rebellious arrogant");
				}
			}
		}

		if (V.seePreg !== 0) {
			if (eventSlave.bellyPreg >= 10000) {
				V.RESSevent.push("hugely pregnant");
			}
		}

		if (eventSlave.hormoneBalance >= 50) {
			if (eventSlave.vagina === -1) {
				if (eventSlave.balls >= 0) {
					if (eventSlave.devotion > 20 || eventSlave.trust < -20) {
						if (eventSlave.devotion <= 50) {
							if (eventSlave.fetish !== "buttslut") {
								if (eventSlave.rules.speech === "permissive") {
									V.RESSevent.push("hormone dysfunction");
								}
							}
						}
					}
				}
			}
		}

		if (eventSlave.vaginaPiercing > 1) {
			if (eventSlave.nipplesPiercing > 1) {
				if (eventSlave.clitPiercing > 1) {
					if (eventSlave.devotion > 20 || eventSlave.trust < -20) {
						if (eventSlave.devotion <= 50) {
							if (canDoAnal(eventSlave) || canDoVaginal(eventSlave)) {
								V.RESSevent.push("heavy piercing");
							}
						}
					}
				}
			}
		}

		if (eventSlave.fetishKnown === 1) {
			if (eventSlave.fetish === "cumslut" || eventSlave.energy > 95) {
				if ([Job.PUBLIC, Job.WHORE, Job.GLORYHOLE].includes(eventSlave.assignment)) {
					if (eventSlave.devotion > 20) {
						if (V.PC.dick !== 0) {
							V.RESSevent.push("cumslut whore");
						}
					}
				}
			}
		}

		if (eventSlave.anus === 0) {
			if (eventSlave.devotion < -20) {
				if (eventSlave.trust >= -20) {
					V.RESSevent.push("resistant anal virgin");
				}
			}
		}

		if (V.PC.dick !== 0) {
			if (eventSlave.bellyPreg >= 300000) {
				V.RESSevent.push("hyperpreg stuck");
			}
		}

		if (eventSlave.devotion >= 50) {
			if (eventSlave.trust <= 20) {
				if (canWalk(eventSlave)) {
					V.RESSevent.push("devoted fearful slave");
				}
			}
		}

		if (eventSlave.prestige === 0) {
			if (eventSlave.devotion > 50) {
				if (eventSlave.trust > 50) {
					if (eventSlave.skill.entertainment >= 100) {
						if (eventSlave.assignment === Job.PUBLIC) {
							V.events.push("RE legendary entertainer");
						}
					}

					if (eventSlave.skill.whoring >= 100) {
						if (eventSlave.assignment === Job.WHORE) {
							V.events.push("RE legendary whore");
						}
					}

					if (eventSlave.lactation > 0) {
						if ((eventSlave.boobs - eventSlave.boobsImplant) > 6000) {
							if (eventSlave.assignment === Job.MILKED) {
								V.events.push("RE legendary cow");
							}
						}
					}

					if (eventSlave.bellyPreg >= 14000) {
						if (eventSlave.broodmother === 0) {
							if (eventSlave.counter.births > 10) {
								if (eventSlave.assignment === Job.WHORE || eventSlave.assignment === Job.PUBLIC) {
									if (!isAmputee(eventSlave)) {
										V.events.push("RE legendary womb");
									}
								}
							}
						}
					}

					if (eventSlave.balls > 6) {
						if (eventSlave.dick > 6) {
							if (eventSlave.assignment === Job.MILKED) {
								V.events.push("RE legendary balls");
							}
						}
					}

					if (eventSlave.origin === "You sentenced $him to enslavement as a punishment for attempted theft of a slave." || eventSlave.origin === "$He is an enslaved Daughter of Liberty." || eventSlave.origin === "You got $him at the Slave Shelter. $He is an enslaved Daughter of Liberty, caught some weeks after the failed coup. $His previous owner used $him as a punching bag and dart board, then when he was bored of $him tattooed obscenities all over $his body and threw $him away." || eventSlave.origin === "$He is an enslaved member of an anti-slavery extremist group." || eventSlave.career === "an antislavery activist") {
						if (eventSlave.devotion > 95 && eventSlave.assignment === Job.FUCKTOY) {
							V.events.push("RE former abolitionist");
						}
					}
				}
			}
		}

		if (eventSlave.relationship === 4) {
			if (eventSlave.devotion > 20) {
				if (eventSlave.trust > 20) {
					V.events.push("RE slave marriage");
				}
			}
		}

		if (V.PSnatch === 0 && eventSlave.origin === "$He is your share of a raid on an illegal laboratory by your mercenaries." && eventSlave.newGamePlus === 0) {
			if (V.geneticMappingUpgrade === 2 && eventSlave.health.condition > 25 && eventSlave.devotion > 50 && V.cash > V.surgeryCost*4) {
				/* only one slave ever qualifies, so give it a bit more weight */
				V.events.push("RE snatch and grab followup");
				V.events.push("RE snatch and grab followup");
				V.events.push("RE snatch and grab followup");
			}
		}

		/* NICKNAME EVENTS */

		if (V.nicknamesAllowed === 1) {
			let toSearch = eventSlave.slaveName.toLowerCase();
			if (!toSearch.includes("'")) {
				if (V.week - eventSlave.weekAcquired >= 4) {
					V.events.push("RE nickname");
					V.seed = 0;
				}
			} /* closes nickname check */
		} /* closes no nicknames option */
	} /* closes mindbreak exempt */

	if (eventSlave.fetish === "mindbroken") {
		if (canWalk(eventSlave)) {
			V.RESSevent.push("mindbroken morning");
		}
		if (eventSlave.kindness !== undefined && eventSlave.kindness >= 100) {
			if ((isSlaveAvailable(eventSlave) && canWalk(eventSlave)) || ([Job.CONCUBINE, Job.FUCKTOY, Job.MASTERSUITE].includes(eventSlave.assignment))) {
				if (eventSlave.relationship === -3) {
					if (jsRandom(1, 200) < eventSlave.kindness || V.cheatMode) {
						V.RESSevent.push("surprising wakeup");
					}
				}
			}
		}
		if (eventSlave.career === "a breeding bull" && canImpreg(V.PC, eventSlave) && eventSlave.assignment === Job.MASTERSUITE && canPenetrate(eventSlave) && eventSlave.dick >= 5 && hasAllLimbs(eventSlave) && V.PC.vagina > -1 && V.PC.preg === 0 && (eventSlave.muscles > 30 || eventSlave.weight > 30)) {
			V.RESSevent.push("breeding bull");
			if (V.PC.fertDrugs > 0) {
				V.RESSevent.push("breeding bull");
				V.RESSevent.push("breeding bull");
			}
			if (V.PC.forcedFertDrugs > 0) {
				V.RESSevent.push("breeding bull");
				V.RESSevent.push("breeding bull");
			}
		}
	}
};

/**
 * servants spend a lot of time in the penthouse, so should be eligible for a number (but not all) random events
 * @param {App.Entity.SlaveState} eventSlave
 */
globalThis.generateRandomEventPoolServant = function(eventSlave) {
	/* STANDARD EVENTS */

	if (eventSlave.fetish !== "mindbroken") {
		if (hasAnyArms(eventSlave) && hasAnyLegs(eventSlave)) {
			if (canTalk(eventSlave)) {
				if (V.RECockmilkInterceptionIDs.length > 1 || (V.RECockmilkInterceptionIDs.length === 1 && eventSlave.ID !== V.RECockmilkInterceptionIDs[0])) {
					if (eventSlave.devotion > 20) {
						if (eventSlave.dietCum > 0 || (eventSlave.fetishKnown && eventSlave.fetish === "cumslut")) {
							V.RETSevent.push("cockmilk interception");
						}
					}
				}

				if (V.REInterslaveBeggingIDs.length > 1 || (V.REInterslaveBeggingIDs.length === 1 && eventSlave.ID !== V.REInterslaveBeggingIDs[0])) {
					if (V.universalRulesConsent === 1) {
						if (eventSlave.devotion > 20) {
							if (eventSlave.energy > 40) {
								if (canPenetrate(eventSlave)) {
									if (canSee(eventSlave)) {
										if (eventSlave.rules.release.slaves === 1) {
											V.RETSevent.push("interslave begging");
										}
									}
								}
							}
						}
					}
				}

				if (V.seeIncest === 1) {
					if (eventSlave.devotion > 20) {
						if (eventSlave.sexualQuirk === "perverted" || eventSlave.energy > 80) {
							if (eventSlave.belly < 100000) {
								if (eventSlave.lactation > 0) {
									if (eventSlave.nipples !== "fuckable") {
										if (eventSlave.rules.release.family === 1) {
											if (eventSlave.daughters > 0) {
												V.RETSevent.push("incestuous nursing");
											}
										}
									}
								}
							}
						}
					}
				}

				if (V.assistant > 0) {
					if (V.assistant.appearance !== "normal") {
						if (eventSlave.devotion >= -20) {
							if (canSee(eventSlave)) {
								if (eventSlave.devotion <= 50) {
									if (canDoAnal(eventSlave) || canDoVaginal(eventSlave)) {
										V.RESSevent.push("PA servant");
									}
								}
							}
						}
					}
				}

				if (V.HeadGirl !== 0) {
					if (eventSlave.devotion <= 50) {
						if (eventSlave.anus !== 0 && canDoAnal(eventSlave)) {
							if (V.HGSeverity >= 0) {
								V.events.push("RE anal punishment");
							}
							V.events.push("RE shower punishment");
						}
					}
				}

				if (V.RETasteTestSubIDs.length > 1) {
					if (eventSlave.rules.living === "luxurious") {
						if (eventSlave.devotion > 20) {
							if (eventSlave.energy > 80) {
								if (canTaste(eventSlave)) {
									V.RETSevent.push("taste test");
								}
							}
						}
					}
				}

				if (eventSlave.relationship > 3) {
					let relationshipSlave = V.slaves.find(s => s.ID === eventSlave.relationshipTarget);
					if (relationshipSlave.devotion > 20) {
						if (canWalk(relationshipSlave)) {
							if (canTalk(relationshipSlave)) {
								if (eventSlave.devotion > 50) {
									if (eventSlave.trust > 50) {
										if (relationshipSlave.anus !== 0) {
											if (relationshipSlave.dick !== 1) {
												if (relationshipSlave.dick === 0 || canAchieveErection(relationshipSlave)) {
													if (relationshipSlave.fetish === "dom" || relationshipSlave.fetish === "sadist") {
														V.RETSevent.push("top exhaustion");
													}
												}
											}
										}
									}
								}
							}
						}
					}
				}

				if (V.weatherToday.severity <= 1) {
					if (eventSlave.trust > 50) {
						if (eventSlave.devotion > 20) {
							if (eventSlave.anus !== 0 && canDoAnal(eventSlave)) {
								if (eventSlave.vagina !== 0) {
									V.RESSevent.push("confident tanning");
								}
							}
						}
					}
				}

				if (eventSlave.devotion > 50) {
					if (eventSlave.trust > 50) {
						let giver = 0;
						if (V.HeadGirl === 0) {
							giver = 1;
						} else if (V.HeadGirl.ID !== eventSlave.ID) {
							giver = 1;
						}
						if (giver === 1) {
							V.RESSevent.push("a gift");
						}
					}
				}

				if (eventSlave.devotion > 50) {
					if (eventSlave.anus > 0) {
						if (eventSlave.vagina !== 0) {
							if (eventSlave.trust > 20) {
								V.RESSevent.push("devoted lotion");
							}
						}
					}
				}

				if (eventSlave.devotion <= 95) {
					if (eventSlave.intelligence + eventSlave.intelligenceImplant < -50) {
						V.RESSevent.push("cooler lockin");
					}
				}

				if (V.universalRulesConsent === 0) {
					if (eventSlave.devotion > 50) {
						if (eventSlave.fetish === "sadist" || eventSlave.fetish === "dom" || eventSlave.energy > 95) {
							if (V.REShowerForceSubIDs.length > 0) {
								if (eventSlave.trust <= 75) {
									V.RETSevent.push("shower force");
								}
							}
							if (eventSlave.anus > 0) {
								if (V.RESadisticDescriptionSubIDs.length > 0) {
									V.RETSevent.push("sadistic description");
								}
							}
							if (V.cockFeeder > 0) {
								if (canPenetrate(eventSlave) || eventSlave.dick === 0) {
									V.RESSevent.push("kitchen molestation");
								}
							}
						}
						if (V.REIfYouEnjoyItSubIDs.length > 0) {
							V.RETSevent.push("if you enjoy it");
						}
						if (V.RESimpleAssaultIDs.length > 0) {
							if (canPenetrate(eventSlave)) {
								V.RETSevent.push("simple assault");
							}
						}
					}
				}

				if (V.boobAccessibility !== 1 && V.ballsAccessibility !== 1 && V.pregAccessibility !== 1) {
					if (eventSlave.boobs > 10000) {
						if (eventSlave.devotion >= -20) {
							if (V.slaves.length > 2) {
								if (canDoAnal(eventSlave) || canDoVaginal(eventSlave)) {
									V.RESSevent.push("huge tits");
								}
							}
						}
					}
				}

				if (V.seeAge !== 0) {
					if (eventSlave.devotion > 50) {
						if (eventSlave.rules.speech !== "restrictive") {
							if (eventSlave.birthWeek >= 51) {
								/* let's give this a much higher chance of appearing */
								V.RESSevent.push("birthday");
								V.RESSevent.push("birthday");
								V.RESSevent.push("birthday");
								V.RESSevent.push("birthday");
								V.RESSevent.push("birthday");
								V.RESSevent.push("birthday");
								V.RESSevent.push("birthday");
								V.RESSevent.push("birthday");
							}
						}
					}
				}

				if (eventSlave.slaveName !== eventSlave.birthName && eventSlave.birthName !== "") {
					if (eventSlave.devotion <= 20) {
						if (eventSlave.trust >= -20) {
							if (eventSlave.anus > 0 && canDoAnal(eventSlave)) {
								V.RESSevent.push("not my name");
							}
						}
					}
				}

				if (V.slaves.length > 2) {
					if (eventSlave.devotion >= -20) {
						if (eventSlave.heels === 1) {
							if (eventSlave.shoes === "heels" || eventSlave.shoes === "boots" || eventSlave.shoes === "extreme heels") {
								V.RESSevent.push("tendon fall");
							}
						}
					}
				}

				if (eventSlave.devotion > 20 || eventSlave.trust < -20) {
					if (eventSlave.devotion <= 50) {
						if (eventSlave.vagina < 0) {
							if (canDoAnal(eventSlave)) {
								if (eventSlave.anus > 0) {
									if (eventSlave.skill.anal <= 30) {
										V.RESSevent.push("obedient shemale");
									}
								}
							}
						}
					}
				}

				if (eventSlave.devotion > 50) {
					if (eventSlave.trust > 20) {
						if (eventSlave.physicalAge > 37) {
							if (eventSlave.anus > 0) {
								if (eventSlave.vagina > 0) {
									V.RESSevent.push("devoted old");
								}
							}
						}
					}
				}

				if (eventSlave.devotion > 20) {
					if (eventSlave.trust > 20) {
						if (eventSlave.actualAge > 35) {
							if (canDoAnal(eventSlave) || canDoVaginal(eventSlave)) {
								if (V.PC.actualAge < 25) {
									V.RESSevent.push("young PC age difference");
								}
							}
						}
					}
				}

				if (eventSlave.devotion > 20) {
					if (eventSlave.trust > 20) {
						if (eventSlave.actualAge < 22) {
							if (canDoAnal(eventSlave) || canDoVaginal(eventSlave)) {
								if (V.PC.actualAge >= 50) {
									V.RESSevent.push("old PC age difference");
								}
							}
						}
					}
				}

				if (eventSlave.fetish === "humiliation" || eventSlave.energy > 95) {
					if (eventSlave.devotion <= 50) {
						if (eventSlave.devotion >= -20) {
							if (canDoAnal(eventSlave) || canDoVaginal(eventSlave)) {
								if (eventSlave.vagina !== 0) {
									if (eventSlave.anus !== 0) {
										if (eventSlave.fetishKnown === 1) {
											V.RESSevent.push("fearful humiliation");
										}
									}
								}
							}
						}
					}
				}

				if (eventSlave.rules.living === "luxurious") {
					if (eventSlave.devotion <= 75) {
						if (eventSlave.devotion > 50) {
							V.RESSevent.push("newly devoted sunrise");
						}
					}
				}

				if (V.PC.dick > 0) {
					if (V.PC.belly < 5000) {
						if (eventSlave.attrXY <= 35 || eventSlave.behavioralFlaw === "hates men" || eventSlave.sexualFlaw === "repressed") {
							if (eventSlave.devotion >= -20) {
								if (eventSlave.trust > 20) {
									V.RESSevent.push("frightening dick");
								}
							}
						}
					}
				}

				if (V.spa > 0) {
					if (eventSlave.boobs > 2000) {
						if (eventSlave.devotion > 20) {
							if (eventSlave.trust > 20) {
								if (canDoAnal(eventSlave) || canDoVaginal(eventSlave)) {
									V.RESSevent.push("spa boobs");
								}
							}
						}
					}
				}

				if (eventSlave.lactation > 0) {
					if (eventSlave.boobs > 800) {
						if (eventSlave.nipples !== "fuckable") {
							if (eventSlave.devotion > 20) {
								if (eventSlave.trust > 20) {
									V.RESSevent.push("cow milking");
								}
							}
						}
					}
				}

				if (V.arcologies[0].FSSubjugationist !== "unset") {
					if (eventSlave.race !== V.arcologies[0].FSSubjugationistRace) {
						if (V.week - eventSlave.weekAcquired > 1) {
							if (V.week - eventSlave.weekAcquired < 10) {
								if (eventSlave.devotion < -20) {
									if (eventSlave.trust >= -20) {
										if (eventSlave.health.condition > -20) {
											if (eventSlave.race === eventSlave.origRace) {
												if (eventSlave.indentureRestrictions < 1) {
													V.RESSevent.push("subjugation blues");
												}
											}
										}
									}
								}
							}
						}
					}
				}

				if (canTalk(eventSlave)) {
					if (eventSlave.dietCum > 0) {
						if (eventSlave.diet === "fattening") {
							if (eventSlave.trust >= -50) {
								if (eventSlave.fetish !== "cumslut") {
									if (eventSlave.weight < -30) {
										if (eventSlave.health.condition > -80) {
											if (eventSlave.behavioralFlaw !== "anorexic") {
												if (eventSlave.sexualFlaw !== "self hating") {
													if (eventSlave.fetishStrength <= 60 || eventSlave.fetishKnown !== 1) {
														V.RESSevent.push("too thin for cum diet");
													}
												}
											}
										}
									}
								}
							}
						}
					}
				}

				if (eventSlave.health.condition > 90) {
					if (eventSlave.muscles > 5) {
						if (eventSlave.weight <= 30) {
							if (eventSlave.weight >= -30) {
								if (eventSlave.trust > 50) {
									if (eventSlave.devotion > 50) {
										V.RESSevent.push("passing declaration");
									}
								}
							}
						}
					}
				}

				if (eventSlave.fetish === "sadist") {
					if (eventSlave.fetishStrength > 20) {
						if (App.Entity.facilities.arcade.established) {
							if (eventSlave.trust >= -20) {
								if (eventSlave.devotion > 50) {
									if (eventSlave.belly < 300000) {
										V.RESSevent.push("arcade sadist");
									}
								}
							}
						}
					}
				}

				if (V.PC.vagina > -1) {
					if (eventSlave.devotion <= 20) {
						if ((eventSlave.trust >= -20 && eventSlave.behavioralFlaw === "arrogant") || (eventSlave.trust > 20)) {
							if (eventSlave.muscles > 30) {
								if (eventSlave.health.condition > 20) {
									if (eventSlave.energy > 50) {
										if (canPenetrate(eventSlave)) {
											if (V.Bodyguard === 0) {
												V.RESSevent.push("mutinery attempt");
											}
										}
									}
								}
							}
						}
					}
				}
			} /* closes mute exempt */

			if (eventSlave.devotion > 20) {
				if (eventSlave.mouthAccessory !== "none") {
					V.RESSevent.push("gagged slave");
				}
			}

			if (eventSlave.trust > 20) {
				if (eventSlave.devotion > 20) {
					if (eventSlave.energy > 40) {
						if (eventSlave.belly < 300000) {
							if (V.PC.belly < 5000 && V.PC.balls < 10) {
								if (canSee(eventSlave)) {
									V.RESSevent.push("comfortable seat");
								}
							}
						}
					}
				}
			}

			if (V.seeAge === 1) {
				if (eventSlave.actualAge < 18) {
					if (eventSlave.devotion > 20) {
						if (eventSlave.ovaries === 1) {
							if (eventSlave.pubertyXX === 0) {
								if (eventSlave.preg === 0) {
									if (eventSlave.physicalAge + eventSlave.birthWeek / 52 >= eventSlave.pubertyAgeXX - 0.5) {
										V.RESSevent.push(...Array.from({length: 10}, () => "first period"));
									}
								}
							}
						}
						if (canPenetrate(eventSlave)) {
							if (eventSlave.balls > 0) {
								if (eventSlave.pubertyXY === 0) {
									if (eventSlave.physicalAge + eventSlave.birthWeek / 52 >= eventSlave.pubertyAgeXY - 0.5) {
										V.RESSevent.push(...Array.from({length: 10}, () => "wet dreams"));
									}
								}
							}
						}
					}
				}
			} /* closes aging exemption */


			if (eventSlave.devotion >= -150) {
				if (eventSlave.devotion <= 50) {
					V.events.push("RE standard punishment");
				}
			}

			if (eventSlave.trust > 20) {
				if (eventSlave.devotion > 50) {
					if (V.PC.belly < 5000) {
						V.RESSevent.push("shower slip");
					}
					if (getLimbCount(eventSlave, 102) === 4) {
						V.RESSevent.push("plimb help");
					}
				}
			}

			if (eventSlave.devotion <= 20) {
				if (eventSlave.devotion >= -50) {
					if (eventSlave.trust >= -20) {
						if (V.suppository !== 0) {
							if (eventSlave.fetish !== "buttslut") {
								V.RESSevent.push("suppository resistance");
							}
						}
						if (V.cockFeeder !== 0) {
							if (eventSlave.fetish !== "cumslut") {
								V.RESSevent.push("cockfeeder resistance");
							}
						}
					}
				}
			}

			if (eventSlave.relationship <= -2) {
				if (eventSlave.trust > 50) {
					if (eventSlave.devotion > 50) {
						V.RESSevent.push("bonded love");
					}
				}
			}

			if (eventSlave.trust > 20) {
				if (eventSlave.devotion > 50) {
					V.RESSevent.push("objectifying visit");
				}
			}

			if (canWalk(eventSlave)) {
				if (eventSlave.devotion > 20) {
					if (eventSlave.trust > -10) {
						if (eventSlave.ID !== V.HeadGirl.ID) {
							if (eventSlave.ID !== V.Concubine.ID) {
								V.RESSevent.push("refreshment delivery");
							}
						}
					}
				}
			}

			if (eventSlave.dick > 8) {
				if (eventSlave.balls > 0) {
					if (eventSlave.energy > 60) {
						if (eventSlave.devotion > 50) {
							if (eventSlave.trust > 50) {
								if (canDoAnal(eventSlave) || canDoVaginal(eventSlave)) {
									if (eventSlave.belly < 100000) {
										V.RESSevent.push("dick wringing");
									}
								}
							}
						}
					}
				}
			}

			if (eventSlave.balls > 0) {
				if (eventSlave.scrotum > 0) {
					if (eventSlave.chastityPenis === 1) {
						if (eventSlave.devotion <= 95) {
							if (eventSlave.energy > 50) {
								if (eventSlave.energy < 95) {
									if (eventSlave.devotion >= -20 || eventSlave.trust < -20) {
										V.RESSevent.push("cage relief");
									}
								}
							}
						}
					}
				}
			}

			if (V.PC.dick > 0) {
				if (V.PC.boobs >= 300) {
					if (canSee(eventSlave)) {
						if (eventSlave.devotion <= 50) {
							if (eventSlave.devotion >= -20) {
								if (((eventSlave.attrXY <= 35) && (eventSlave.attrXX > 65)) || ((eventSlave.attrXX <= 35) && (eventSlave.attrXY > 65))) {
									V.RESSevent.push("dickgirl PC");
								}
							}
						}
					}
				}
			}

			if (eventSlave.trust <= 20) {
				if (eventSlave.trust >= -75) {
					if (eventSlave.devotion <= 30) {
						if (eventSlave.devotion >= -20) {
							V.RESSevent.push("like me");
						}
					}
				}
			}

			if (eventSlave.devotion < -20) {
				if (eventSlave.trust >= -20) {
					if (eventSlave.clothes === "uncomfortable straps") {
						V.RESSevent.push("bondage gear");
					}
				}
			}

			if (eventSlave.labia > 1 && eventSlave.vagina >= 0) {
				if (eventSlave.muscles > 5 || eventSlave.diet === "muscle building") {
					if (eventSlave.belly < 10000) {
						if (eventSlave.devotion > 20) {
							if (eventSlave.trust > 20) {
								V.RESSevent.push("inconvenient labia");
							}
						}
					}
				}
			}

			if (eventSlave.devotion > 20 || eventSlave.trust < -20) {
				if (eventSlave.addict > 20) {
					if (eventSlave.aphrodisiacs > 0 || eventSlave.inflationType === "aphrodisiac") {
						V.RESSevent.push("obedient addict");
					}
				}
			}

			if (eventSlave.devotion < -50) {
				if (eventSlave.trust >= -50) {
					if (eventSlave.heels !== 1) {
						V.RESSevent.push("escapee");
					}
				}
			}

			if (eventSlave.devotion <= 50) {
				if (eventSlave.trust >= -50) {
					if (eventSlave.behavioralFlaw === "gluttonous") {
						if (eventSlave.diet === "restricted") {
							V.RESSevent.push("diet");
						}
					}
				}
			}

			if (eventSlave.devotion <= 20) {
				if (eventSlave.devotion >= -50) {
					V.RESSevent.push("resistant shower");
				}
			}

			if (eventSlave.rules.speech !== "restrictive") {
				if (eventSlave.devotion >= -20) {
					if (eventSlave.trust >= -20) {
						if (eventSlave.energy > 75) {
							if (eventSlave.fetish !== "buttslut") {
								if (eventSlave.vagina !== 0 || eventSlave.anus !== 0) {
									V.RESSevent.push("night visit");
								}
							}
						}
					}
				}
			}

			if (eventSlave.rules.release.masturbation === 0) {
				if (eventSlave.need) {
					if (eventSlave.devotion <= 95) {
						if (eventSlave.trust >= -20) {
							if ((eventSlave.chastityPenis !== 1) || (eventSlave.dick === 0)) {
								V.RESSevent.push("forbidden masturbation");
							}
						}
					}
					if (eventSlave.devotion >= -20) {
						if (eventSlave.trust >= -50) {
							V.RESSevent.push("desperately horny");
						}
					}
				}
			}

			if (App.Utils.hasFamilySex(eventSlave) || eventSlave.rules.release.slaves === 1) {
				if (canPenetrate(eventSlave)) {
					V.RESSevent.push("slave dick on slave");
				}
			}

			if (eventSlave.devotion >= -20) {
				if (eventSlave.lactation > 1) {
					if (canDoVaginal(eventSlave) || canDoAnal(eventSlave)) {
						V.RESSevent.push("milkgasm");
					}
				}
			}

			if (eventSlave.waist < -95) {
				if (eventSlave.devotion > 20) {
					if (eventSlave.trust >= -20) {
						if (eventSlave.belly < 30000) {
							if (eventSlave.weight <= 95) {
								V.RESSevent.push("devoted waist");
							}
						}
					}
				}
			}

			if (eventSlave.dick > 0) {
				if (eventSlave.balls === 0) {
					if (eventSlave.genes === "XY") {
						if (eventSlave.devotion <= 50) {
							if (eventSlave.trust < -50) {
								if (eventSlave.anus > 0) {
									if (canDoAnal(eventSlave)) {
										V.RESSevent.push("resistant gelding");
									}
								}
							}
						}
					}
				}
			}

			if (V.seePreg !== 0) {
				if (isFertile(eventSlave)) {
					if (eventSlave.devotion > 50) {
						if (V.PC.dick !== 0) {
							if (eventSlave.fetish === "pregnancy" || eventSlave.energy > 95) {
								if (eventSlave.eggType === "human") {
									if (eventSlave.fetishKnown === 1) {
										if (eventSlave.vagina !== 0) {
											if (eventSlave.anus > 0) {
												if (eventSlave.geneticQuirks.superfetation === 2 && (eventSlave.intelligence + eventSlave.intelligenceImplant > 15) && eventSlave.womb.length > 0) {
													if (eventSlave.belly < (eventSlave.pregAdaptation * 1750)) {
														V.RESSevent.push("impregnation please");
													}
												} else {
													V.RESSevent.push("impregnation please");
												}
											}
										}
									}
								}
							}
						}
					}
				}
			}

			if (["huge plug", "large plug", "long, huge plug", "long, large plug"].includes(eventSlave.buttplug)) {
				if (isSlaveAvailable(eventSlave)) {
					if (eventSlave.devotion <= 20) {
						if (eventSlave.trust >= -50) {
							if (eventSlave.anus < 3) {
								V.RESSevent.push("plug disobedience");
							}
						}
					}
				}
			}
		} /* closes amp/crawling exempt */

		if (canTalk(eventSlave)) {
			if (eventSlave.rules.speech !== "restrictive") {
				if (eventSlave.boobsImplant > 400) {
					if (eventSlave.lipsImplant >= 30) {
						if (eventSlave.buttImplant > 3) {
							if (eventSlave.boobs < 9000 || eventSlave.butt < 8) {
								V.RESSevent.push("surgery addict");
							}
						}
					}
				}
			}

			if (eventSlave.rules.speech !== "restrictive") {
				if (eventSlave.counter.oral + eventSlave.counter.vaginal + eventSlave.counter.anal > 900) {
					if (eventSlave.counter.oral + eventSlave.counter.vaginal + eventSlave.counter.anal < 1100) {
						if (eventSlave.vagina !== 0) {
							if (eventSlave.anus > 0) {
								if (canDoAnal(eventSlave) || canDoVaginal(eventSlave)) {
									V.RESSevent.push("millenary");
								}
							}
						}
					}
				}
			}

			if (V.expansionRequestsAllowed > 0) {
				if (eventSlave.drugs === "no drugs") {
					if (eventSlave.rules.speech === "permissive") {
						if (eventSlave.health.condition > 20) {
							if (eventSlave.devotion >= -20) {
								if (eventSlave.trust > 20) {
									if (V.arcologies[0].FSSlimnessEnthusiast === "unset") {
										V.RESSevent.push("injections please");
									}
								}
							}
						}
					}
				}
			}

			if (eventSlave.behavioralFlaw === "bitchy") {
				if (canSee(eventSlave)) {
					if (eventSlave.devotion > 20) {
						if (eventSlave.trust >= -20) {
							V.RESSevent.push("obedient bitchy");
						}
					}
				}
			}
		} /* closes mute exempt */

		if (V.cockFeeder === 0) {
			if (eventSlave.intelligence + eventSlave.intelligenceImplant < -50) {
				if (eventSlave.devotion <= 50) {
					if (eventSlave.devotion >= -20 || eventSlave.trust < -20) {
						V.RESSevent.push("obedient idiot");
					}
				}
			}
		}

		if (V.assistant > 1) {
			if (eventSlave.fetishKnown === 1) {
				if (eventSlave.energy > 95) {
					if (eventSlave.devotion > 20) {
						if (eventSlave.rules.release.masturbation === 1) {
							V.RESSevent.push("nympho with assistant");
						}
					}
				}
			}
		}


		if (eventSlave.minorInjury === "sore ass") {
			if (eventSlave.devotion <= 50) {
				V.RESSevent.push("sore ass");
			}
		}

		if (eventSlave.sexualFlaw === "hates oral") {
			if (V.PC.dick !== 0) {
				if (eventSlave.devotion <= 50) {
					V.RESSevent.push("hates oral");
				}
			}
		}

		if (canWalk(eventSlave) && hasAnyArms(eventSlave)) {
			if (eventSlave.vagina === 0) {
				if (eventSlave.devotion > 50) {
					if (eventSlave.trust > 20) {
						if (eventSlave.rules.speech !== "restrictive") {
							V.RESSevent.push("devoted virgin");
						}
					}
				}
			}

			if (eventSlave.anus === 0) {
				if (eventSlave.devotion > 50) {
					if (eventSlave.trust > 20) {
						if (eventSlave.rules.speech !== "restrictive") {
							V.RESSevent.push("devoted anal virgin");
						}
					}
				}
			}
		}

		if (eventSlave.devotion <= 50) {
			V.RESSevent.push("scrubbing");
		}

		if (eventSlave.devotion <= 20) {
			if (eventSlave.clothes === "a slutty maid outfit" || eventSlave.clothes === "a nice maid outfit") {
				V.RESSevent.push("servant maid");
			}
		}

		if (eventSlave.aphrodisiacs > 1 || eventSlave.inflationType === "aphrodisiac") {
			if (eventSlave.rules.speech === "restrictive" && eventSlave.rules.release.master === 1 && App.Utils.releaseRestricted(eventSlave)) {
				V.RESSevent.push("extreme aphrodisiacs");
			}
		}

		if (App.Utils.hasFamilySex(eventSlave) || eventSlave.rules.release.slaves === 1) {
			if (eventSlave.clit > 2) {
				V.RESSevent.push("slave clit on slave");
			}
		}

		if (eventSlave.rules.release.masturbation === 1) {
			if (eventSlave.dick > 4) {
				if (hasAnyArms(eventSlave)) {
					if (canAchieveErection(eventSlave)) {
						if (eventSlave.belly < 10000) {
							if (eventSlave.chastityPenis !== 1) {
								V.RESSevent.push("slave dick huge");
							}
						}
					}
				}
			}
		}

		if (eventSlave.heels === 1) {
			if (eventSlave.shoes === "heels" || eventSlave.shoes === "extreme heels") {
				if (canDoAnal(eventSlave) || canDoVaginal(eventSlave)) {
					V.RESSevent.push("heels");
				}
			}
		}

		if (eventSlave.rules.release.masturbation === 1) {
			if (eventSlave.belly < 300000) {
				if (eventSlave.anus > 2) {
					if (eventSlave.fetish === "buttslut" || eventSlave.energy > 95) {
						if (eventSlave.fetish !== "none") {
							if (canHold(eventSlave)) {
								if (canDoAnal(eventSlave)) {
									V.RESSevent.push("loose buttslut");
								}
							}
						}
					}
				}
			}
		}

		if (eventSlave.boobs > 1200) {
			if (eventSlave.areolaeShape !== "circle") {
				if (eventSlave.devotion > 50) {
					V.RESSevent.push("shaped areolae");
				}
			}
		}

		if (V.seePreg !== 0) {
			if (eventSlave.bellyPreg >= 10000) {
				V.RESSevent.push("hugely pregnant");
			}
		}

		if (eventSlave.hormoneBalance >= 50) {
			if (eventSlave.vagina === -1) {
				if (eventSlave.balls >= 0) {
					if (eventSlave.devotion > 20 || eventSlave.trust < -20) {
						if (eventSlave.devotion <= 50) {
							if (eventSlave.fetish !== "buttslut") {
								if (eventSlave.rules.speech === "permissive") {
									V.RESSevent.push("hormone dysfunction");
								}
							}
						}
					}
				}
			}
		}

		if (eventSlave.vaginaPiercing > 1) {
			if (eventSlave.nipplesPiercing > 1) {
				if (eventSlave.clitPiercing > 1) {
					if (eventSlave.devotion > 20 || eventSlave.trust < -20) {
						if (eventSlave.devotion <= 50) {
							if (canDoAnal(eventSlave) || canDoVaginal(eventSlave)) {
								V.RESSevent.push("heavy piercing");
							}
						}
					}
				}
			}
		}

		if (eventSlave.anus === 0) {
			if (eventSlave.devotion < -20) {
				if (eventSlave.trust >= -20) {
					V.RESSevent.push("resistant anal virgin");
				}
			}
		}

		if (V.PC.dick !== 0) {
			if (eventSlave.bellyPreg >= 300000) {
				V.RESSevent.push("hyperpreg stuck");
			}
		}

		if (eventSlave.devotion >= 50) {
			if (eventSlave.trust <= 20) {
				if (canWalk(eventSlave)) {
					V.RESSevent.push("devoted fearful slave");
				}
			}
		}

		if (eventSlave.relationship === 4) {
			if (eventSlave.devotion > 20) {
				if (eventSlave.trust > 20) {
					V.events.push("RE slave marriage");
				}
			}
		}

		if (V.PSnatch === 0 && eventSlave.origin === "$He is your share of a raid on an illegal laboratory by your mercenaries." && eventSlave.newGamePlus === 0) {
			if (V.geneticMappingUpgrade === 2 && eventSlave.health.condition > 25 && eventSlave.devotion > 50 && V.cash > V.surgeryCost*4) {
				/* only one slave ever qualifies, so give it a bit more weight */
				V.events.push("RE snatch and grab followup");
				V.events.push("RE snatch and grab followup");
				V.events.push("RE snatch and grab followup");
			}
		}

		/* NICKNAME EVENTS */

		if (V.nicknamesAllowed === 1) {
			let toSearch = eventSlave.slaveName.toLowerCase();
			if (!toSearch.includes("'")) {
				if (V.week - eventSlave.weekAcquired >= 4) {
					V.events.push("RE nickname");
					V.seed = 0;
				}
			} /* closes nickname check */
		} /* closes no nicknames option */
	} /* closes mindbreak exempt */

	if (eventSlave.fetish === "mindbroken") {
		if (canWalk(eventSlave)) {
			V.RESSevent.push("mindbroken morning");
		}
	}
};

globalThis.populateEventArray = function(RESS = V.RESSevent.length, RESSTR = V.RESSTRevent.length, RETS = V.RETSevent.length, RECI = V.RECIevent.length) {
	/* EVENT RANDOMIZATION */
	let events = V.events;
	let i = 0;

	for (i = 0; i < RESS; i++) {
		events.push("RESS");
	}
	for (i = 0; i < RESSTR; i++) {
		events.push("RESSTR");
	}
	for (i = 0; i < RETS; i++) {
		events.push("RETS");
	}
	for (i = 0; i < RECI; i++) {
		events.push("RECI");
	}
	if (events.length === 0) {
		events.push("RE no event");
	}

	return events;
};

src/js/eventSelectionJS.js