From edaefaf824ead3be794340d2bcef4914ca28d01e Mon Sep 17 00:00:00 2001
From: lowercasedonkey <lowercasedonkey@gmail.com>
Date: Wed, 28 Oct 2020 23:27:59 -0400
Subject: [PATCH] convert reputation

---
 src/endWeek/economics/reputation.js | 160 ++---
 src/uncategorized/economics.tw      |   4 +-
 src/uncategorized/reputation.tw     | 920 ----------------------------
 3 files changed, 83 insertions(+), 1001 deletions(-)
 delete mode 100644 src/uncategorized/reputation.tw

diff --git a/src/endWeek/economics/reputation.js b/src/endWeek/economics/reputation.js
index 693b944541f..4e039d73e65 100644
--- a/src/endWeek/economics/reputation.js
+++ b/src/endWeek/economics/reputation.js
@@ -12,7 +12,7 @@ App.EndWeek.reputation = function() {
 	r.push(`On formal occasions, you are announced as ${PCTitle()}.`);
 	if (V.arcologies[0].FSChattelReligionist !== "unset") {
 		if (V.arcologies[0].FSChattelReligionistCreed === 1) {
-			r.push(`${V.arcologies[0].name} keeps the creed of the V.nicaea.name. The faithful`);
+			r.push(`${V.arcologies[0].name} keeps the creed of the ${V.nicaea.name}. The faithful`);
 			if (V.nicaea.achievement === "slaves") {
 				if (V.slaves.length > 50) {
 					r.push(`<span class="green">strongly approve</span> of the large`);
@@ -56,7 +56,7 @@ App.EndWeek.reputation = function() {
 	}
 	if (V.arcologies.FSRestartDecoration === 100) {
 		_enduringRep = Math.min(_enduringRep + 2000, 13000);
-		r.push(` /* that 13000 is not a typo, it allows for some stacking of FSRestart and FSChattel */`);
+		/* that 13000 is not a typo, it allows for some stacking of FSRestart and FSChattel */
 	}
 	if (V.rep > _enduringRep) {
 		if (V.arcologies[0].FSMaturityPreferentialistLaw === 1) {
@@ -103,17 +103,21 @@ App.EndWeek.reputation = function() {
 		}
 		if (V.arcologies[0].FSChattelReligionistLaw === 1) {
 			if (_repLoss > 100) {
-				_repLoss -= 100, V.PC.degeneracy = 0;
+				_repLoss -= 100;
+				V.PC.degeneracy = 0;
 			} else {
-				_repLoss = 0, V.PC.degeneracy = 0;
+				_repLoss = 0;
+				V.PC.degeneracy = 0;
 			}
 			r.push(`Since you are the Prophet, your reputation degrades less.`);
 		}
 		if (V.arcologies[0].FSRestartDecoration === 100) {
 			if (_repLoss > 100) {
-				_repLoss -= 100, V.PC.degeneracy = 0;
+				_repLoss -= 100;
+				V.PC.degeneracy = 0;
 			} else {
-				_repLoss = 100, V.PC.degeneracy = 0;
+				_repLoss = 100;
+				V.PC.degeneracy = 0;
 			}
 			r.push(`Since you are an established member of the Societal Elite, your public reputation degrades less.`);
 		}
@@ -144,7 +148,7 @@ App.EndWeek.reputation = function() {
 		}
 	}
 
-	/*play games with overflow. Gains are calculated (and then sadly rounded) on previous pages but losses are calculated here, after the overflow happened. Let's borrow from the past.*/
+	/* play games with overflow. Gains are calculated (and then sadly rounded) on previous pages but losses are calculated here, after the overflow happened. Let's borrow from the past.*/
 	if (V.lastWeeksRepExpenses.overflow < 0) {
 		V.rep += Math.abs(V.lastWeeksRepExpenses.overflow);
 		V.lastWeeksRepExpenses.overflow = 0;
@@ -318,14 +322,15 @@ App.EndWeek.reputation = function() {
 	}
 
 	if (V.SF.Toggle && V.SF.Active >= 1 && V.SF.UC.Assign > 0) {
-		//<br>
-		r.push(`Assigning a`);
+		const sfArray = [];
+		sfArray.push(`Assigning a`);
 		if (V.SF.UC.Assign === 1) {
-			r.push(`small`);
+			sfArray.push(`small`);
 		} else {
-			r.push(`large`);
+			sfArray.push(`large`);
 		}
-		r.push(` portion of ${V.SF.Lower} to <span class="green">undercover work, slightly boosts your reputation.</span>`);
+		sfArray.push(`portion of ${V.SF.Lower} to <span class="green">undercover work, slightly boosts your reputation.</span>`);
+		App.Events.addNode(el, sfArray, "div");
 		let _value;
 		if (V.SF.UC.Assign === 1) {
 			_value = V.SF.ArmySize * 0.05;
@@ -333,10 +338,8 @@ App.EndWeek.reputation = function() {
 			_value = V.SF.ArmySize * 0.25;
 		}
 		repX(_value, "specialForces");
-		r.push(` <br>`);
 	} else if (V.SF.FS.BadOutcome === "ISOLATION") {
-		//<br>
-		r.push(`Your citizens are <span class="red">very displeased</span> that you are hosting a legion of heavily armed squatters in your basement.`);
+		r.push(App.UI.DOM.makeElement("div", `Your citizens are <span class="red">very displeased</span> that you are hosting a legion of heavily armed squatters in your basement.`));
 		repX(forceNeg(V.SF.ArmySize + App.SF.upgrades.total()), "specialForces");
 	}
 
@@ -350,7 +353,7 @@ App.EndWeek.reputation = function() {
 			if (V.rep > 15000) {
 				r.push(`Your reputation is so strong that society has accepted your ${V.PC.race}ness despite you being an inferior race.`);
 			} else {
-				r.push(`Society <span class="red">loathes;</span> being lead by an inferior V.PC.race, believing that any other race would make a far better leader than you.`);
+				r.push(`Society <span class="red">loathes;</span> being lead by an inferior ${V.PC.race}, believing that any other race would make a far better leader than you.`);
 				repX(forceNeg(200 * (V.arcologies[0].FSSubjugationist / V.FSLockinLevel)), "PCappearance");
 			}
 		}
@@ -358,23 +361,23 @@ App.EndWeek.reputation = function() {
 
 	if (V.arcologies[0].FSAssetExpansionist !== "unset") {
 		if (V.PC.boobs >= 1400) {
-			r.push(`Society loves enormous breasts and you are no exception; your `);
+			r.push(`Society loves enormous breasts and you are no exception; your`);
 			if (V.PC.boobsImplant > 0) {
 				r.push(`chest balloons`);
 			} else {
 				r.push(`cow tits`);
 			}
-			r.push(` <span class="green">improve</span> your public image.`);
+			r.push(`<span class="green">improve</span> your public image.`);
 			repX(10, "PCappearance");
 		}
 		if (V.PC.butt >= 5) {
-			r.push(`Society loves big butts and you are no exception; your `);
+			r.push(`Society loves big butts and you are no exception; your`);
 			if (V.PC.buttImplant > 0) {
 				r.push(`inflated ass`);
 			} else {
 				r.push(`fat ass`);
 			}
-			r.push(` <span class="green">improves</span> your public image.`);
+			r.push(`<span class="green">improves</span> your public image.`);
 			repX(10, "PCappearance");
 		}
 		if (V.PC.balls >= 9) {
@@ -389,11 +392,11 @@ App.EndWeek.reputation = function() {
 			} else {
 				r.push(`fat tits`);
 			}
-			r.push(` <span class="red">harm</span> your public image.`);
+			r.push(`<span class="red">harm</span> your public image.`);
 			repX(forceNeg((V.PC.boobs / 100) * 3), "PCappearance");
 		}
 		if (V.PC.butt >= 5) {
-			r.push(`Society finds big butts unsightly and you are no exception; your `);
+			r.push(`Society finds big butts unsightly and you are no exception; your`);
 			if (V.PC.buttImplant > 0) {
 				r.push(`inflated ass`);
 			} else {
@@ -560,7 +563,7 @@ App.EndWeek.reputation = function() {
 			FutureSocieties.Change("RomanRevivalist", V.mercenaries);
 		}
 		if (V.slaves.length > 20 && V.cash > 50000) {
-			r.push(`Society <span class="green">strongly approves</span> of your wealth and prosperity, fit goals for the `);
+			r.push(`Society <span class="green">strongly approves</span> of your wealth and prosperity, fit goals for the`);
 			if (V.PC.customTitle) {
 				r.push(`${V.PC.customTitle}`);
 			} else if (V.PC.title === 1) {
@@ -571,7 +574,7 @@ App.EndWeek.reputation = function() {
 			FutureSocieties.Change("RomanRevivalist", 5);
 		}
 		if (V.language !== "Latin") {
-			r.push(`Continuing to use ${V.language} as the lingua franca of V.arcologies[0].name rather than the storied Latin <span class="red">disappoints</span> society and causes doubt about your revivalist project.`);
+			r.push(`Continuing to use ${V.language} as the lingua franca of ${V.arcologies[0].name} rather than the storied Latin <span class="red">disappoints</span> society and causes doubt about your revivalist project.`);
 			FutureSocieties.Change("RomanRevivalist", -2);
 		}
 	} else if (V.arcologies[0].FSAztecRevivalist !== "unset") {
@@ -597,7 +600,7 @@ App.EndWeek.reputation = function() {
 			FutureSocieties.Change("AztecRevivalist", 2);
 		}
 		if (V.language !== "Nahuatl") {
-			r.push(`Continuing to use ${V.language} as the lingua franca of V.arcologies[0].name rather than the revived Nahuatl <span class="red">disappoints</span> society and causes doubt about your revivalist project.`);
+			r.push(`Continuing to use ${V.language} as the lingua franca of ${V.arcologies[0].name} rather than the revived Nahuatl <span class="red">disappoints</span> society and causes doubt about your revivalist project.`);
 			FutureSocieties.Change("AztecRevivalist", -3);
 		}
 	} else if (V.arcologies[0].FSNeoImperialist !== "unset") {
@@ -618,7 +621,7 @@ App.EndWeek.reputation = function() {
 			FutureSocieties.Change("NeoImperialist", 5);
 		}
 		if (V.cash < 1000) {
-			r.push(`Society <span class="red">disapproves</span> of your poverty; it is viewed as completely unbeffiting for an Imperial ruler to have so little cash on hand, and indicative of weakness in your rule.`);
+			r.push(`Society <span class="red">disapproves</span> of your poverty; it is viewed as completely unbefitting for an Imperial ruler to have so little cash on hand, and indicative of weakness in your rule.`);
 			FutureSocieties.Change("NeoImperialist", -2);
 		}
 		if (V.PC.skill.warfare < 0) {
@@ -651,7 +654,7 @@ App.EndWeek.reputation = function() {
 			FutureSocieties.Change("EdoRevivalist", 2);
 		}
 		if (V.language !== "Japanese") {
-			r.push(`Continuing to use ${V.language} as the lingua franca of V.arcologies[0].name rather than pure Japanese <span class="red">disappoints</span> society and causes doubt about your revivalist project.`);
+			r.push(`Continuing to use ${V.language} as the lingua franca of ${V.arcologies[0].name} rather than pure Japanese <span class="red">disappoints</span> society and causes doubt about your revivalist project.`);
 			FutureSocieties.Change("EdoRevivalist", -2);
 		}
 	} else if (V.arcologies[0].FSArabianRevivalist !== "unset") {
@@ -663,7 +666,7 @@ App.EndWeek.reputation = function() {
 			FutureSocieties.Change("ArabianRevivalist", 2);
 		}
 		if (V.language !== "Arabic") {
-			r.push(`Continuing to use ${V.language} as the lingua franca of V.arcologies[0].name rather than the Arabic in which the word of God was passed to Muhammad <span class="red">disappoints</span> society and causes doubt about your revivalist project.`);
+			r.push(`Continuing to use ${V.language} as the lingua franca of ${V.arcologies[0].name} rather than the Arabic in which the word of God was passed to Muhammad <span class="red">disappoints</span> society and causes doubt about your revivalist project.`);
 			FutureSocieties.Change("ArabianRevivalist", -2);
 		}
 	} else if (V.arcologies[0].FSChineseRevivalist !== "unset") {
@@ -689,11 +692,13 @@ App.EndWeek.reputation = function() {
 			FutureSocieties.Change("ChineseRevivalist", 2);
 		}
 		if (V.language !== "Chinese") {
-			r.push(`Continuing to use ${V.language} as the lingua franca of V.arcologies[0].name rather than the Chinese of the Middle Kingdom <span class="red">disappoints</span> society and causes doubt about your revivalist project.`);
+			r.push(`Continuing to use ${V.language} as the lingua franca of ${V.arcologies[0].name} rather than the Chinese of the Middle Kingdom <span class="red">disappoints</span> society and causes doubt about your revivalist project.`);
 			FutureSocieties.Change("ChineseRevivalist", -2);
 		}
 	}
 
+	let _noEugenics;
+	let _yesEugenics;
 	if (V.arcologies[0].FSRepopulationFocus !== "unset") {
 		if (policies.countEugenicsSMRs() > 0) {
 			r.push(`Society <span class="red">disapproves</span> of your policies sterilizing potential mothers. Your insistence on eugenics hinders adoption of your new society.`);
@@ -717,7 +722,7 @@ App.EndWeek.reputation = function() {
 		}
 	}
 
-	if (V.arcologies[0].FSRepopulationFocus !== "unset") && (V.birthsTotal > 0) {
+	if (V.arcologies[0].FSRepopulationFocus !== "unset" && V.birthsTotal > 0) {
 		r.push(`The number of children you've brought into the world <span class="green">pleases</span> your citizens.`);
 		if (V.birthsTotal < 1000) {
 			repX(V.birthsTotal, "PCactions");
@@ -786,14 +791,13 @@ App.EndWeek.reputation = function() {
 		r.push(`your support for marriage between citizens and slaves.`);
 	}
 
+	let _care;
 	if (V.citizenOrphanageTotal > 0) {
 		if (V.arcologies[0].FSPaternalist !== "unset") {
 			r.push(`The public <span class="green">approves</span> of the way you're providing for ${V.citizenOrphanageTotal} of your slaves' children to be raised as citizens.`);
 			FutureSocieties.Change("Paternalist", V.citizenOrphanageTotal);
 			if (V.privateOrphanageTotal > 0) {
-				r.push(`Raising `);
-				V.num(V.privateOrphanageTotal)
-				r.push(` of your slaves' children privately is considered even more <span class="green">impressive.</span>`);
+				r.push(`Raising ${num(V.privateOrphanageTotal)} of your slaves' children privately is considered even more <span class="green">impressive.</span>`);
 				_care = V.privateOrphanageTotal * 2;
 				FutureSocieties.Change("Paternalist", _care);
 			}
@@ -807,9 +811,7 @@ App.EndWeek.reputation = function() {
 		}
 	} else if (V.privateOrphanageTotal > 0) {
 		if (V.arcologies[0].FSPaternalist !== "unset") {
-			r.push(`Raising `);
-			V.num(V.privateOrphanageTotal)
-			r.push(` of your slaves' children privately is considered extremely <span class="green">impressive.</span>`);
+			r.push(`Raising ${num(V.privateOrphanageTotal)} of your slaves' children privately is considered extremely <span class="green">impressive.</span>`);
 			_care = V.privateOrphanageTotal * 2;
 			FutureSocieties.Change("Paternalist", _care);
 		} else if (V.arcologies[0].FSDegradationist !== "unset") {
@@ -817,10 +819,8 @@ App.EndWeek.reputation = function() {
 		}
 	}
 	if (V.breederOrphanageTotal > 0 && V.arcologies[0].FSRepopulationFocus !== "unset") {
-		r.push(`The public <span class="green">approves</span> of the way you've dedicated `);
-		V.num(V.breederOrphanageTotal)
-		r.push(` of your slaves' children to be raised into future breeders.`);
-		_futureBreeders = Math.round(((V.breederOrphanageTotal / 100) + 1));
+		r.push(`The public <span class="green">approves</span> of the way you've dedicated ${num(V.breederOrphanageTotal)} of your slaves' children to be raised into future breeders.`);
+		const _futureBreeders = Math.round(((V.breederOrphanageTotal / 100) + 1));
 		FutureSocieties.Change("RepopulationFocus", _futureBreeders);
 	}
 
@@ -883,88 +883,90 @@ App.EndWeek.reputation = function() {
 		repX(10 * V.SecExp.buildings.propHub.upgrades.fakeNews, "policies");
 	}
 
-	<br>
-		_repGain = hashSum(V.lastWeeksRepIncome), _repLoss = hashSum(V.lastWeeksRepIncome);
+	App.Events.addParagraph(el, r);
+	r = [];
+	const _repGain = hashSum(V.lastWeeksRepIncome);
+	_repLoss = hashSum(V.lastWeeksRepIncome);
 	if (_repGain > _repLoss) {
-			r.push(`<span class="green">Your reputation increased this week.</span>`);
+		r.push(`<span class="green">Your reputation increased this week.</span>`);
 	} else if (_repGain < _repLoss) {
-			r.push(`<span class="red">Your reputation decreased this week.</span>`);
+		r.push(`<span class="red">Your reputation decreased this week.</span>`);
 	}
 
 
 	if (isNaN(V.rep)) {
-			<br><span class="red">Error: rep is outside accepted range, please report this issue</span>
+		r.push(App.UI.DOM.makeElement("p", `Error: rep is outside accepted range, please report this issue`, "red"));
 	}
 
 	if (V.rep > 20000) {
-					r.push(`Your reputation is capped.`);
+		r.push(`Your reputation is capped.`);
 	} else if (V.rep-V.enduringRep > 7500) {
-					r.push(`Your base rate of reputation decay is very high.`);
+		r.push(`Your base rate of reputation decay is very high.`);
 	} else if (V.rep-V.enduringRep > 5000) {
-					r.push(`Your base rate of reputation decay is high.`);
+		r.push(`Your base rate of reputation decay is high.`);
 	} else if (V.rep-V.enduringRep > 2500) {
-					r.push(`Your base rate of reputation decay is moderate.`);
+		r.push(`Your base rate of reputation decay is moderate.`);
 	} else if (V.rep-V.enduringRep > 0) {
-					r.push(`Your base rate of reputation decay is low.`);
+		r.push(`Your base rate of reputation decay is low.`);
 	}
 	if (V.enduringRep >= 10000) {
-					r.push(`Your legend is perfected, reducing reputation decay to its lowest possible level.`);
+		r.push(`Your legend is perfected, reducing reputation decay to its lowest possible level.`);
 		V.enduringRep = 10000;
 	}
 
 	if (V.policies.alwaysSubsidizeRep === 1) {
 		if (V.rep <= 19900) {
-					repX(100, "policies");
+			repX(100, "policies");
 			r.push(`Reputation subsidized as planned.`);
 			if (V.PC.degeneracy > 1) {
-					V.PC.degeneracy -= 1;
+				V.PC.degeneracy -= 1;
 			}
 		} else if (V.PC.degeneracy > 1) {
-					V.PC.degeneracy -= 1;
+			V.PC.degeneracy -= 1;
 			r.push(`Rumors quelled as planned.`);
 		} else {
-					cashX(1000, "policies");
+			cashX(1000, "policies");
 			r.push(`Reputation subsidy reclaimed this week since your reputation is capped.`);
 		}
 	}
 
 	if (V.failedElite > 1) {
-					V.failedElite -= 1;
+		V.failedElite -= 1;
 	}
 	if (V.PC.degeneracy > 1) {
-					V.PC.degeneracy -= 1;
+		V.PC.degeneracy -= 1;
 	}
 
 	if (V.arcologies[0].FSRestartDecoration === 100) {
 		if (V.eugenicsFullControl !== 1) {
 			if (V.failedElite > 300) {
-					r.push(`The Societal Elite <span class="red">are plotting your demise.</span>`);
+				r.push(`The Societal Elite <span class="red">are plotting your demise.</span>`);
 			} else if (V.failedElite > 250) {
-					r.push(`The Societal Elite <span class="red">are openly discussing about your failures.</span> It would be in your best interests to appease them.`);
+				r.push(`The Societal Elite <span class="red">are openly discussing about your failures.</span> It would be in your best interests to appease them.`);
 			} else if (V.failedElite > 200) {
-					r.push(`The Societal Elite <span class="red">are avoiding you.</span> Getting back on their good side is a good idea, lest you want to disappear.`);
+				r.push(`The Societal Elite <span class="red">are avoiding you.</span> Getting back on their good side is a good idea, lest you want to disappear.`);
 			} else if (V.failedElite > 150) {
-					r.push(`The Societal Elite <span class="red">stop their conversations around you.</span> You may want to consider your actions more.`);
+				r.push(`The Societal Elite <span class="red">stop their conversations around you.</span> You may want to consider your actions more.`);
 			} else if (V.failedElite > 100) {
-					r.push(`The Societal Elite <span class="red">seem to dislike you.</span>`);
+				r.push(`The Societal Elite <span class="red">seem to dislike you.</span>`);
 			} else if (V.failedElite > 50) {
-					r.push(`The Societal Elite <span class="red">mutter about you.</span>`);
+				r.push(`The Societal Elite <span class="red">mutter about you.</span>`);
 			} else if (V.failedElite > 0) {
-					r.push(`The Societal Elite <span class="red">question some of your actions.</span>`);
+				r.push(`The Societal Elite <span class="red">question some of your actions.</span>`);
 			} else {
-					r.push(`The Societal Elite hold you in high regards.`);
+				r.push(`The Societal Elite hold you in high regards.`);
 			}
 		} else {
-					r.push(`The Societal Elite can think what they want, they know better than to try and cross you again.`);
+			r.push(`The Societal Elite can think what they want, they know better than to try and cross you again.`);
 		}
 	} else if (V.arcologies[0].FSRestart !== "unset") {
 		if (V.eugenicsFullControl !== 1) {
 			if (V.failedElite > 300) {
-					r.push(`The Societal Elite <span class="red">have departed from your arcology in disgust.</span>`);
+				r.push(`The Societal Elite <span class="red">have departed from your arcology in disgust.</span>`);
 				FutureSocieties.remove("FSRestart");
 				repX(forceNeg(10000), "event");
-				<<set V.eliteFail = random(30,100),
-				r.push(`${V.eliteFailTimer} = 15>>`);
+				V.eliteFail = random(30, 100);
+				V.eliteFailTimer = 15;
 				if (V.eliteFail > V.topClass - 20) {
 					V.eliteFail = V.topClass - 20;
 				}
@@ -972,24 +974,24 @@ App.EndWeek.reputation = function() {
 					V.arcologies[0].prosperity -= random(20, 40);
 				}
 			} else if (V.failedElite > 250) {
-					r.push(`The Societal Elite <span class="red">are openly discussing leaving.</span> It would be in your best interests to appease them.`);
+				r.push(`The Societal Elite <span class="red">are openly discussing leaving.</span> It would be in your best interests to appease them.`);
 			} else if (V.failedElite > 200) {
-					r.push(`The Societal Elite <span class="red">are avoiding you.</span> Getting back on their good side is a good idea, lest you want to disappear.`);
+				r.push(`The Societal Elite <span class="red">are avoiding you.</span> Getting back on their good side is a good idea, lest you want to disappear.`);
 			} else if (V.failedElite > 150) {
-					r.push(`The Societal Elite <span class="red">stop their conversations around you.</span> You may want to consider your actions more.`);
+				r.push(`The Societal Elite <span class="red">stop their conversations around you.</span> You may want to consider your actions more.`);
 			} else if (V.failedElite > 100) {
-					r.push(`The Societal Elite <span class="red">seem to dislike you.</span>`);
+				r.push(`The Societal Elite <span class="red">seem to dislike you.</span>`);
 			} else if (V.failedElite > 50) {
-					r.push(`The Societal Elite <span class="red">mutter about you.</span>`);
+				r.push(`The Societal Elite <span class="red">mutter about you.</span>`);
 			} else if (V.failedElite > 0) {
-					r.push(`The Societal Elite <span class="red">question some of your actions.</span>`);
+				r.push(`The Societal Elite <span class="red">question some of your actions.</span>`);
 			} else {
-					r.push(`The Societal Elite hold you in warm regards.`);
+				r.push(`The Societal Elite hold you in warm regards.`);
 			}
 		} else {
-					r.push(`The Societal Elite can think what they want, they know better than to try and cross you again.`);
+			r.push(`The Societal Elite can think what they want, they know better than to try and cross you again.`);
 		}
 	}
-	App.Event.addParagraph(el, r);
+	App.Events.addParagraph(el, r);
 	return el;
-		};
+};
diff --git a/src/uncategorized/economics.tw b/src/uncategorized/economics.tw
index 49219ca9ba5..4b5464c4c21 100644
--- a/src/uncategorized/economics.tw
+++ b/src/uncategorized/economics.tw
@@ -37,7 +37,7 @@
 	<<include "securityReport">>
 <</if>>
 
-<<include "Reputation">>
+<<includeDOM App.EndWeek.reputation()>>
 <<includeDOM App.EndWeek.personalBusiness()>>
 
 <<if $PC.boobs >= 1000 || $PC.pregKnown == 1 || $playerAging != 0>>
@@ -111,7 +111,7 @@
 
 <div id="Reputation" class="tab-content">
 	<div class="content">
-		<<include "Reputation">>
+		<<includeDOM App.EndWeek.reputation()>>
 	</div>
 </div>
 
diff --git a/src/uncategorized/reputation.tw b/src/uncategorized/reputation.tw
deleted file mode 100644
index 33c014f0a81..00000000000
--- a/src/uncategorized/reputation.tw
+++ /dev/null
@@ -1,920 +0,0 @@
-:: Reputation [nobr]
-
-<<if $useTabs == 0>><br>__Reputation__<</if>>
-<br>
-
-On formal occasions, you are announced as <<= PCTitle()>>.
-
-<<if $arcologies[0].FSChattelReligionist != "unset">>
-	<<if $arcologies[0].FSChattelReligionistCreed == 1>>
-		$arcologies[0].name keeps the creed of the $nicaea.name. The faithful
-		<<if $nicaea.achievement == "slaves">>
-			<<if $slaves.length > 50>>
-				@@.green;strongly approve@@ of the large
-				<<run FutureSocieties.Change("ChattelReligionist", 5)>>
-			<<elseif $slaves.length > 20>>
-				@@.green;approve@@ of the good
-				<<run FutureSocieties.Change("ChattelReligionist", 2)>>
-			<<else>>
-				are not impressed by the
-			<</if>>
-			number of people you're giving the honor of sexual servitude.
-		<<elseif $nicaea.achievement == "devotion">>
-			<<if $averageDevotion > 80>>
-				@@.green;strongly approve@@ of the worshipfulness
-				<<run FutureSocieties.Change("ChattelReligionist", 5)>>
-			<<elseif $averageDevotion > 50>>
-				@@.green;approve@@ of the devotion
-				<<run FutureSocieties.Change("ChattelReligionist", 2)>>
-			<<else>>
-				are not impressed by the devotion
-			<</if>>
-			of your slaves.
-		<<else>>
-			<<if $averageTrust > 50>>
-				@@.green;strongly approve@@ of the great trust your slaves place in you.
-				<<run FutureSocieties.Change("ChattelReligionist", 5)>>
-			<<elseif $averageTrust > 20>>
-				@@.green;approve@@ of the trust your slaves place in you.
-				<<run FutureSocieties.Change("ChattelReligionist", 2)>>
-			<<else>>
-				are not impressed by the fear many of your slaves feel towards you.
-			<</if>>
-		<</if>>
-	<</if>>
-<</if>>
-
-<<set _repDecay = 0.05,
-_enduringRep = $enduringRep>>
-<<if $arcologies.FSChattelReligionistLaw == 1>>
-	<<set _enduringRep = Math.min(_enduringRep + 2000, 12000)>>
-<</if>>
-<<if $arcologies.FSRestartDecoration == 100>>
-	<<set _enduringRep = Math.min(_enduringRep + 2000, 13000)>> /* that 13000 is not a typo, it allows for some stacking of FSRestart and FSChattel */
-<</if>>
-<<if $rep > _enduringRep>>
-	<<if $arcologies[0].FSMaturityPreferentialistLaw == 1>>
-		<<if $PC.actualAge >= 65>>
-			Since you're getting on in years and have an impressive list of accomplishments, and $arcologies[0].name's society respects age, your reputation degrades quite slowly.
-			<<set _repLoss = Math.trunc(($rep-_enduringRep)*(_repDecay-0.0125))>>
-		<<elseif $PC.actualAge >= 50>>
-			Since you're well into middle age and have an impressive list of accomplishments, and $arcologies[0].name's society respects age, your reputation degrades quite slowly.
-			<<set _repLoss = Math.trunc(($rep-_enduringRep)*(_repDecay-0.0125))>>
-		<<elseif $PC.actualAge < 35>>
-			Since you're unusually young for an arcology owner, and $arcologies[0].name's society respects age, your reputation degrades quite quickly.
-			<<set _repLoss = Math.trunc(($rep-_enduringRep)*(_repDecay+0.0125))>>
-		<<else>>
-			Since you're only entering middle age, and $arcologies[0].name's society respects age, your reputation degrades fairly quickly.
-			<<set _repLoss = Math.trunc(($rep-_enduringRep)*(_repDecay))>>
-		<</if>>
-	<<elseif $arcologies[0].FSYouthPreferentialistLaw == 1>>
-		<<if $PC.actualAge >= 65>>
-			Since you're getting on in years and have an impressive list of accomplishments, but $arcologies[0].name's society is coming to prefer youth to experience, so your reputation degrades fairly quickly.
-			<<set _repLoss = Math.trunc(($rep-_enduringRep)*(_repDecay+0.0125))>>
-		<<elseif $PC.actualAge >= 50>>
-			You're well into middle age and have an impressive list of accomplishments, but $arcologies[0].name's society is coming to prefer youth to experience, so your reputation degrades fairly quickly.
-			<<set _repLoss = Math.trunc(($rep-_enduringRep)*(_repDecay+0.0125))>>
-		<<elseif $PC.actualAge < 35>>
-			You're unusually young for an arcology owner, but $arcologies[0].name's society doesn't mind.
-			<<set _repLoss = Math.trunc(($rep-_enduringRep)*(_repDecay))>>
-		<<else>>
-			Since you're entering middle age, and $arcologies[0].name's society respects youth, your reputation degrades fairly quickly.
-			<<set _repLoss = Math.trunc(($rep-_enduringRep)*(_repDecay+0.0125))>>
-		<</if>>
-	<<else>>
-		<<if $PC.actualAge >= 65>>
-			Since you're getting on in years and have an impressive list of accomplishments, and $arcologies[0].name's society respects age, your reputation degrades quite slowly.
-			<<set _repLoss = Math.trunc(($rep-_enduringRep)*(_repDecay-0.0125))>>
-		<<elseif $PC.actualAge >= 50>>
-			Since you're well into middle age and have an impressive list of accomplishments, your reputation degrades fairly slowly.
-			<<set _repLoss = Math.trunc(($rep-_enduringRep)*(_repDecay-0.0125))>>
-		<<elseif $PC.actualAge < 35>>
-			Since you're unusually young for an arcology owner, your reputation degrades fairly quickly.
-			<<set _repLoss = Math.trunc(($rep-_enduringRep)*(_repDecay+0.0125))>>
-		<<else>>
-			<<set _repLoss = Math.trunc(($rep-_enduringRep)*(_repDecay))>>
-		<</if>>
-	<</if>>
-	<<if $arcologies[0].FSChattelReligionistLaw == 1>>
-		<<if _repLoss > 100>>
-			<<set _repLoss -= 100, $PC.degeneracy = 0>>
-		<<else>>
-			<<set _repLoss = 0, $PC.degeneracy = 0>>
-		<</if>>
-		Since you are the Prophet, your reputation degrades less.
-	<</if>>
-	<<if $arcologies[0].FSRestartDecoration == 100>>
-		<<if _repLoss > 100>>
-			<<set _repLoss -= 100, $PC.degeneracy = 0>>
-		<<else>>
-			<<set _repLoss = 100, $PC.degeneracy = 0>>
-		<</if>>
-		Since you are an established member of the Societal Elite, your public reputation degrades less.
-	<</if>>
-	<<if _enduringRep > 8000>>
-		However, you have been a figure of renown for so long that much of your reputation has become permanent.
-	<<elseif _enduringRep > 5000>>
-		However, you have been a figure of repute for enough time that part of your reputation has become permanent.
-	<<elseif _enduringRep > 2000>>
-		However, you have been a figure of regard for long enough that some of your reputation has become permanent.
-	<</if>>
-	<<if _repLoss > 500 * (1 - (5 - $baseDifficulty) / 10)>>
-		<<set _repLoss = 500 * (1 - (5 - $baseDifficulty) / 10)>>
-	<<elseif _repLoss < 0>>
-		<<set _repLoss = 0>>
-	<</if>>
-	<<set $enduringRep += Math.trunc(1 + Math.pow((10000 - $enduringRep) / 5770, 2) * _repLoss * 0.1)>>
-<<else>>
-	<<if $arcologies[0].FSChattelReligionistLaw == 1 || $arcologies[0].FSRestartDecoration == 100>>
-		<<set $PC.degeneracy = 0>>
-	<</if>>
-	<<set _repLoss = 0>>
-	<<if _enduringRep > 8000>>
-		You have been a figure of renown for so long that your reputation does not decay past its present level.
-	<<elseif _enduringRep > 5000>>
-		You have been a figure of repute for enough time that your reputation does not decay past its present level.
-	<<elseif _enduringRep > 2000>>
-		You have been a figure of regard for long enough that your reputation does not decay past its present level.
-	<</if>>
-<</if>>
-
-/*play games with overflow. Gains are calculated (and then sadly rounded) on previous pages but losses are calculated here, after the overflow happened. Let's borrow from the past.*/
-<<if $lastWeeksRepExpenses.overflow < 0>>
-	<<set $rep += Math.abs($lastWeeksRepExpenses.overflow)>>
-	<<set $lastWeeksRepExpenses.overflow = 0>>
-<</if>>
-<<run repX(forceNeg(_repLoss), "multiplier")>>
-
-<<if ($weatherAwareness == 0) && ($weatherCladding == 2)>>
-	The public @@.green;is awestruck@@ of the beautiful weather hardening you have applied to the arcology's exterior, though they do not understand why you would waste so much money first ruining your arcology's appearance before doing this.
-	<<run repX(10, "architecture")>>
-<<elseif ($weatherAwareness == 0) && ($weatherCladding == 1)>>
-	The public @@.red;disapproves@@ of the ugly weather hardening you have applied to the arcology's exterior, not understanding what you're worried about.
-	<<run repX(-100, "architecture")>>
-<</if>>
-
-<<if $arcologies[0].FSRestartDecoration == 100>>
-	As a member of the Societal Elite, your appearance has no bearing on your reputation.
-<<else>>
-	<<if ($PC.dick == 0) && ($PC.boobs >= 300) && $PC.title == 0>>
-		<<if $rep > 18000>>
-			Your reputation is so well-established that society has accepted your notoriously feminine appearance despite how unusual it is for a prominent slaveowner to look like you do.
-			<<if $arcologies[0].FSGenderRadicalist > 30>>
-				Indeed, society sees you as entirely male, since you are powerful, and @@.green;strongly approves@@ of your nonconformity; this advances the redefinition of gender around power.
-				<<run FutureSocieties.Change("GenderRadicalist", 5)>>
-			<<elseif $arcologies[0].FSGenderFundamentalist > 30>>
-				Indeed, society has been reconciled to female leadership, preferring to see you as a mother figure.
-			<</if>>
-		<<elseif $arcologies[0].FSGenderRadicalist > 40>>
-			Society accepts you as an arcology owner, since it has become open-minded about power and gender.
-			<<if $arcologies[0].FSGenderRadicalist > 50>>
-				Indeed, society sees you as fundamentally male, since you are powerful, and @@.green;strongly approves@@ of your audacity; this advances the redefinition of gender around power.
-				<<run FutureSocieties.Change("GenderRadicalist", 5)>>
-			<</if>>
-		<<else>>
-			Most prominent slaveowners are male, and your obviously feminine appearance makes it @@.red;harder for you to maintain your reputation.@@
-			<<run repX(forceNeg(Math.min(($rep*0.05), 500)), "PCappearance")>>
-			<<if $arcologies[0].FSGenderFundamentalist > 10>>
-				Society @@.red;strongly resents@@ your being an arcology owner; this damages the idea that women should not be in positions of responsibility.
-				<<run FutureSocieties.Change("GenderFundamentalist", -5)>>
-			<</if>>
-		<</if>>
-	<<elseif ($PC.boobs >= 300) || $PC.title == 0>>
-		<<if $rep > 15000>>
-			Your reputation is so strong that society has accepted your feminine appearance despite how unusual it is for a prominent slaveowner to look like you do.
-			<<if $arcologies[0].FSGenderRadicalist > 30>>
-				Indeed, society sees you as entirely male, since you are powerful, and @@.green;strongly approves@@ of your nonconformity; this advances the redefinition of gender around power.
-				<<run FutureSocieties.Change("GenderRadicalist", 5)>>
-			<<elseif $arcologies[0].FSGenderFundamentalist > 30>>
-				Indeed, society has been reconciled to your feminine appearance, seeing you as a person apart.
-			<</if>>
-		<<elseif $arcologies[0].FSGenderRadicalist > 20>>
-			Society accepts you as an arcology owner, since it has become open-minded anyone who has a cock and fucks.
-			<<if $arcologies[0].FSGenderRadicalist > 30>>
-				Indeed, society sees you as dominant, since you fuck bitches, and @@.green;strongly approves@@ of your nonconformity; this advances the redefinition of gender around power.
-				<<run FutureSocieties.Change("GenderRadicalist", 5)>>
-			<</if>>
-		<<else>>
-			Most prominent slaveowners are very masculine, and your feminine appearance makes it @@.red;harder for you to maintain your reputation.@@
-			<<run repX(forceNeg(Math.min(($rep*0.025), 250)), "PCappearance")>>
-			<<if $arcologies[0].FSGenderFundamentalist > 30>>
-				Society @@.red;strongly resents@@ your being an arcology owner; this damages the idea that feminine people should not be in positions of responsibility.
-				<<run FutureSocieties.Change("GenderFundamentalist", -5)>>
-			<</if>>
-		<</if>>
-	<<elseif ($PC.dick == 0) || ($PC.vagina != -1)>>
-		<<if $rep > 15000>>
-			Your reputation is so strong that society has accepted your unorthodox arrangement downstairs, for an arcology owner.
-			<<if $arcologies[0].FSGenderRadicalist > 30>>
-				Indeed, society sees you as entirely male, since you are powerful, and @@.green;strongly approves@@ of your nonconformity; this advances the redefinition of gender around power.
-				<<run FutureSocieties.Change("GenderRadicalist", 5)>>
-			<<elseif $arcologies[0].FSGenderFundamentalist > 30>>
-				Indeed, society has been reconciled to your strangeness, seeing you as a person apart.
-			<</if>>
-		<<elseif $arcologies[0].FSGenderRadicalist > 20>>
-			Society accepts you as an arcology owner, since it has become open-minded about the exact genital layout of powerful people.
-			<<if $arcologies[0].FSGenderRadicalist > 30>>
-				Indeed, society sees you as dominant, since you are powerful, and @@.green;strongly approves@@ of your nonconformity; this advances the redefinition of gender around power.
-				<<run FutureSocieties.Change("GenderRadicalist", 5)>>
-			<</if>>
-		<<else>>
-			Most prominent slaveowners are very masculine, and though your unorthodox arrangement downstairs isn't obvious when you're clothed, the rumors are unavoidable and it's @@.red;harder for you to maintain your reputation.@@
-			<<run repX(forceNeg(Math.min(($rep*0.025), 250)), "PCappearance")>>
-			<<if $arcologies[0].FSGenderFundamentalist > 30>>
-				Society @@.red;strongly resents@@ your being an arcology owner; this damages the idea that people who are not men should not be in positions of responsibility.
-				<<run FutureSocieties.Change("GenderFundamentalist", -5)>>
-			<</if>>
-		<</if>>
-	<</if>>
-<</if>>
-
-/* height block here */
-
-<<if $arcologies[0].FSChattelReligionistLaw == 1 || $arcologies[0].FSRestartDecoration == 100>>
-	/* already handled above */
-<<elseif $arcologies[0].FSIntellectualDependency != "unset">>
-	<<if $PC.intelligence+$PC.intelligenceImplant < -10>>
-		<<if $rep > 18000>>
-			You've somehow built such a reputation for yourself that your lack of a brain is no longer a societal concern.
-		<<else>>
-			<<run repX(forceNeg(Math.min(($rep*0.025), 100)), "PCappearance")>>
-			Society @@.red;is uncomfortable@@ with just how slow you are. While they may find your mannerisms cute, it is not befitting of a leader.
-		<</if>>
-	<</if>>
-<<elseif $arcologies[0].FSSlaveProfessionalism != "unset">>
-	<<if $PC.intelligence+$PC.intelligenceImplant < 100>>
-		<<if $rep > 18000>>
-			You've built such a reputation for yourself that you not being a genius is no longer a societal concern.
-		<<else>>
-			<<run repX(forceNeg(Math.min(($rep*0.05), 750)), "PCappearance")>>
-			Society @@.red;strongly despises@@ being led by someone so easily outsmarted by even the slave population.
-			<<run FutureSocieties.Change("SlaveProfessionalism", -10)>>
-		<</if>>
-	<</if>>
-<<elseif $PC.intelligence+$PC.intelligenceImplant <= 10>>
-	<<if $rep > 18000>>
-		You've managed to build such a reputation for yourself that your lack of intelligence is no longer a societal concern.
-	<<else>>
-		<<run repX(forceNeg(Math.min(($rep*0.05), 750)), "PCappearance")>>
-		Society @@.red;is uncomfortable@@ being led by someone not smart. Your lack of intelligence brings your every action under scrutiny.
-	<</if>>
-<<elseif $PC.intelligence+$PC.intelligenceImplant <= 50>>
-	<<if $rep > 12000>>
-		You've built such a reputation for yourself that your lack of intelligence is no longer a societal concern.
-	<<else>>
-		<<run repX(forceNeg(Math.min(($rep*0.05), 500)), "PCappearance")>>
-		Society @@.red;is uncomfortable@@ being led by someone not very smart. Your lack of intelligence brings your every action under scrutiny.
-	<</if>>
-<</if>>
-
-<<if $policies.sexualOpenness == 1>>
-	<<if $arcologies[0].FSChattelReligionistLaw == 1 || $arcologies[0].FSRestartDecoration == 100>>
-		/* already handled above */
-	<<else>>
-		<<if $arcologies[0].FSGenderRadicalist != "unset">>
-			<<if $rep > 18000>>
-				You are so well regarded that society has acquiesced that getting penetrated is not a sure sign of femininity.
-			<<else>>
-				Society views getting fucked as sign of femininity and is @@.red;strongly against your sexual preferences.@@
-				<<run FutureSocieties.Change("GenderRadicalist", -1)>>
-				<<run repX(-1000, "PCactions")>>
-			<</if>>
-		<<elseif $arcologies[0].FSGenderFundamentalist != "unset" && $PC.vagina != -1 && $PC.title == 0>>
-			<<if $rep > 10000>>
-				Society has grown accustomed to your efforts enough to not care that you enjoy slave dick. In fact, it even @@.green;strengthens@@ traditional gender roles, even though you insist on breaking them.
-				<<run FutureSocieties.Change("GenderFundamentalist", 1)>>
-			<<else>>
-				Society wonders if you would be happier in a whore house getting fucked all day instead of trying to lead an arcology. Your efforts @@.red;strongly support@@ the idea that women should not be in positions of responsibility.
-				<<run FutureSocieties.Change("GenderFundamentalist", -3)>>
-				<<run repX(-1000, "PCactions")>>
-			<</if>>
-		<<else>>
-			<<if $rep > 15000>>
-				You are so well liked that society has accepted that you enjoy taking everything a slave has to offer.
-			<<else>>
-				Society finds your penchant for taking slave dick @@.red;very distasteful@@ for a slaveowner.
-				<<run repX(-500, "PCactions")>>
-			<</if>>
-		<</if>>
-	<</if>>
-<</if>>
-
-<<if $secExpEnabled > 0>>
-	<<if $SecExp.smilingMan.progress === 20>>
-		The grim statue of the Smiling Man outside your arcology @@.green;reminds the world of who managed to eliminate such a threat.@@
-		<<run repX(100, "architecture")>>
-	<</if>>
-
-	<<if $SecExp.edicts.weaponsLaw == 3>>
-		The absence of any kind of restriction on weaponry within your arcology is @@.green;welcomed by your citizens@@ as sign of your respect for the ideals the Free Cities stand for.
-		<<run repX(20, "edicts")>>
-	<</if>>
-<</if>>
-
-<<if $SF.Toggle && $SF.Active >= 1 && $SF.UC.Assign > 0>>
-	<br>Assigning a <<if $SF.UC.Assign === 1>>small<<else>>large<</if>> portion of $SF.Lower to @@.green;undercover work, slightly boosts your reputation.@@
-	<<if $SF.UC.Assign === 1>>
-		<<set _value = $SF.ArmySize * 0.05>>
-	<<else>>
-		<<set _value = $SF.ArmySize * 0.25>>
-	<</if>>
-	<<run repX(_value, "specialForces")>> <br>
-<<elseif $SF.FS.BadOutcome === "ISOLATION">>
-	<br>Your citizens are @@.red;very displeased@@ that you are hosting a legion of heavily armed squatters in your basement.
-	<<run repX(forceNeg($SF.ArmySize + App.SF.upgrades.total()), "specialForces")>>
-<</if>>
-
-<<if $arcologies[0].FSSupremacist != "unset">>
-	<<if ($PC.race == $arcologies[0].FSSupremacistRace)>>
-		Since you are a member of the $PC.race race, society @@.green;strongly approves@@ of your ownership of the arcology.
-		<<run FutureSocieties.Change("Supremacist", 5)>>
-	<</if>>
-<<elseif $arcologies[0].FSSubjugationist != "unset">>
-	<<if ($PC.race == $arcologies[0].FSSubjugationistRace)>>
-		<<if $rep > 15000>>
-			Your reputation is so strong that society has accepted your <<print $PC.race>>ness despite you being an inferior race.
-		<<else>>
-			Society @@.red;loathes;@@ being lead by an inferior $PC.race, believing that any other race would make a far better leader than you.
-			<<run repX(forceNeg(200*($arcologies[0].FSSubjugationist/$FSLockinLevel)), "PCappearance")>>
-		<</if>>
-	<</if>>
-<</if>>
-
-<<if $arcologies[0].FSAssetExpansionist != "unset">>
-	<<if $PC.boobs >= 1400>>
-		Society loves enormous breasts and you are no exception; your <<if $PC.boobsImplant > 0>>chest balloons<<else>>cow tits<</if>> @@.green;improve@@ your public image.
-		<<run repX(10, "PCappearance")>>
-	<</if>>
-	<<if $PC.butt >= 5>>
-		Society loves big butts and you are no exception; your <<if $PC.buttImplant > 0>>inflated ass<<else>>fat ass<</if>> @@.green;improves@@ your public image.
-		<<run repX(10, "PCappearance")>>
-	<</if>>
-	<<if $PC.balls >= 9>>
-		Society loves big things and the bulge in your crotch is no exception; your swollen balls @@.green;improve@@ your public image.
-		<<run repX((5*$PC.ballsImplant), "PCappearance")>>
-	<</if>>
-<<elseif $arcologies[0].FSSlimnessEnthusiast != "unset">>
-	<<if $PC.boobs >= 1000>>
-		Society finds big breasts unsightly and you are no exception; your <<if $PC.boobsImplant > 0>>chest balloons<<else>>fat tits<</if>> @@.red;harm@@ your public image.
-		<<run repX(forceNeg(($PC.boobs/100)*3), "PCappearance")>>
-	<</if>>
-	<<if $PC.butt >= 5>>
-		Society finds big butts unsightly and you are no exception; your <<if $PC.buttImplant > 0>>inflated ass<<else>>fat ass<</if>> @@.red;harms@@ your public image.
-		<<run repX(forceNeg(10*$PC.butt), "PCappearance")>>
-	<</if>>
-<</if>>
-
-<<if $arcologies[0].FSTransformationFetishist != "unset">>
-	<<if $PC.boobsImplant > 0>>
-		Society loves fake breasts and yours are no exception; your breast implants @@.green;improve@@ your public image.
-		<<run repX(($PC.boobsImplant/5), "PCappearance")>>
-	<</if>>
-	<<if $PC.buttImplant > 0>>
-		Society loves fake butts and yours are no exception; your ass implants @@.green;improve@@ your public image.
-		<<run repX((7*$PC.buttImplant), "PCappearance")>>
-	<</if>>
-	<<if $PC.ballsImplant > 0>>
-		Society loves everything augmented and the bulge in your crotch is no exception; your swollen balls @@.green;improve@@ your public image.
-		<<run repX((5*($PC.ballsImplant)), "PCappearance")>>
-	<</if>>
-	<<if ($arcologies[0].FSRepopulationFocus != "unset")>>
-		<<if $PC.boobs >= 1000 && $PC.boobsImplant == 0>>
-			Society approves of anything that helps the repopulation efforts. Your large breasts promise plentiful milk and @@.green;improve@@ your public image.
-			<<run repX(($PC.boobs/50), "PCappearance")>>
-		<</if>>
-		<<if $PC.balls >= 5>>
-			Society loves anything that helps the repopulation efforts. Your huge fertile balls indicate that you're a successful breeder and @@.green;strongly improves@@ your public image.
-			<<run repX((15*$PC.balls), "PCappearance")>>
-		<</if>>
-	<</if>>
-<<elseif $arcologies[0].FSBodyPurist != "unset">>
-	<<if $PC.boobsImplant != 0>>
-		Society finds fake breasts repulsive and yours are no exception; your balloon-like breasts @@.red;harm@@ your public image.
-		<<run repX(forceNeg($PC.boobsImplant/10), "PCappearance")>>
-	<</if>>
-	<<if $PC.buttImplant > 0>>
-		Society finds fake butts unsightly and yours is no exception; your inflated ass @@.red;harms@@ your public image.
-		<<run repX(forceNeg(10*$PC.buttImplant), "PCappearance")>>
-	<</if>>
-	<<if $PC.ballsImplant > 0>>
-		Society finds everything unnatural disgusting and the grotesque bulge in your crotch is no exception; your gel filled balls @@.red;harm@@ your public image.
-		<<run repX(forceNeg(10*$PC.ballsImplant), "PCappearance")>>
-	<</if>>
-	<<if ($arcologies[0].FSRepopulationFocus != "unset") && $PC.boobs >= 1000 && $PC.boobsImplant == 0>>
-		Society approves of anything that helps the repopulation efforts. Your large breasts promise plentiful milk and @@.green;improve@@ your public image.
-		<<run repX(($PC.boobs/50), "PCappearance")>>
-	<</if>>
-<<elseif ($arcologies[0].FSRepopulationFocus != "unset")>>
-	<<if $PC.boobs >= 1000 && $PC.boobsImplant == 0>>
-		Society approves of anything that helps the repopulation efforts. Your large breasts promise plentiful milk and @@.green;improve@@ your public image.
-		<<run repX(($PC.boobs/50), "PCappearance")>>
-	<</if>>
-	<<if $PC.balls >= 5>>
-		Society loves anything that helps the repopulation efforts. Your huge fertile balls indicate that you're a successful breeder and @@.green;strongly improves@@ your public image.
-		<<run repX((5*($PC.balls)), "PCappearance")>>
-	<</if>>
-<</if>>
-
-<<if (($PC.belly >= 1500) || ($PC.career == "escort" && $PC.belly >= 500)) && $PC.preg > 0>>
-	<<if $arcologies[0].FSRestart != "unset">>
-		<<if $arcologies[0].FSRestartDecoration == 100>>
-			<<if $PC.pregSource != -1 && $PC.pregSource != -6>>
-				Most prominent female owners avoid being penetrated on
-				<<if $policies.sexualOpenness == 1>>
-					principle, though you choose the opposite; your fecund figure suggests a slave knocked you up, a huge
-				<<else>>
-					principle; your fecund figure exposes not only your willingness to be penetrated, but your
-				<</if>>
-				breach of eugenics. Your citizens are @@.red;livid@@ over your actions and are calling for your removal.
-				<<run repX(-500, "PCactions")>>
-				<<if $eugenicsFullControl != 1>>
-					<<set $failedElite += 100>>
-				<</if>>
-			<<else>>
-				Since it is public knowledge that you are carrying a child in the name of eugenics, society views you as a bearer of the future and @@.green;celebrates@@ your contributions to society.
-				<<run repX(200, "PCappearance")>>
-				<<set $failedElite -= 10>>
-			<</if>>
-		<<else>>
-			<<if $PC.pregSource != -1 && $PC.pregSource != -6>>
-				Most prominent female owners avoid being penetrated on
-				<<if $policies.sexualOpenness == 1>>
-					principle, though you choose the opposite; your fecund figure suggests a slave knocked you up, a huge
-				<<else>>
-					principle; your fecund figure exposes not only your willingness to be penetrated, but your
-				<</if>>
-				breach of the eugenics you are pushing for. Your citizens are @@.red;disgusted@@ by both your body and your lack of commitment.
-				<<run repX(-500, "PCactions")>>
-				<<if $eugenicsFullControl != 1>>
-					<<set $failedElite += 50>>
-				<</if>>
-			<<else>>
-				Since it is public knowledge that you are carrying a child in the name of eugenics, society views you as a bearer of modernity and @@.green;commends@@ your contributions to society.
-				<<run repX(200, "PCappearance")>>
-				<<set $failedElite -= 5>>
-			<</if>>
-		<</if>>
-	<<elseif $arcologies[0].FSRepopulationFocus >= 60>>
-		Most prominent female owners avoid being penetrated on principle, but your arcology values motherhood so much that it is more @@.green;pleased@@ with your dedication than it is disappointed in your
-		<<if $policies.sexualOpenness == 1>>
-			suspected slave baby.
-		<<else>>
-			penetration.
-		<</if>>
-		<<run repX(10, "PCappearance")>>
-	<<else>>
-		Most prominent female owners avoid being penetrated on
-		<<if $policies.sexualOpenness == 1>>
-			principle, though you choose the opposite; your fecund figure suggests a slave knocked you up,
-		<<else>>
-			principle; your fecund figure exposes your willingness to be penetrated,
-		<</if>>
-		making it @@.red;harder for you to maintain your reputation.@@
-		<<run repX(-200, "PCactions")>>
-	<</if>>
-<</if>>
-
-<<if $PC.career == "escort" && $rep < 16000>>
-	Society @@.red;frowns@@ over being run by an ex-whore. The presence of porn of you on the net doesn't aid your reputation either.
-	<<run repX(forceNeg(Math.min(($rep*0.05), 500)), "PCactions")>>
-<<elseif $PC.career == "escort">>
-	Your reputation is so strong that society has accepted your previous endeavors despite how unusual it is for a prominent slaveowner to have once nearly been a slave.
-<</if>>
-<<if $PC.career == "servant" && $rep < 12000>>
-	Society @@.red;frowns@@ over being run by an ex-<<if $PC.title == 1>>butler<<else>>maid<</if>>, despite how prominent their previous owner was.
-	<<run repX(forceNeg(Math.min(($rep*0.05), 500)), "PCactions")>>
-<<elseif $PC.career == "servant">>
-	Your reputation is so strong that society has accepted your previous vocation despite how unusual it is for a prominent slaveowner to have once been nothing more than a lowly servant.
-<</if>>
-<<if $PC.career == "gang" && $rep < 15000>>
-	Society @@.red;frowns@@ over being run by an ex-gang leader, no matter how strong they might have been.
-	<<run repX(forceNeg(Math.min(($rep*0.05), 500)), "PCactions")>>
-<<elseif $PC.career == "BlackHat" && $rep < 15000>>
-	Society @@.red;dislikes@@ being run by someone so capable of dredging up secrets, especially when they used to do it for the highest bidder.
-	<<run repX(forceNeg(Math.min(($rep*0.05), 500)), "PCactions")>>
-<<elseif $PC.career == "gang" || $PC.career == "BlackHat">>
-	Your reputation is strong enough that society has come to accept your background as part of your image.
-<</if>>
-
-<<if $PCSlutContacts == 2>>
-	You are actively starring in pornographic videos. While they are rather exclusive, @@.red;some still leak out to the public,@@ harming your image.
-	<<run repX(-50, "PCactions")>>
-	<<if canGetPregnant($PC)>>
-		That's not all that leaks out of you, considering all your shoots are rubber free.
-		<<= knockMeUp($PC, 20, 0, -5, 1)>>
-	<</if>>
-<</if>>
-
-<<if $arcologies[0].FSRomanRevivalist != "unset">>
-	<<if $mercenaries > 0>>
-		Society @@.green;approves@@ of how you are providing for the defense of the state, as should all citizens of the new Rome.
-		<<run FutureSocieties.Change("RomanRevivalist", $mercenaries)>>
-	<</if>>
-		<<if ($slaves.length > 20) && ($cash > 50000)>>
-		Society @@.green;strongly approves@@ of your wealth and prosperity, fit goals for the <<if def $PC.customTitle>>$PC.customTitle<<elseif $PC.title == 1>>new Roman man<<else>>rising Roman lady<</if>>.
-		<<run FutureSocieties.Change("RomanRevivalist", 5)>>
-	<</if>>
-	<<if $language != "Latin">>
-		Continuing to use $language as the lingua franca of $arcologies[0].name rather than the storied Latin @@.red;disappoints@@ society and causes doubt about your revivalist project.
-		<<run FutureSocieties.Change("RomanRevivalist", -2)>>
-	<</if>>
-<<elseif $arcologies[0].FSAztecRevivalist != "unset">>
-	<<if $PC.visualAge >= 35>>
-		Society @@.green;approves@@ of your advancing age, which advances the ancient Aztec ideal of an experienced leader of the people.
-		<<run FutureSocieties.Change("AztecRevivalist", 1)>>
-	<</if>>
-	<<if $HeadGirlID == 0>>
-		Society @@.red;disapproves@@ of you not having a Head Girl as an advisor and assistant.
-		<<run FutureSocieties.Change("AztecRevivalist", -2)>>
-	<<else>>
-		Society @@.green;approves@@ of your reliance on a Head Girl as an advisor and assistant.
-		<<run FutureSocieties.Change("AztecRevivalist", 2)>>
-	<</if>>
-	<<if $PC.skill.warfare < 0>>
-		Society @@.red;greatly disapproves@@ of your feebleness in the arts of war.
-		<<run FutureSocieties.Change("AztecRevivalist", -4)>>
-	<<elseif $PC.skill.warfare < 50>>
-		Society @@.red;disapproves@@ of you not being properly trained in the arts of war.
-		<<run FutureSocieties.Change("AztecRevivalist", -2)>>
-	<<else>>
-		Society @@.green;approves@@ of having a leader that is trained in the arts of war.
-		<<run FutureSocieties.Change("AztecRevivalist", 2)>>
-	<</if>>
-	<<if $language != "Nahuatl">>
-		Continuing to use $language as the lingua franca of $arcologies[0].name rather than the revived Nahuatl @@.red;disappoints@@ society and causes doubt about your revivalist project.
-		<<run FutureSocieties.Change("AztecRevivalist", -3)>>
-	<</if>>
-	<<elseif $arcologies[0].FSNeoImperialist != "unset">>
-	<<if $mercenaries > 0>>
-		Society @@.green;approves@@ of your strong militarism and elite mercenaries, as your tradition of Imperial conquest glorifies military success above all else.
-		<<run FutureSocieties.Change("NeoImperialist", $mercenaries)>>
-	<</if>>
-		<<if ($slaves.length > 20) && ($cash > 50000)>>
-		Society @@.green;strongly approves@@ of your great wealth and prosperity, as is only fitting for an <<if def $PC.customTitle>>$PC.customTitle<<elseif $PC.title == 1>>proper Imperial noble<<else>>graceful Imperial noble<</if>>.
-		<<run FutureSocieties.Change("NeoImperialist", 5)>>
-	<</if>>
-	<<if ($cash < 1000)>>
-		Society @@.red;disapproves@@ of your poverty; it is viewed as completely unbeffiting for an Imperial ruler to have so little cash on hand, and indicative of weakness in your rule.
-		<<run FutureSocieties.Change("NeoImperialist", -2)>>
-	<</if>>
-	<<if $PC.skill.warfare < 0>>
-		Society @@.red;greatly disapproves@@ of your weakness in combat. The core duty of any Imperial noble is to fight, and your failure to understand the art of war is an unacceptable weakness.
-		<<run FutureSocieties.Change("NeoImperialist", -4)>>
-	<<elseif $PC.skill.warfare < 50>>
-		Society @@.red;disapproves@@ of you lacking training in the art of warfare, as fighting is a core duty of any Imperial noble.
-		<<run FutureSocieties.Change("NeoImperialist", -2)>>
-	<<else>>
-		Society @@.green;approves@@ of having a leader who is a capable warrior. Your strength in battle is seen proof of your indisputable right to rule.
-		<<run FutureSocieties.Change("NeoImperialist", 2)>>
-	<</if>>
-<<elseif $arcologies[0].FSEgyptianRevivalist != "unset">>
-	<<set _racialVarieties = new Set($slaves.map((s) => s.race))>>
-	<<if _racialVarieties.size > 4>>
-		Society @@.green;strongly approves@@ of how you own a cornucopia of different races, which advances the ancient Egyptian ideal of cosmopolitan sex slavery.
-		<<run FutureSocieties.Change("EgyptianRevivalist", 5)>>
-	<</if>>
-	<<if $language != "Ancient Egyptian">>
-		Continuing to use $language as the lingua franca of $arcologies[0].name rather than revived Ancient Egyptian @@.red;disappoints@@ society and causes doubt about your revivalist project.
-		<<run FutureSocieties.Change("EgyptianRevivalist", -2)>>
-	<</if>>
-<<elseif $arcologies[0].FSEdoRevivalist != "unset">>
-	<<set _threshold = Math.trunc($rep/2000)>>
-	<<if $publicServants <= _threshold>>
-		Society @@.red;disapproves@@ of your failure to provide for cultural development by offering public servants or club slaves in a number that befits your reputation.
-		<<run FutureSocieties.Change("EdoRevivalist", -2)>>
-	<<else>>
-		Society @@.green;approves@@ of your provision for cultural development by offering public servants and club slaves in a number that befits your reputation.
-		<<run FutureSocieties.Change("EdoRevivalist", 2)>>
-	<</if>>
-	<<if $language != "Japanese">>
-		Continuing to use $language as the lingua franca of $arcologies[0].name rather than pure Japanese @@.red;disappoints@@ society and causes doubt about your revivalist project.
-		<<run FutureSocieties.Change("EdoRevivalist", -2)>>
-	<</if>>
-<<elseif $arcologies[0].FSArabianRevivalist != "unset">>
-	<<if $fuckSlaves < $rep/3500>>
-		Society @@.red;disapproves@@ of the small size of your harem, feeling that you do not have enough fucktoys or slaves in your master suite for your reputation.
-		<<run FutureSocieties.Change("ArabianRevivalist", -2)>>
-	<<else>>
-		Society @@.green;approves@@ of the size of your harem, feeling that you have a good number of fucktoys and slaves in your master suite for your reputation.
-		<<run FutureSocieties.Change("ArabianRevivalist", 2)>>
-	<</if>>
-	<<if $language != "Arabic">>
-		Continuing to use $language as the lingua franca of $arcologies[0].name rather than the Arabic in which the word of God was passed to Muhammad @@.red;disappoints@@ society and causes doubt about your revivalist project.
-		<<run FutureSocieties.Change("ArabianRevivalist", -2)>>
-	<</if>>
-<<elseif $arcologies[0].FSChineseRevivalist != "unset">>
-	<<if $HeadGirlID == 0>>
-		Society @@.red;disapproves@@ of your failure to rely on a Head Girl, as proper imperial administration requires,
-		<<run FutureSocieties.Change("ChineseRevivalist", -2)>>
-	<<else>>
-		Society @@.green;approves@@ of your reliance on a Head Girl, as proper imperial administration requires,
-		<<run FutureSocieties.Change("ChineseRevivalist", 2)>>
-	<</if>>
-	<<if $RecruiterID == 0>>
-		@@.red;disapproves@@ of your failure to maintain a Recruiter to expand the Middle Kingdom,
-		<<run FutureSocieties.Change("ChineseRevivalist", -2)>>
-	<<else>>
-		@@.green;approves@@ of your maintaining a Recruiter to expand the Middle Kingdom,
-		<<run FutureSocieties.Change("ChineseRevivalist", 2)>>
-	<</if>>
-	<<if $BodyguardID === 0>>
-		and @@.red;disapproves@@ of your failure to keep a Bodyguard as befits a proper imperial palace.
-		<<run FutureSocieties.Change("ChineseRevivalist", -2)>>
-	<<else>>
-		and @@.green;approves@@ of your keeping a Bodyguard, as befits a proper imperial palace.
-		<<run FutureSocieties.Change("ChineseRevivalist", 2)>>
-	<</if>>
-	<<if $language != "Chinese">>
-		Continuing to use $language as the lingua franca of $arcologies[0].name rather than the Chinese of the Middle Kingdom @@.red;disappoints@@ society and causes doubt about your revivalist project.
-		<<run FutureSocieties.Change("ChineseRevivalist", -2)>>
-	<</if>>
-<</if>>
-
-<<if ($arcologies[0].FSRepopulationFocus != "unset")>>
-	<<if policies.countEugenicsSMRs() > 0>>
-		Society @@.red;disapproves@@ of your policies sterilizing potential mothers. Your insistence on eugenics hinders adoption of your new society.
-		<<set _noEugenics = -1 * policies.countEugenicsSMRs()>>
-		<<run FutureSocieties.Change("RepopulationFocus", _noEugenics)>>
-	<</if>>
-<<elseif $arcologies[0].FSPaternalist != "unset">>
-	<<if policies.countEugenicsSMRs() > 0>>
-		Society @@.red;disapproves@@ of your policies forcefully sterilizing slaves, especially when they snuff out the life growing within them.
-		<<set _noEugenics = -1 * policies.countEugenicsSMRs()>>
-		<<run FutureSocieties.Change("Paternalist", _noEugenics)>>
-	<</if>>
-<<elseif ($arcologies[0].FSRestart != "unset") && $arcologies[0].FSPaternalist == "unset">>
-	<<if policies.countEugenicsSMRs() > 0 && $arcologies[0].FSRestartSMR != 1>>
-		Society @@.green; approves@@ of your slave eugenics policies, easing them into more thorough eugenics.
-		<<set _yesEugenics = policies.countEugenicsSMRs()>>
-		<<run FutureSocieties.Change("Eugenics", _yesEugenics)>>
-		<<set $failedElite -= (1 * policies.countEugenicsSMRs())>>
-	<<elseif $arcologies[0].FSRestartSMR == 1>>
-		<<set $failedElite -= (2 * policies.countEugenicsSMRs())>>
-	<</if>>
-<</if>>
-
-<<if ($arcologies[0].FSRepopulationFocus != "unset") && ($birthsTotal > 0)>>
-	The number of children you've brought into the world @@.green;pleases@@ your citizens.
-	<<if $birthsTotal < 1000>>
-		<<run repX($birthsTotal, "PCactions")>>
-	<<else>>
-		<<run repX(1000, "PCactions")>>
-	<</if>>
-<</if>>
-
-<<if $shelterAbuse > 5>>
-	<<if $arcologies[0].FSPaternalist != "unset">>
-		You are on the Slave Shelter's public list of abusive slaveowners. Society @@.red;disapproves@@ of your falling foul of such a well regarded charity.
-		<<run FutureSocieties.Change("Paternalist", -2)>>
-	<<elseif $arcologies[0].FSDegradationist != "unset">>
-		You are on the Slave Shelter's public list of abusive slaveowners. Your citizens find this hilarious, and @@.green;approve@@ of your taking advantage of a pack of idiots.
-		<<run FutureSocieties.Change("Degradationist", 2)>>
-	<</if>>
-<</if>>
-
-<<if $TCR.schoolPresent == 1>>
-	<<if $arcologies[0].FSRestart != "unset">>
-		Your Eugenics focused society @@.red;disagrees@@ with the local branch of The Cattle Ranch's views on slave breeding. Until society sees them as nothing more than mindless cattle and not human, they are in conflict with current reproduction standards.
-		<<run FutureSocieties.Change("Eugenics", -1)>>
-	<<elseif $arcologies[0].FSPaternalist != "unset">>
-		While they can't stop what happens to slaves outside of your arcology, they can @@.red;disapprove and protest@@ you allowing a branch of the mentally and physically abusive Cattle Ranch to be established in your arcology.
-		<<run FutureSocieties.Change("Paternalist", -2)>>
-	<</if>>
-<</if>>
-
-<<if $policies.cash4Babies == 1>>
-	<<if $arcologies[0].FSDegradationist != "unset">>
-		Society @@.green;approves@@ of your poor treatment of slave infants.
-		<<run repX(5*$FSSingleSlaveRep*($arcologies[0].FSDegradationist/$FSLockinLevel), "babyTransfer")>>
-	<<elseif $arcologies[0].FSRestart != "unset">>
-		<<if $eugenicsFullControl != 1>>
-			The Societal Elite @@.red;strongly disapproves@@ of your creating an economic incentive for the lower classes to breed and sell infants, holding back acceptance of your new society.
-			<<set $failedElite += 5>>
-		<<else>>
-			Society @@.red;strongly disapproves@@ of your creating an economic incentive for the lower classes to breed and sell infants, holding back acceptance of your new society.
-		<</if>>
-		<<set $arcologies[0].FSRestart -= $FSSingleSlaveRep>>
-		<<run repX(forceNeg((5*$FSSingleSlaveRep*($arcologies[0].FSRestart/$FSLockinLevel))+($rep/40)), "babyTransfer")>>
-	<<elseif $arcologies[0].FSPaternalist != "unset">>
-		Society @@.red;greatly despises@@ your poor treatment of slave infants.
-		<<run repX(forceNeg((25*$FSSingleSlaveRep*($arcologies[0].FSPaternalist/$FSLockinLevel))+($rep/20)), "babyTransfer")>>
-	<<elseif $arcologies[0].FSRepopulationFocus != "unset">>
-		Society @@.red;disapproves@@ of your poor treatment of your future population, holding back acceptance of your new society.
-		<<set $arcologies[0].FSRepopulationFocus -= $FSSingleSlaveRep>>
-		<<run repX(forceNeg((5*$FSSingleSlaveRep*($arcologies[0].FSRepopulationFocus/$FSLockinLevel))+($rep/20)), "babyTransfer")>>
-	<<else>>
-		Your citizens @@.red;disapprove@@ of your poor treatment of slave children.
-		<<run repX(forceNeg($rep/20), "babyTransfer")>>
-	<</if>>
-<</if>>
-
-<<if $policies.mixedMarriage == 1>>
-	Your citizens
-	<<if $arcologies[0].FSPaternalist >= 80>>
-		are so paternalistic that they @@.green;approve@@ of
-		<<run FutureSocieties.Change("Paternalist", 2)>>
-	<<elseif $arcologies[0].FSPaternalist >= 40>>
-		are paternalistic enough to tolerate
-	<<else>>
-		@@.red;disapprove@@ of
-		<<run repX(-50, "PCactions")>>
-	<</if>>
-	your support for marriage between citizens and slaves.
-<</if>>
-
-<<if $citizenOrphanageTotal > 0>>
-	<<if $arcologies[0].FSPaternalist != "unset">>
-		The public @@.green;approves@@ of the way you're providing for $citizenOrphanageTotal of your slaves' children to be raised as citizens.
-		<<run FutureSocieties.Change("Paternalist", $citizenOrphanageTotal)>>
-		<<if $privateOrphanageTotal > 0>>
-			Raising <<print num($privateOrphanageTotal)>> of your slaves' children privately is considered even more @@.green;impressive.@@
-			<<set _care = $privateOrphanageTotal*2>>
-			<<run FutureSocieties.Change("Paternalist", _care)>>
-		<</if>>
-	<<elseif $arcologies[0].FSDegradationist != "unset">>
-		The public @@.red;disapproves@@ of the way you're providing for $citizenOrphanageTotal of your slaves' children to be raised as citizens.
-		<<set _care = -$citizenOrphanageTotal>>
-		<<run FutureSocieties.Change("Degradationist", _care)>>
-		<<if $privateOrphanageTotal > 0>>Fortunately your raising slaves' children privately is not publicly known.<</if>>
-	<</if>>
-<<elseif $privateOrphanageTotal > 0>>
-	<<if $arcologies[0].FSPaternalist != "unset">>
-		Raising <<print num($privateOrphanageTotal)>> of your slaves' children privately is considered extremely @@.green;impressive.@@
-		<<set _care = $privateOrphanageTotal*2>>
-		<<run FutureSocieties.Change("Paternalist", _care)>>
-	<<elseif $arcologies[0].FSDegradationist != "unset">>
-		Fortunately your raising slaves' children privately is not publicly known.
-	<</if>>
-<</if>>
-<<if $breederOrphanageTotal > 0 && $arcologies[0].FSRepopulationFocus != "unset">>
-	The public @@.green;approves@@ of the way you've dedicated <<print num($breederOrphanageTotal)>> of your slaves' children to be raised into future breeders.
-	<<set _futureBreeders = Math.round((($breederOrphanageTotal/100)+1))>>
-	<<run FutureSocieties.Change("RepopulationFocus", _futureBreeders)>>
-<</if>>
-
-<<if $arcologies[0].FSNull != "unset">>
-	Your cultural openness @@.green;helps your reputation,@@ since few citizens have disputes with your permissive approach.
-	<<run repX(50*$FSSingleSlaveRep*($arcologies[0].FSNull/$FSLockinLevel), "policies")>>
-<</if>>
-
-<<if $arcologies[0].FSRestartLaw == 1>>
-	Your laws requiring the non-elite to pay additional taxes or be sterilized @@.red;agitates@@ some of your citizens, but they don't matter. Only your @@.green;pleased@@ elite do.
-	<<run repX(-100, "policies")>>
-	<<set $failedElite -= 1>>
-<</if>>
-
-<<if $arcologies[0].FSHedonisticDecadenceLaw == 1>>
-	The burgeoning prosperity brought on by new business through your policies @@.green;builds your reputation,@@ since nearly every citizen has something available to satisfy their cravings.
-	<<run repX(100, "policies")>>
-<</if>>
-
-<<if $arcologies[0].FSIntellectualDependencyLaw == 1>>
-	The protections you have in place to protect invalids @@.green;adds to your reputation,@@ since every citizen will eventually find themselves benefitting from it.
-	<<run repX(100, "policies")>>
-<</if>>
-
-<<if $policies.SMR.frigiditySMR == 1>>
-	Your market regulations regarding slave sex drives @@.red;outrages@@ your citizens seeking sex slaves, since only slaves disinterested in sex are available.
-	<<run repX(-250, "policies")>>
-<</if>>
-
-<<if $PC.degeneracy > 0>>
-	<<if $PC.degeneracy > 100>>
-		There are @@.red;severe and devastating rumors@@ about you spreading across the arcology.
-		<<run repX(forceNeg(100*$PC.degeneracy), "PCactions")>>
-		<<set $enduringRep = 0>>
-	<<elseif $PC.degeneracy > 75>>
-		There are @@.red;severe rumors@@ about you spreading across the arcology.
-		<<run repX(forceNeg(20*$PC.degeneracy), "PCactions")>>
-	<<elseif $PC.degeneracy > 50>>
-		There are @@.red;bad rumors@@ about you spreading across the arcology.
-		<<run repX(forceNeg(10*$PC.degeneracy), "PCactions")>>
-	<<elseif $PC.degeneracy > 25>>
-		There are @@.red;rumors@@ about you spreading across the arcology.
-		<<run repX(forceNeg(5*$PC.degeneracy), "PCactions")>>
-	<<elseif $PC.degeneracy > 10>>
-		There are @@.red;minor rumors@@ about you spreading across the arcology.
-		<<run repX(forceNeg(2*$PC.degeneracy), "PCactions")>>
-	<<else>>
-		The occasional rumor about you can be heard throughout the arcology.
-		<<run repX(forceNeg(1*$PC.degeneracy), "PCactions")>>
-	<</if>>
-<</if>>
-
-<<if $FCNNstation == 1>>
-	Playing host to the Free Cities News Network brings @@.green;approval@@ from those who still consider freedom of the press a virtue.
-	<<run repX(500, "policies")>>
-<</if>>
-
-<<if $secExpEnabled > 0 && $SecExp.buildings.propHub && $SecExp.buildings.propHub.upgrades.fakeNews > 0>>
-	The authenticity department produces and distributes copious amounts of plausible enough news and reports, @@.green;increasing your reputation.@@
-	<<run repX(10 * $SecExp.buildings.propHub.upgrades.fakeNews, "policies")>>
-<</if>>
-
-<br>
-<<set _repGain = hashSum($lastWeeksRepIncome), _repLoss = hashSum($lastWeeksRepIncome)>>
-<<if _repGain > _repLoss>>
-	@@.green;Your reputation increased this week.@@
-<<elseif _repGain < _repLoss>>
-	@@.red;Your reputation decreased this week.@@
-<</if>>
-
-
-<<if isNaN($rep)>>
-	<br>@@.red;Error: rep is outside accepted range, please report this issue@@
-<</if>>
-
-<<if $rep > 20000>>
-	Your reputation is capped.
-<<elseif $rep-$enduringRep > 7500>>
-	Your base rate of reputation decay is very high.
-<<elseif $rep-$enduringRep > 5000>>
-	Your base rate of reputation decay is high.
-<<elseif $rep-$enduringRep > 2500>>
-	Your base rate of reputation decay is moderate.
-<<elseif $rep-$enduringRep > 0>>
-	Your base rate of reputation decay is low.
-<</if>>
-<<if $enduringRep >= 10000>>
-	Your legend is perfected, reducing reputation decay to its lowest possible level.
-	<<set $enduringRep = 10000>>
-<</if>>
-
-<<if $policies.alwaysSubsidizeRep == 1>>
-	<<if $rep <= 19900>>
-		<<run repX(100, "policies")>>
-		Reputation subsidized as planned.
-		<<if $PC.degeneracy > 1>>
-			<<set $PC.degeneracy -= 1>>
-		<</if>>
-	<<elseif $PC.degeneracy > 1>>
-		<<set $PC.degeneracy -= 1>>
-		Rumors quelled as planned.
-	<<else>>
-		<<run cashX(1000, "policies")>>
-		Reputation subsidy reclaimed this week since your reputation is capped.
-	<</if>>
-<</if>>
-
-<<if $failedElite > 1>>
-	<<set $failedElite -= 1>>
-<</if>>
-<<if $PC.degeneracy > 1>>
-	<<set $PC.degeneracy -= 1>>
-<</if>>
-
-<<if $arcologies[0].FSRestartDecoration == 100>>
-	<<if $eugenicsFullControl != 1>>
-		<<if $failedElite > 300>>
-			The Societal Elite @@.red;are plotting your demise.@@
-		<<elseif $failedElite > 250>>
-			The Societal Elite @@.red;are openly discussing about your failures.@@ It would be in your best interests to appease them.
-		<<elseif $failedElite > 200>>
-			The Societal Elite @@.red;are avoiding you.@@ Getting back on their good side is a good idea, lest you want to disappear.
-		<<elseif $failedElite > 150>>
-			The Societal Elite @@.red;stop their conversations around you.@@ You may want to consider your actions more.
-		<<elseif $failedElite > 100>>
-			The Societal Elite @@.red;seem to dislike you.@@
-		<<elseif $failedElite > 50>>
-			The Societal Elite @@.red;mutter about you.@@
-		<<elseif $failedElite > 0>>
-			The Societal Elite @@.red;question some of your actions.@@
-		<<else>>
-			The Societal Elite hold you in high regards.
-		<</if>>
-	<<else>>
-		The Societal Elite can think what they want, they know better than to try and cross you again.
-	<</if>>
-<<elseif $arcologies[0].FSRestart != "unset">>
-	<<if $eugenicsFullControl != 1>>
-		<<if $failedElite > 300>>
-			The Societal Elite @@.red;have departed from your arcology in disgust.@@
-			<<run FutureSocieties.remove("FSRestart")>>
-			<<run repX(forceNeg(10000), "event")>>
-			<<set $eliteFail = random(30,100),
-			$eliteFailTimer = 15>>
-			<<if $eliteFail > $topClass - 20>>
-				<<set $eliteFail = $topClass - 20>>
-			<</if>>
-			<<if $arcologies[0].prosperity > 50>>
-				<<set $arcologies[0].prosperity -= random(20,40)>>
-			<</if>>
-		<<elseif $failedElite > 250>>
-			The Societal Elite @@.red;are openly discussing leaving.@@ It would be in your best interests to appease them.
-		<<elseif $failedElite > 200>>
-			The Societal Elite @@.red;are avoiding you.@@ Getting back on their good side is a good idea, lest you want to disappear.
-		<<elseif $failedElite > 150>>
-			The Societal Elite @@.red;stop their conversations around you.@@ You may want to consider your actions more.
-		<<elseif $failedElite > 100>>
-			The Societal Elite @@.red;seem to dislike you.@@
-		<<elseif $failedElite > 50>>
-			The Societal Elite @@.red;mutter about you.@@
-		<<elseif $failedElite > 0>>
-			The Societal Elite @@.red;question some of your actions.@@
-		<<else>>
-			The Societal Elite hold you in warm regards.
-		<</if>>
-	<<else>>
-		The Societal Elite can think what they want, they know better than to try and cross you again.
-	<</if>>
-<</if>>
\ No newline at end of file
-- 
GitLab