From ce5b3f7212f4eab1447a555162e75e000546cd3c Mon Sep 17 00:00:00 2001
From: buster scruggs <prettyleetemail@protonmail.com>
Date: Mon, 20 Feb 2023 16:51:43 -0500
Subject: [PATCH] Refactor FS slave event

---
 src/events/recFS/recfsAntebellumRevivalist.js | 21 ++++++++++++++-----
 1 file changed, 16 insertions(+), 5 deletions(-)

diff --git a/src/events/recFS/recfsAntebellumRevivalist.js b/src/events/recFS/recfsAntebellumRevivalist.js
index c97ae0ef381..d14fbd3bcde 100644
--- a/src/events/recFS/recfsAntebellumRevivalist.js
+++ b/src/events/recFS/recfsAntebellumRevivalist.js
@@ -8,8 +8,18 @@ App.Events.recFSAntebellumRevivalist = class recFSAntebellumRevivalist extends A
 
 	execute(node) {
 		let r = [];
-		const slave = GenerateNewSlave(null, {
-			minAge: 18, maxAge: 26, disableDisability: 1, ageOverridesPedoMode: 1
+
+		let slaveRace = ""
+		if (V.arcologies[0].FSSubjugationistRace !== 0) {
+			slaveRace = V.arcologies[0].FSSubjugationistRace;
+		} else if (V.arcologies[0].FSSupremacist !== 0) {
+			slaveRace = App.Utils.getRaceArrayWithoutParamRace(V.arcologies[0].FSSupremacistRace).random();
+		} else {
+			slaveRace = "black";
+		}
+
+		const slave = GenerateNewSlave("XX", {
+			minAge: 18, maxAge: 26, ageOverridesPedoMode: 1, mature: 0, nationality: 'American', race: slaveRace, disableDisability: 1
 		});
 		slave.origin = "$He offered $himself to you for enslavement as an outlet for $his raceplay fetish.";
 		slave.devotion = random(10, 25);
@@ -24,21 +34,22 @@ App.Events.recFSAntebellumRevivalist = class recFSAntebellumRevivalist extends A
 		slave.intelligence = random(-30, 10);
 		slave.teeth = "normal";
 		slave.behavioralFlaw = "odd";
-		slave.nationality = "American";
 		slave.accent = 2;
-		slave.race = "black";
-		slave.origSkin = "brown";
 		slave.fetish = either("masochist", "submissive", "humiliation");
 		slave.energy = 100;
+
 		const {
 			He,
 			his, he, him, woman
 		} = getPronouns(slave);
 		const {HeA} = getPronouns(assistant.pronouns().main).appendSuffix("A");
+
 		const contractCost = 1000;
 		const cost = slaveCost(slave) - contractCost;
+
 		r.push(`You receive so many messages, as a noted titan of the new Free Cities world, that ${V.assistant.name} has to be quite draconian in culling them. ${HeA} lets only the most important through to you. One category of message that always gets through regardless of content, though, is requests for voluntary enslavement. As the new world takes shape, they've become less rare than they once were.`);
 		App.Events.addParagraph(node, r);
+
 		r = [];
 		r.push(`The call comes in directly from the petitioner's home in an impoverished urban area. The caller is a ${woman} who, after an initial episode of shyness, starts to excitedly ramble about your Antebellum revivalist project. It's clear ${he} doesn't know very much about it, but ${he} makes it obvious that ${he} strongly fetishizes racial sex play and thinks that's what your project is all about. It's not clear that ${he} even understands that ${he} is petitioning for ${his} own enslavement. ${He} is unemployed with few prospects, and it slowly becomes apparent that ${he} spends all of ${his} free time masturbating and writing pornographic historical fiction, which ${he} is strangely proud of. ${He} sends you a few choice videos and pieces with an awkward giggle, calling it ${his} application.`);
 
-- 
GitLab