From 565a21b4fb4d58bda588bc8e0126b8f65d89debd Mon Sep 17 00:00:00 2001
From: DCoded <dicoded@email.com>
Date: Sun, 18 Apr 2021 00:37:55 -0400
Subject: [PATCH] Added FS effects

---
 src/npc/interaction/fPCImpreg.js | 13 +++++++++++--
 1 file changed, 11 insertions(+), 2 deletions(-)

diff --git a/src/npc/interaction/fPCImpreg.js b/src/npc/interaction/fPCImpreg.js
index 63fbc4fefff..14ca4787f90 100644
--- a/src/npc/interaction/fPCImpreg.js
+++ b/src/npc/interaction/fPCImpreg.js
@@ -795,6 +795,8 @@ function getGenderRadicalistEffects(slave) {
 
 	// FIXME: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type.
 	repX(V.FSSingleSlaveRep * (V.arcologies[0].FSGenderRadicalist / V.FSLockinLevel), 'futureSocieties', slave);
+	// FIXME: Operator '+=' cannot be applied to types 'string | number' and 'number'.
+	V.arcologies[0].FSGenderRadicalist += 0.05 * V.FSSingleSlaveRep;
 
 	return frag;
 }
@@ -809,10 +811,14 @@ function getGenderFundamentalistEffectsApproving(slave) {
 
 	frag.append(`Society `, reputationSpan, ` of your putting a new slave in ${getPronouns(slave).him}; this advances the idea that all slaves should bear their masters' babies.`);
 
+	repX(forceNeg(V.FSSingleSlaveRep * (V.arcologies[0].FSGenderFundamentalist / V.FSLockinLevel)), 'futureSocieties', slave);
+	V.arcologies[0].FSGenderFundamentalist -= 0.05 * V.FSSingleSlaveRep;
+
 	return frag;
 }
 
-function getGenderFundamentalistEffectsDisapproving() {
+/** @param {App.Entity.SlaveState} slave */
+function getGenderFundamentalistEffectsDisapproving(slave) {
 	const frag = new DocumentFragment();
 	const reputationSpan = document.createElement('span');
 
@@ -821,13 +827,16 @@ function getGenderFundamentalistEffectsDisapproving() {
 
 	frag.append(`Society `, reputationSpan, ` by this degenerate form of reproduction.`);
 
+	repX(V.FSSingleSlaveRep * (V.arcologies[0].FSGenderFundamentalist / V.FSLockinLevel), 'futureSocieties', slave);
+	V.arcologies[0].FSGenderFundamentalist += 0.05 * V.FSSingleSlaveRep;
+
 	return frag;
 }
 
 /** @param {App.Entity.SlaveState} slave */
 function getGenderFundamentalistEffects(slave) {
 	if (slave.mpreg) {
-		return getGenderFundamentalistEffectsDisapproving();
+		return getGenderFundamentalistEffectsDisapproving(slave);
 	} else {
 		return getGenderFundamentalistEffectsApproving(slave);
 	}
-- 
GitLab