From 98a4e72702c491014c7bad31620e89ed2b18c33e Mon Sep 17 00:00:00 2001
From: Svornost <11434-svornost@users.noreply.gitgud.io>
Date: Tue, 15 Aug 2023 15:55:58 -0400
Subject: [PATCH] Don't use the "pussy" prompt for slaves that don't have one.

---
 src/art/genAI/clothesPromptPart.js | 14 +++++++++++++-
 1 file changed, 13 insertions(+), 1 deletion(-)

diff --git a/src/art/genAI/clothesPromptPart.js b/src/art/genAI/clothesPromptPart.js
index 79d1c4e43f7..cc8c33ccc7a 100644
--- a/src/art/genAI/clothesPromptPart.js
+++ b/src/art/genAI/clothesPromptPart.js
@@ -449,11 +449,23 @@ App.Art.GenAI.ClothesPromptPart = class ClothesPromptPart extends App.Art.GenAI.
 		return clothes;
 	}
 
+	/**
+	 * Remove positive keywords for genitalia from slaves that don't have the genitalia described by the keyword.
+	 * Currently handles pussies; probably should substitute penises when appropriate but right now the model is very bad at penises, so we just drop it.
+	 * @returns {string}
+	 */
+	bodyPartReplacer(prompt) {
+		if (this.slave.vagina === -1) {
+			return prompt.replace(/( *)pussy(,)*/g, "");
+		}
+		return prompt;
+	}
+
 	/**
 	 * @returns {string}
 	 */
 	positive() {
-		return clothesPrompts[this.getClothes()].positive;
+		return this.bodyPartReplacer(clothesPrompts[this.getClothes()].positive);
 	}
 
 	/**
-- 
GitLab