Skip to content
Snippets Groups Projects
Commit 9a8c0c2c authored by lowercasedonkey's avatar lowercasedonkey
Browse files

add pronoun support

parent cdfa60cd
No related branches found
No related tags found
No related merge requests found
...@@ -2,6 +2,7 @@ ...@@ -2,6 +2,7 @@
<<widget "SlaveExpenses">> <<widget "SlaveExpenses">>
<<set _individualCosts = 0>> <<set _individualCosts = 0>>
<<setLocalPronouns $args[0]>>
<<switch $args[0].assignment>> <<switch $args[0].assignment>>
<<case "be confined in the arcade">> <<case "be confined in the arcade">>
<<set _livingExpense = ($rulesCost*.75)>> <<set _livingExpense = ($rulesCost*.75)>>
...@@ -410,13 +411,13 @@ ...@@ -410,13 +411,13 @@
$args[0].origin<br>&nbsp;&nbsp;&nbsp;&nbsp; $args[0].origin<br>&nbsp;&nbsp;&nbsp;&nbsp;
<</if>> <</if>>
<<if $args[0].slaveCost < 0>> <<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>> <<set _Cost = $args[0].slaveCost>>
<<elseif $args[0].slaveCost == 0>> <<elseif $args[0].slaveCost == 0>>
You spent nothing to aquire her. You spent nothing to aquire $him.
<<set _Cost = $args[0].slaveCost>> <<set _Cost = $args[0].slaveCost>>
<<else>> <<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>> <<set _Cost = 0>>
<</if>> <</if>>
...@@ -424,30 +425,30 @@ ...@@ -424,30 +425,30 @@
<<set _weeksOwned = $week - $args[0].weekAcquired>> <<set _weeksOwned = $week - $args[0].weekAcquired>>
<br>&nbsp;&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp;&nbsp;
<<if $args[0].lifetimeCashExpenses < 0>> <<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>> <<set _Expense = $args[0].lifetimeCashExpenses>>
<<else>> <<else>>
You have no record of her costing you any ¤. You have no record of $him costing you any ¤.
<<set _Expense = 0>> <<set _Expense = 0>>
<</if>> <</if>>
<br>&nbsp;&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp;&nbsp;
<<if $args[0].lifetimeCashIncome > 0>> <<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>> <<set _Income = $args[0].lifetimeCashIncome>>
<<else>> <<else>>
You have no record of her making you any ¤. You have no record of $him making you any ¤.
<<set _Income = 0>> <<set _Income = 0>>
<</if>> <</if>>
<br>&nbsp;&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp;&nbsp;
Overall, Overall,
<<if (_Income + _Cost + _Expense) > 0>> <<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>> <<elseif (_Income + _Cost + _Expense) == 0>>
she is even in cost and income. $he is even in cost and income.
<<else>> <<else>>
she has cost you @@.red;<<print cashFormat(_Income + _Cost + _Expense)>>@@. $he has cost you @@.red;<<print cashFormat(_Income + _Cost + _Expense)>>@@.
<</if>> <</if>>
/* Reputation: */ /* Reputation: */
...@@ -457,26 +458,26 @@ ...@@ -457,26 +458,26 @@
<<if($cheatMode == 1 || $debugMode == 1)>> <<if($cheatMode == 1 || $debugMode == 1)>>
<<if $args[0].lifetimeRepIncome != 0>> <<if $args[0].lifetimeRepIncome != 0>>
<br>&nbsp;&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp;&nbsp;
This week she has This week $he has
<<if $args[0].lastWeeksRepIncome == 0>> <<if $args[0].lastWeeksRepIncome == 0>>
had no positive effect on your reputation, but had no positive effect on your reputation, but
<<else>> <<else>>
improved your reputation by @@.green;<<print commaNum($args[0].lastWeeksRepIncome)>>@@ and improved your reputation by @@.green;<<print commaNum($args[0].lastWeeksRepIncome)>>@@ and
<</if>> <</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>>
<<if $args[0].lifetimeRepExpenses != 0>> <<if $args[0].lifetimeRepExpenses != 0>>
<br>&nbsp;&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp;&nbsp;
This week she has This week $he has
<<if $args[0].lastWeeksRepExpenses == 0>> <<if $args[0].lastWeeksRepExpenses == 0>>
had no negative effect on your reputation, but had no negative effect on your reputation, but
<<else>> <<else>>
lowered your reputation by @@.red;<<print commaNum($args[0].lastWeeksRepExpenses)>>@@ and lowered your reputation by @@.red;<<print commaNum($args[0].lastWeeksRepExpenses)>>@@ and
<</if>> <</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>> <</if>>
<br>&nbsp;&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp;&nbsp;
Overall then, she has changed your reputation by Overall then, $he has changed your reputation by
<<if _repTotal > 0>> <<if _repTotal > 0>>
@@.green;<<print commaNum(_repTotal)>>@@ @@.green;<<print commaNum(_repTotal)>>@@
<<elseif _repTotal < 0>> <<elseif _repTotal < 0>>
...@@ -486,7 +487,7 @@ ...@@ -486,7 +487,7 @@
<</if>> <</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.*/ <<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; <br>&nbsp;&nbsp;&nbsp;&nbsp;
Overall, she has Overall, $he has
<<if _repTotal == 0>> <<if _repTotal == 0>>
had no impact on your reputation. had no impact on your reputation.
<<elseif _repTotal > 0>> <<elseif _repTotal > 0>>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment