From d4acafc780c4926629d6ab25493844014f7ee8a2 Mon Sep 17 00:00:00 2001
From: Svornost <11434-svornost@users.noreply.gitgud.io>
Date: Sun, 27 Sep 2020 15:51:09 -0700
Subject: [PATCH] saLongTermPhysicalEffects fixes and cleanup

---
 src/endWeek/saLongTermPhysicalEffects.js | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/src/endWeek/saLongTermPhysicalEffects.js b/src/endWeek/saLongTermPhysicalEffects.js
index b184d296b77..54ecd58d126 100644
--- a/src/endWeek/saLongTermPhysicalEffects.js
+++ b/src/endWeek/saLongTermPhysicalEffects.js
@@ -455,7 +455,7 @@ App.SlaveAssignment.longTermPhysicalEffects = (function() {
 			} else if (slave.energy > 95) {
 				// nymphos stay nymphos
 			} else if (slave.energy > 0) {
-				const sexJobs = [Job.PUBLIC, Job.WHORE, Job.BROTHEL, Job.CLUB, Job.GLORYHOLE, Job.ARCADE, Job.FUCKTOY, Job.MASTERSUITE, Job.SUBORDINATE].includes(slave.assigment);
+				const sexJobs = [Job.PUBLIC, Job.WHORE, Job.BROTHEL, Job.CLUB, Job.GLORYHOLE, Job.ARCADE, Job.FUCKTOY, Job.MASTERSUITE, Job.SUBORDINATE].includes(slave.assignment);
 				if (slave.devotion > 20) {
 					if (sexJobs) {
 						r.push(`${His} assignment constantly requires ${him} to fuck. ${He} obeys, but <span class="stat drop">${his} appetite for sex is reduced.</span>`);
@@ -899,7 +899,7 @@ App.SlaveAssignment.longTermPhysicalEffects = (function() {
 				r.push(`${His} <span class="ncs">NCS</span> manages to <span class="change positive">reverse the stretching in ${his} vagina, ${his} pussy now looks more childlike.</span>`);
 				slave.vagina -= 1;
 				countNCS++;
-			} else if ((_countNCS < 2) && (slave.anus > 1) && (random(1, 100) < (slave.anus * 10))) {
+			} else if ((countNCS < 2) && (slave.anus > 1) && (random(1, 100) < (slave.anus * 10))) {
 				r.push(`${His} <span class="ncs">NCS</span> effectively <span class="change positive">reverses the stretching in ${his} anus, ${his} ass-pussy now looks more childlike.</span>`);
 				slave.anus -= 1;
 				countNCS++;
@@ -1426,7 +1426,7 @@ App.SlaveAssignment.longTermPhysicalEffects = (function() {
 			if (mobility) {
 				r.push(`${His}`);
 				if (hindrances.length > 0) {
-					r.push(`${hindrances.reduce(function(res, ch, i, arr) { return res + (i === arr.length - 1 ? ' and ' : ', ') + ch; })}`);
+					r.push(arrayToSentence(hindrances));
 					if (isAmputee(slave)) {
 						if (hindrances.length > 1) {
 							r.push(`but ultimately ${his} limblessness,`);
@@ -1472,7 +1472,7 @@ App.SlaveAssignment.longTermPhysicalEffects = (function() {
 			} else {
 				r.push(`${He} is immobilized by ${his}`);
 				if (hindrances.length > 0) {
-					r.push(`${hindrances.reduce(function(res, ch, i, arr) { return res + (i === arr.length - 1 ? ' and ' : ', ') + ch; })}`);
+					r.push(arrayToSentence(hindrances));
 					if (isAmputee(slave)) {
 						if (hindrances.length > 1) {
 							r.push(`but ultimately ${his} limblessness,`);
@@ -2343,7 +2343,7 @@ App.SlaveAssignment.longTermPhysicalEffects = (function() {
 						r.push(`has no choice but to accept`);
 					}
 					r.push(`being an accessory to ${his} belly.`);
-				} else if (slave.belly >= 300000) {
+				} else if (slave.belly >= 200000) {
 					r.push(`${His} ${belly} belly is so large it reaches the floor`);
 					if (hasAnyLegs(slave)) {
 						r.push(`even when ${he} stands,`);
@@ -2399,7 +2399,7 @@ App.SlaveAssignment.longTermPhysicalEffects = (function() {
 					}
 				}
 			} else if (slave.physicalAge < 18) {
-				if (slave.belly >= 60000) {
+				if (slave.belly >= 600000) {
 					r.push(`${His} ${belly} belly is so large it dwarfs ${his} body. ${He}`);
 					if (slave.sexualFlaw === "breeder" && slave.preg > 0) {
 						r.push(`enjoys`);
-- 
GitLab