:: SE expiration

<<nobr>>

<<set $nextButton = "Continue", $nextLink = "Scheduled Event">>

<<set $expired = 1>>

<<for $i = 0; $i < $slaves.length; $i++>>
	<<if $slaves[$i].ID == $expiree.ID>>
	<<set $activeSlave = $slaves[$i]>>
	<<break>>
	<</if>>
<</for>>

<<Enunciate $activeSlave>>

$activeSlave.slaveName's indentured servitude is ending this week, meaning that your arcology is gaining a citizen.
<<set $ACitizens += 1>>

<<set $seed = 0>>
<<for $i = 0; $i < $slaves.length; $i++>>
	<<if $slaves[$i].devotion <= 20>>
	<<set $seed = 1>>
	<<set $slaves[$i].devotion -= 1>>
	<</if>>
<</for>>
<<if $seed == 1>>
	Those of your slaves who are unhappy with their lives under you are @@.mediumorchid;envious or angry@@ to see her become free, according to their individual natures.
<</if>>

<<set $activeSlave.indenture = 52>>
<<slaveCost $activeSlave>>

<<if $activeSlave.fetish == "mindbroken">>

Since she is mindbroken, there is precisely no chance that she will be able to look after herself. She stands before you dumbly, betraying no reaction to the prospect of becoming free from sexual slavery. In situations like this, it is perfectly acceptable to subject her to another indenture for her own good.
<br><br>

<span id="result">
<<if $cash > 1000>>
<<link "Plead necessity and reactivate her indenture">>
	<<replace "#result">>
	<<nobr>>
	You plead necessity and place her under another indenture, paying the trivial fees left over once she has been charged for her own forecasted upkeep. Naturally, she offers no response at all to any of this.
	<</nobr>>
	<<set $cash -= 1000>>
	<<set $ACitizens -= 1>>
	<<set $expired = 0>><<set $expiree = 0>>
	<</replace>>
<</link>> //This cost ¤1000//
<<else>>//You cannot afford to do this//
<</if>>
</span>

<<elseif ($activeSlave.relationship < -1) && ($activeSlave.devotion > 95) && ($activeSlave.trust > 95)>>

She has been trying desperately hard not to think about this trying situation, but when she comes before you on the day of her indenture's expiration, she can ignore it no longer. She
<<if $activeSlave.amp == 1>>
	wriggles disconsolately, probably wishing she could throw herself at your feet or cling to your knees.
<<else>>
	throws herself at your feet and clings to your knees, bursting into tears.
<</if>>
<<if canTalk($activeSlave) == false>>
	She does her best to communicate an earnest desire to stay, and repeats over and over that she loves you. She begins to indicate a willingness to accept true, unlimited slavery, if that's what it takes to stay.
<<else>>
	"Plea<<s>>e <<Master>>, don't <<s>>end me away," she sobs. "I love you! I'll d-do anything - I'll be your <<s>>lave! Plea<<s>>e, en<<s>>lave me. I l-love you...," she moans, trailing off into convulsive blubbering.
<</if>>
<br><br>

<span id="result">
<<if $cash > 1000>>
<<link "Enslave her">>
	<<replace "#result">>
	<<nobr>>
	She's beside herself with joy when you accept her plea and enslave her. She's given you the finest proof of loyalty a slave possibly can, having tasted a moment of freedom under the law, and thrown it away with utter contempt. Her $activeSlave.eyeColor eyes watch you with eager anticipation, radiating gladness that the prospect of separation from you has gone.
	<</nobr>>
	<<set $activeSlave.indenture = -1>>
	<<set $activeSlave.indentureRestrictions = 0>>
	<<set $cash -= 1000>>
	<<set $ACitizens -= 1>>
	<<set $expired = 0>><<set $expiree = 0>>
	<</replace>>
<</link>> //This will cost ¤1000//
<<else>>//You cannot afford to do this//
<</if>>
</span>

<<elseif ($activeSlave.devotion > 50) && ($activeSlave.trust > 50)>>

<<set $slaveCost = Math.trunc(($slaveCost*0.5)/500)*500>>
<<set $slaveCost = Math.clamp($slaveCost, $minimumSlaveCost, 100000)>>

Her feelings on this are quite mixed, since she has come to feel that she has a place under you.
<<if $activeSlave.amp == 1>>
	Propped up
<<else>>
	Standing before you
<</if>>
at the moment of her scheduled emancipation, she seems to be struggling to express herself.
<<if canTalk($activeSlave) == false>>
	She does her best to communicate a willingness to remain your slave, indicating that she wouldn't press too hard about the price if you offered her another indenture.
<<else>>
	"<<Master>>, um," she <<say>>s hesitantly. "I don't mind being your <<s>>lave. Could I - would you plea<<s>>e give me another indenture? I'm, um, not too worried about the pri<<c>>e."
<</if>>
<br><br>

<span id="result">
<<if $cash > $slaveCost>>
<<link "Offer her a one year supplementary indenture">>
	<<replace "#result">>
	<<nobr>>
	She smiles almost shyly when you offer her a one year supplementary indenture. The price is reasonable, but definitely favorable to you. She accepts it anyway, and you transfer the money into an escrow account to be held for her until her new indenture is done. Your sex slave once again, she awaits your pleasure without a hint of fear.
	<</nobr>>
	<<set $cash -= $slaveCost>>
	<<set $ACitizens -= 1>>
	<<set $expired = 0>><<set $expiree = 0>>
	<</replace>>
<</link>> //This will cost ¤$slaveCost//
<<else>>//You cannot afford to do this//
<</if>>
</span>

<<elseif ($activeSlave.devotion >= -20) && ($activeSlave.trust > 20)>>

She approaches the moment with calculation, since she has found more of a place in slavery than she probably expected when she became an indentured servant.
<<if $activeSlave.amp == 1>>
	Propped up
<<else>>
	Standing before you
<</if>>
at the moment of her scheduled emancipation, she seems willing to consider a short term continuation of service.
<br><br>

<span id="result">
<<if $cash > $slaveCost>>
<<link "Offer her a one year supplementary indenture">>
	<<replace "#result">>
	<<nobr>>
	She looks pensive when you offer her a one year supplementary indenture. The price reflects the market, and is a reasonable compensation for a year of sexual slavery. She accepts it after some consideration, and you transfer the money into an escrow account to be held for her until her new indenture is done. Your sex slave once again, she awaits orders with complacency.
	<</nobr>>
	<<set $cash -= $slaveCost>>
	<<set $ACitizens -= 1>>
	<<set $expired = 0>><<set $expiree = 0>>
	<</replace>>
<</link>> //This will cost ¤$slaveCost//
<<else>>//You cannot afford to do this//
<</if>>
</span>

<<else>>

She makes no effort at all to conceal her joy at being a free woman again. It seems very unlikely that she'll stay in the arcology; she'll probably take what remains of her indenture payment, held in escrow for this day, and be off to wherever it is that she came from in the first place.

<</if>>

<</nobr>>
