diff --git a/src/npc/interaction/fPCImpreg.js b/src/npc/interaction/fPCImpreg.js index 63fbc4fefff6f660e3e00563c9444ff6e1f0d0d4..14ca4787f9031581c09e69c25f788e6f6d2c5790 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); }