Skip to content
Snippets Groups Projects
Commit 0d7844ca authored by Pregmodder's avatar Pregmodder
Browse files

Merge branch 'ai-art' into 'pregmod-master'

More AI art tweaks

See merge request pregmodfan/fc-pregmod!11462
parents 34ac8f43 a2f316c0
No related branches found
No related tags found
No related merge requests found
......@@ -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);
}
/**
......
......@@ -22,10 +22,14 @@ App.Art.GenAI.GenderPromptPart = class GenderPromptPart extends App.Art.GenAI.Pr
* @returns {string}
*/
negative() {
let facialHair = ``;
if (this.slave.hormoneBalance > -20) {
facialHair = "beard, mustache, ";
}
if (this.slave.genes === "XX") {
return "boy, man";
return `${facialHair}boy, man`;
} else {
return "woman, girl";
return `${facialHair}woman, girl`;
}
}
};
......@@ -3,7 +3,7 @@ App.Art.GenAI.PubicHairPromptPart = class PubicHairPromptPart extends App.Art.Ge
* @returns {string}
*/
positive() {
if (this.slave.pubicHStyle === "waxed" || this.slave.pubicHStyle === "bald" || this.slave.pubicHStyle === "hairless") {
if (this.slave.pubicHStyle === "waxed" || this.slave.pubicHStyle === "bald" || this.slave.pubicHStyle === "hairless" || this.slave.physicalAge < Math.min(this.slave.pubertyAgeXX, this.slave.pubertyAgeXY)) {
return;
}
return `${this.slave.pubicHColor} ${this.slave.pubicHStyle} pubic hair`;
......@@ -13,7 +13,7 @@ App.Art.GenAI.PubicHairPromptPart = class PubicHairPromptPart extends App.Art.Ge
* @returns {string}
*/
negative() {
if (this.slave.pubicHStyle === "waxed" || this.slave.pubicHStyle === "bald" || this.slave.pubicHStyle === "hairless") {
if (this.slave.pubicHStyle === "waxed" || this.slave.pubicHStyle === "bald" || this.slave.pubicHStyle === "hairless" || this.slave.physicalAge < Math.min(this.slave.pubertyAgeXX, this.slave.pubertyAgeXY)) {
return "pubic hair";
}
return;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment