From 9a8c0c2cec2bc0fb4197f38044abfbc26848c4b8 Mon Sep 17 00:00:00 2001
From: lowercase-donkey <lowercasedonkey@gmail.com>
Date: Thu, 7 Feb 2019 16:29:37 -0500
Subject: [PATCH] add pronoun support

---
 src/uncategorized/costsWidgets.tw | 33 ++++++++++++++++---------------
 1 file changed, 17 insertions(+), 16 deletions(-)

diff --git a/src/uncategorized/costsWidgets.tw b/src/uncategorized/costsWidgets.tw
index 26a0c4241ce..0a3c538254c 100644
--- a/src/uncategorized/costsWidgets.tw
+++ b/src/uncategorized/costsWidgets.tw
@@ -2,6 +2,7 @@
 
 <<widget "SlaveExpenses">>
 	<<set _individualCosts = 0>>
+	<<setLocalPronouns $args[0]>>
 	<<switch $args[0].assignment>>
 		<<case "be confined in the arcade">>
 			<<set _livingExpense = ($rulesCost*.75)>>
@@ -410,13 +411,13 @@
 		$args[0].origin<br>&nbsp;&nbsp;&nbsp;&nbsp;
 	<</if>>
 	<<if $args[0].slaveCost < 0>>
-		You bought her for: @@.red;<<print cashFormat($args[0].slaveCost)>>@@.
+		You bought $him for: @@.red;<<print cashFormat($args[0].slaveCost)>>@@.
 		<<set _Cost = $args[0].slaveCost>>
 	<<elseif $args[0].slaveCost == 0>>
-		You spent nothing to aquire her.
+		You spent nothing to aquire $him.
 		<<set _Cost = $args[0].slaveCost>>
 	<<else>>
-		You have no record of how much <<if $args[0].origin != 0>>this<<else>>she originally<</if>> cost.
+		You have no record of how much <<if $args[0].origin != 0>>this<<else>>$he originally<</if>> cost.
 		<<set _Cost = 0>>
 	<</if>>
 
@@ -424,30 +425,30 @@
 		<<set _weeksOwned = $week - $args[0].weekAcquired>>
 		<br>&nbsp;&nbsp;&nbsp;&nbsp;
 		<<if $args[0].lifetimeCashExpenses < 0>>
-			In her <<if _weeksOwned > 0>>_weeksOwned <<if _weeksOwned == 1>>week<<else>>weeks<</if>><<else>>time<</if>> with you, she has cost @@.red;<<print cashFormat($args[0].lifetimeCashExpenses)>>@@.
+			In $his <<if _weeksOwned > 0>>_weeksOwned <<if _weeksOwned == 1>>week<<else>>weeks<</if>><<else>>time<</if>> with you, $he has cost @@.red;<<print cashFormat($args[0].lifetimeCashExpenses)>>@@.
 			<<set _Expense = $args[0].lifetimeCashExpenses>>
 		<<else>>
-			You have no record of her costing you any ¤.
+			You have no record of $him costing you any ¤.
 			<<set _Expense = 0>>
 		<</if>>
 
 		<br>&nbsp;&nbsp;&nbsp;&nbsp;
 		<<if $args[0].lifetimeCashIncome > 0>>
-			In her <<if _weeksOwned > 0>>_weeksOwned <<if _weeksOwned == 1>>week<<else>>weeks<</if>><<else>>time<</if>> with you, she has earned @@.yellowgreen;<<print cashFormat($args[0].lifetimeCashIncome)>>@@.
+			In $his <<if _weeksOwned > 0>>_weeksOwned <<if _weeksOwned == 1>>week<<else>>weeks<</if>><<else>>time<</if>> with you, $he has earned @@.yellowgreen;<<print cashFormat($args[0].lifetimeCashIncome)>>@@.
 			<<set _Income = $args[0].lifetimeCashIncome>>
 		<<else>>
-			You have no record of her making you any ¤.
+			You have no record of $him making you any ¤.
 			<<set _Income = 0>>
 		<</if>>
 
 		<br>&nbsp;&nbsp;&nbsp;&nbsp;
 		Overall,
 		<<if (_Income + _Cost + _Expense) > 0>>
-			you have made @@.yellowgreen;<<print cashFormat(_Income + _Cost + _Expense)>>@@ net from her labors.
+			you have made @@.yellowgreen;<<print cashFormat(_Income + _Cost + _Expense)>>@@ net from $his labors.
 		<<elseif (_Income + _Cost + _Expense) == 0>>
-			she is even in cost and income.
+			$he is even in cost and income.
 		<<else>>
-			she has cost you @@.red;<<print cashFormat(_Income + _Cost + _Expense)>>@@.
+			$he has cost you @@.red;<<print cashFormat(_Income + _Cost + _Expense)>>@@.
 		<</if>>
 
 		/* Reputation: */
@@ -457,26 +458,26 @@
 			<<if($cheatMode == 1 || $debugMode == 1)>>
 				<<if $args[0].lifetimeRepIncome != 0>>
 					<br>&nbsp;&nbsp;&nbsp;&nbsp;
-					This week she has
+					This week $he has
 					<<if $args[0].lastWeeksRepIncome == 0>>
 						had no positive effect on your reputation, but
 					<<else>>
 						improved your reputation by @@.green;<<print commaNum($args[0].lastWeeksRepIncome)>>@@ and 
 					<</if>>
-					over her entire time with you, she gained @@.green;<<print commaNum($args[0].lifetimeRepIncome)>>@@.
+					over $his entire time with you, $he gained @@.green;<<print commaNum($args[0].lifetimeRepIncome)>>@@.
 				<</if>>
 				<<if $args[0].lifetimeRepExpenses != 0>>
 					<br>&nbsp;&nbsp;&nbsp;&nbsp;
-					This week she has
+					This week $he has
 					<<if $args[0].lastWeeksRepExpenses == 0>>
 						had no negative effect on your reputation, but
 					<<else>>
 						lowered your reputation by @@.red;<<print commaNum($args[0].lastWeeksRepExpenses)>>@@ and
 					<</if>>
-					over her entire time with you, she cost @@.red;<<print commaNum($args[0].lifetimeRepExpenses)>>@@.
+					over $his entire time with you, $he cost @@.red;<<print commaNum($args[0].lifetimeRepExpenses)>>@@.
 				<</if>>
 				<br>&nbsp;&nbsp;&nbsp;&nbsp;
-				Overall then, she has changed your reputation by
+				Overall then, $he has changed your reputation by
 				<<if _repTotal > 0>>
 					@@.green;<<print commaNum(_repTotal)>>@@
 				<<elseif _repTotal < 0>>
@@ -486,7 +487,7 @@
 				<</if>>				
 			<<else>> /*lowercasedonkey: TODO: I don't like how vague my placeholder is.  Probably need to set up some kind of sliding scale to describe how much rep (roughly) she has made or lost. Need to get a sense of common ranges.*/
 				<br>&nbsp;&nbsp;&nbsp;&nbsp;
-				Overall, she has
+				Overall, $he has
 				<<if _repTotal == 0>>
 					had no impact on your reputation.
 				<<elseif _repTotal > 0>>
-- 
GitLab