From f0282f90d6077bf5b382257c345617d6a1dce22e Mon Sep 17 00:00:00 2001
From: Pregmodder <pregmodder@gmail.com>
Date: Sun, 20 Sep 2020 15:27:33 -0400
Subject: [PATCH] cleanup

---
 src/endWeek/saRecruitGirls.js | 33 +++++++++++++++------------------
 1 file changed, 15 insertions(+), 18 deletions(-)

diff --git a/src/endWeek/saRecruitGirls.js b/src/endWeek/saRecruitGirls.js
index 74c447b1d97..f24e45ff494 100644
--- a/src/endWeek/saRecruitGirls.js
+++ b/src/endWeek/saRecruitGirls.js
@@ -150,7 +150,7 @@ App.SlaveAssignment.recruitGirls = (function() {
 
 			r.push(App.SlaveAssignment.serveThePublic(slave));
 
-			let influence = Math.clamp((hashSum(V.lastWeeksRepIncome) - (hashSum(V.lastWeeksRepIncome))) * 0.01, 1, 3 + V.recruiterIOUs);
+			const influence = Math.clamp((hashSum(V.lastWeeksRepIncome) - (hashSum(V.lastWeeksRepIncome))) * 0.01, 1, 3 + V.recruiterIOUs);
 			V.recruiterIOUs = 0;
 
 			if (arcology.FSSubjugationist !== "unset") {
@@ -626,9 +626,11 @@ App.SlaveAssignment.recruitGirls = (function() {
 				if (targetArcology.FSRestart !== "unset") {
 					r.push(`${He} advances Eugenics there by congratulating high class couples while completely ignoring everyone`);
 					if (slave.belly < 1500 && !canGetPregnant(slave)) {
-						r.push(`else, and by showing off ${his} baby-free body.`);
+						r.push(`else, and by showing off ${his} baby-free body`);
 						if (slave.pregKnown === 1) {
-							r.push(`else (even though ${he}'s hiding ${his} own pregnancy).`);
+							r.push(`body (even though ${he}'s hiding ${his} own pregnancy).`);
+						} else {
+							r.push(`body.`);
 						}
 						targetArcology.FSRestart++;
 					} else {
@@ -638,9 +640,11 @@ App.SlaveAssignment.recruitGirls = (function() {
 				} else if (targetArcology.FSRepopulationFocus !== "unset") {
 					r.push(`${He} challenges Repopulationism there by harshly judging every gravid girl ${he} sees while showering praise on the high`);
 					if (slave.belly < 1500 && !canGetPregnant(slave)) {
-						r.push(`class, and by showing off ${his} baby-free body.`);
+						r.push(`class, and by showing off ${his} baby-free`);
 						if (slave.pregKnown === 1) {
-							r.push(`class (even though ${he}'s hiding ${his} own pregnancy).`);
+							r.push(`body (even though ${he}'s hiding ${his} own pregnancy).`);
+						} else {
+							r.push(`body.`);
 						}
 						targetArcology.FSRepopulationFocus--;
 					} else {
@@ -897,10 +901,10 @@ App.SlaveAssignment.recruitGirls = (function() {
 	function idlePublicity(slave) {
 		// submitted by FireDrops
 
-		let FSmatch;
-		let FSdefend;
-		let FSIntMod;
-		let seed;
+		let FSmatch = 0; // FSmatch means recruiter's appearance displays FS ideas
+		let FSdefend = 0; // FSdefend is intelligence-based advocation for your FS
+		const FSIntMod = Math.floor(slaveInt / 32);
+		let seed = 0;
 		const modScore = SlaveStatsChecker.modScore(slave);
 
 		r.push(`tries to maintain ${his} network of prospects without promising anyone a space in ${arcology.name}, since you already control`);
@@ -911,7 +915,6 @@ App.SlaveAssignment.recruitGirls = (function() {
 		}
 		r.push(`${his} assigned goal.`);
 
-		seed = 0;
 		seed -= (6 - (6 * slave.skill.entertainment / 100));
 		seed -= (3 - (3 * slave.face / 100));
 		if (slaveInt < -15) {
@@ -921,9 +924,7 @@ App.SlaveAssignment.recruitGirls = (function() {
 			// catches overload from very high entertainment
 			V.recruiterProgress += seed / 10;
 		}
-		if (V.recruiterProgress < 0) {
-			V.recruiterProgress = 0;
-		}
+		Math.max(V.recruiterProgress, 0);
 
 		if (slaveInt > 15) {
 			if (slave.skill.entertainment >= 100) {
@@ -945,13 +946,9 @@ App.SlaveAssignment.recruitGirls = (function() {
 			r.push(`Unfortunately ${he}'s just not smart enough to manage such a delicate balance and some potential slaves inevitably drift away.`);
 		}
 
-		r.push(`${He} uses ${his} extra time and <span class="yellowgreen">recruitment allowance</span> this week to tour the arcology and post to your household's social media accounts more actively than usual, <span class="green">building up your reputation.</span>`);
+		r.push(`${He} uses ${his} extra time and <span class="cash">recruitment allowance</span> this week to tour the arcology and post to your household's social media accounts more actively than usual, <span class="reputation inc">building up your reputation.</span>`);
 
 		seed = 10;
-		FSmatch = 0; // FSmatch means recruiter's appearance displays FS ideas
-		FSdefend = 0; // FSdefend is intelligence-based advocation for your FS
-		FSIntMod = Math.floor(slaveInt / 32);
-
 		if (slave.face > 40) {
 			seed += slave.face * slave.skill.entertainment / 30;
 		} else {
-- 
GitLab