Your browser lacks required capabilities. Please upgrade it or switch to another to continue.
Loading…
<<set $showHud to false>>
<div class="prompt">
You've just lost your job and only have <strong><<print '$'>>$points</strong> to live on. Rent is due in <strong>$turns days</strong>.</div>
<ol class="choices">
<li>[[File for unemployment.|Unemployment][$turns -= 1]]</li>
<li>[[Look for a job.|Job Search][$points -= 15, $newShirt to true, $lastChoice to "<span class=yellow>You spent $15 on a new shirt for interviews.</span>"]]</li>
</ol>
<aside><h3>Did you know?</h3>According to Varo Money, nearly half of Americans don’t have any savings set aside to cover an unexpected expense like a job loss or medical problem.</aside><<set $showHud to false>>
<div class="prompt">
<<print $lastChoice>> You made it to the end of the month with <strong><<print '$' + $finalPoints>></strong>. But that isn't enough to cover the rent, so you've been evicted and are now homeless. You choose to go to the Center of Hope homeless shelter for assistance.
</div>
<ol class="choices">
<li><<link "Thanks for playing!">><<run Engine.restart()>><</link>></li>
</ol>
<div class="prompt">
<<print $lastChoice>> <span class="yellow">You're broke!</span> You ran out of money <<if $finalTurns > 1>>\with <span class="pulse">$finalTurns days</span> left\<<elseif $finalTurns is 1>>\with only <span class="pulse">one day</span> left\<</if>>. With no money left to pay rent, you're facing eviction and choose to go to the Center of Hope homeless shelter for assistance.
</div>
<ol class="choices">
<li><<link "Thanks for playing!">><<run Engine.restart()>><</link>></li>
</ol><link href="/icons/css/all.css" rel="stylesheet"> <!--load all styles -->
/* ______hud begin______ */
<div class="hud">
<<if $showHud is true>>
<div class="points">
/* ______if lost points______ */
<<if $lastPoints gt $points>>
/* ______if payday, add paycheck to points______ */
<<if $payDay is 1 and $employed is true>>
<<set $points to $points + $payCheck>>
/* ______display new total points______ */
<span class="last-points less-than"><<print '$' + $lastPoints>></span><span class="current-points"><<print '$' + $points>></span>
/* ______display points lost______ */
<div class="change">
<<print '<span class="minus">-$' + ($lastPoints - ($points - $payCheck)) + '</span>'>>
/* ______display paycheck______ */
<<print '<span class="plus payday">Payday! +$' + $payCheck + '</span>'>>
</div>
/* ______reset payday counter______ */
<<set $payDay to $payPeriod>>
/* ______if not payday______ */
<<else>>
/* ______display new total points______ */
<span class="last-points less-than"><<print '$' + $lastPoints>></span><span class="current-points"><<print '$' + $points>></span>
/* ______display points lost______ */
<div class="change">
<<print '<span class="minus">-$' + ($lastPoints - $points) + '</span>'>>
</div>
/* ______remove day from payday counter______ */
<<set $payDay to $payDay - 1>>
<</if>>
/* ______if gained points or no change______ */
<<else>>
/* ______if payday, add paycheck to points______ */
<<if $payDay is 1 and $employed is true>>
<<set $points to $points + $payCheck>>
/* ______display new total points______ */
<span class="last-points greater-than"><<print '$' + $lastPoints>></span><span class="current-points"><<print '$' + $points>></span>
/* ______display points gained, if any______ */
<div class="change">
<<if ($points - $payCheck) neq $lastPoints>>
<<print '<span class="plus">+$' + ($points - $lastPoints - $payCheck) + '</span>'>>
<</if>>
/* ______display paycheck______ */
<<print '<span class="plus payday">Payday! +$' + $payCheck + '</span>'>>
</div>
/* ______reset payday counter______ */
<<set $payDay to $payPeriod>>
/* ______if no change in points______ */
<<elseif $points eq $lastPoints>>
<<print '$' + $points>>
/* ______remove day from payday counter______ */
<<set $payDay to $payDay - 1>>
/* ______if gained points and not payday______ */
<<else>>
/* ______display new total points______ */
<span class="last-points greater-than"><<print '$' + $lastPoints>></span><span class="current-points"><<print '$' + $points>></span>
/* ______display points gained______ */
<div class="change">
<<print '<span class="plus">+$' + ($points - $lastPoints) + '</span>'>>
</div>
/* ______remove day from payday counter______ */
<<set $payDay -= 1>>
<</if>>
<</if>>
<<set $lastPoints to $points>>
<<if $commute gt 0>>
\<span class="payday-counter">Daily Commute Cost: <<print "$">>$commute</span>\
<</if>>
</div>
<div class="logo"></div>
<div class="turns">
<<if $turns gt 1>>
\$turns Days Left\
<<elseif $turns is 1>>
\$turns Day Left\
<<elseif $turns is 0>>
\Final Day\
<<else>>
\No Days Left\
<</if>>
<<if $employed>>
\<span class="payday-counter">$payDay Days Until Payday</span>\
<</if>>
</div>
<<else>>
<</if>>
</div>
/* ______hud end______ */
<<if $showDebug is true>>
<<print '<div class=passage-name><ul><li>next is <strong>' + $next + '</strong></li><li>upcoming are <strong>' + $passages + '</strong></li></ul></div>'>>
<</if>><div class="prompt">
<<print $lastChoice>>
You currently have no source of income.
<<if $noJobs is true>>
There are no jobs available.
<<else>>
The following jobs are available.
<</if>>
</div>
<ol class="choices">
/*______ show available jobs ______*/
<<set $n to 1>>
<<for $i=0; $i<$jobs.length; $i++>>
<<if $jobs[$i].available is true>>
<<set $commuteCost1 to 'The cost to commute to your new job is $'>>
<<set $commuteCost2 to ' a day.'>>
/*______subtract daycare cost from future jobs, if enrolled______*/
<<if $inDaycare is true>>
<<set $jobs[$i].payCheck to ($jobs[$i].payCheck - 300)>>
<</if>>
/*______add babysitter fee to commute, if you have a babysitter______*/
<<set $jobs[$i].rawCommute to $jobs[$i].commute>>
<<if $hasBabysitter is true>>
<<set $jobs[$i].commute to ($jobs[$i].commute + 15)>>
<</if>>
<<print '<li id="choice-' + $n + '" class="job-choice">$jobs[' + $i + '].icon<a data-passage="Job Description" data-setter="$payCheck to $jobs[' + $i + '].payCheck; $payPeriod to $jobs[' + $i + '].payPeriod; $jobs[' + $i + '].available to false; $payDay to ($payPeriod + 1); $employed to true; $fireable to true; $reason to $defaultReason; $turns -= 1; $commute to $jobs[' + $i + '].commute; $rawCommute to $jobs[' + $i + '].rawCommute; $lastChoice to $commuteCost1 + $rawCommute + $commuteCost2 + $payDesc1 + $payCheck + $payDesc2; $justFired to false; $jobName to $jobs[' + $i + '].name;"><strong>$jobs[' + $i + '].name: </strong>$jobs[' + $i + '].description</a></li>'>>
<<set $n to ($n + 1)>>
<</if>>
<</for>>
/*______ show unemployment, if available ______*/
<<if $justFired is true>>
<<if $denied is false>>
<<print '<li id="choice-' + ($n) + '">[[File for unemployment.|Unemployment][$employed to false; $justFired to false; $commute to 0; $turns -= 1]]</li>'>>
<<set $n to ($n + 1)>>
<</if>>
<</if>>
/*______ show unemployed option, if no jobs available ______*/
<<if $noJobs is true>>
<<print '<li id="choice-' + ($n) + '">[[Continue Unemployed|' + $next + '][$employed to false; $justFired to false; $fireable to false; $commute to 0; $turns -= 1, $lastChoice to ""]]</li>'>>
<</if>>
</ol><div class="prompt">
You decide to file for unemployment.</div>
<ol class="choices">
<li>[[Set up an appointment.|Unemployment - Appointment][$points -= 10, $turns -= 1, $lastChoice to "<span class=yellow>Transportation cost you $10.</span>"]]</li>
<li>[[Apply online.|Unemployment - Online][$turns -= 4, $points -= 50, $lastChoice to "<span class=yellow>In the meantime, you've had to spend $50 on groceries.</span>"]]</li>
</ol>
<div class="prompt">
After 4 days of waiting, you're notified that your online application was denied because you filled it out incorrectly. <<print $lastChoice>></div>
<ol class="choices">
<<if passage() is "Unemployment - Online">>
<li>[[Set up an appointment.|Unemployment - Appointment][$points -= 10, $turns -= 1, $lastChoice to "<span class=yellow>Transportation cost you $10.</span>"]]</li>
<</if>>
/* ______ if jobs are available, go to job search. get a new shirt if you haven't already ______ */
<<if $noJobs is false>>
<<if $newShirt is true>>
<li>[[Look for a job.|Job Search][$turns -= 1, $points -= 0, $lastChoice to "<span class=yellow></span>"]]</li>
<<else>>
<li>[[Look for a job.|Job Search][$turns -= 1, $points -= 15, $lastChoice to "<span class=yellow>You spent $15 on a new shirt for interviews.</span>"]]</li>
<</if>>
/* ______ continue unemployed, if no jobs are available ______ */
<<else>>
<li>[[Continue Unemployed|$next][$employed to false; $justFired to false; $commute to 0; $turns -= 1]]</li>
<</if>>
</ol><div class="prompt">
<<set $denied to true>>
<<print $lastChoice>> You meet up with a case worker who thinks this job is a good fit.</div>
<ol class="choices">
<<set $commuteCost1 to 'The cost to commute to your new job is $'>>
<<set $commuteCost2 to ' a day.'>>
/*______subtract daycare cost from future jobs, if enrolled______*/
<<if $inDaycare is true>>
<<set $caseWorkerJob.payCheck to ($caseWorkerJob.payCheck - 300)>>
<</if>>
/*______add babysitter fee to commute, if you have a babysitter______*/
<<set $caseWorkerJob.rawCommute to $caseWorkerJob.commute>>
<<if $hasBabysitter is true>>
<<set $jobs[$i].commute to ($jobs[$i].commute + 15)>>
<</if>>
<<print '<li class="job-choice">$caseWorkerJob.icon<a data-passage="Job Description" data-setter="$payCheck to $caseWorkerJob.payCheck; $payPeriod to $caseWorkerJob.payPeriod; $caseWorkerJob.available to false; $payDay to ($payPeriod + 1); $employed to true; $fireable to true; $reason to $defaultReason; $turns -= 1; $commute to $caseWorkerJob.commute; $rawCommute to $caseWorkerJob.rawCommute; $lastChoice to $commuteCost1 + $rawCommute + $commuteCost2 + $payDesc1 + $payCheck + $payDesc2; $justFired to false; $jobName to $caseWorkerJob.name;"><strong>$caseWorkerJob.name: </strong>$caseWorkerJob.description</a></li>'>>
/* ______ if jobs are available, give the option to go to job search. get a new shirt if you haven't already ______ */
<<if $noJobs is false>>
<<if $newShirt is true>>
<li>[[See what else is out there.|Job Search][$turns -= 1, $points -= 0, $lastChoice to "<span class=yellow></span>"]]</li>
<<else>>
<li>[[See what else is out there.|Job Search][$turns -= 1, $points -= 15, $lastChoice to "<span class=yellow>You spent $15 on a new shirt for interviews.</span>"]]</li>
<</if>>
<</if>>
</ol>
<aside><h3>Did you know?</h3> In 2016, about half of 30-year-old millennials were earning less than their parents were the generation before.</aside><<if $justFired is false>>
<<set $newPassage to true>>
<</if>>
<div class="prompt">
<<print $lastChoice>> Your child isn't feeling well and is running a fever.</div>
<ol class="choices">
<li><i class="fas fa-stethoscope"></i>[[Go to the doctor.|Doctor][$turns -= 1, $points -= (25 + $commute), $lastChoice to "<span class=yellow>Your copay cost $25.</span>"]]</li>
<li><i class="fas fa-prescription-bottle"></i>[[Purchase over-the-counter medicine and leave your child home.|OTC][$turns -= 1, $points -= (20 + $commute), $lastChoice to "<span class=yellow>You spent $20 on medicine.</span>"]]</li>
<li><i class="fas fa-home"></i>[[Stay at home with sick child.|$next][$turns -= 1, $points -= (0), $employed to false, $fired to true, $justFired to true, $passageComplete to true, $lastChoice to "<span class=yellow>You lost your job.</span> Your child is recovering, but staying home cost you your new job.", $reason to $lastChoice]]</li>
</ol><div class="prompt">
You take your child to the doctor. He examines your child and writes you a prescription.<<print $lastChoice>></div>
<ol class="choices">
<li><i class="fas fa-file-prescription"></i>[[Go to the pharmacy.|$next][$turns -= 1, $points -= (50), $passageComplete to true, $lastChoice to "<span class=yellow>You spent $50 on medicine.</span>Your child's condition is improving and should fully recover within a few days."]]</li>
<li><i class="fas fa-prescription-bottle"></i>[[Purchase over-the-counter medicine instead.|OTC][$turns -= 1, $points -= (20), $lastChoice to "<span class=yellow>You spent $20 on medicine.</span>"]]</li>
</ol>
<aside><h3>Did you know?</h3> In 2016, the 25.4% of households with an annual income of less than $24K did not have health insurance.</aside><div class="prompt">
<<print $lastChoice>> Your child's condition hasn't improved and should be seen by a doctor at urgent care.</div>
<ol class="choices">
<li><i class="fas fa-ambulance"></i>[[Rush child to urgent care.|$next][$turns -= 1, $points -= 200, $passageComplete to true, $lastChoice to "<span class=yellow>Your urgent care visit cost you $200.</span>Your child's condition is improving and should fully recover within a few days."]]</li>
</ol><<if $justFired is false>>
<<set $newPassage to true>>
<</if>>
<div class="prompt">
<<print $lastChoice>> For the past few days, you've been experiencing abdominal pain.</div>
<ol class="choices">
<li>[[See a doctor.|Appendectomy Doctor][$turns -= 1, $points -= (25 + $commute), $lastChoice to "<span class=yellow>Your copay cost $25.</span>"]]</li>
<li>[[Take some painkillers.|Ignore Pain][$turns -= 1, $points -= (20 + $commute), $lastChoice to "<span class=yellow>You spent $20 on medicine.</span>"]]</li>
</ol><<if $justFired is false>>
<<set $newPassage to true>>
<</if>>
<div class="prompt">
<<print $lastChoice>> Your car isn't starting and you're running late.</div>
<ol class="choices">
<li><i class="fas fa-tools"></i>[[Attempt to fix your car.|Fix Car][$turns -= 1, $points -= (0), $fixCar = true, $hasCar = true, $lastChoice to "<span class=yellow></span>"]]</li>
<li><i class="fas fa-truck-pickup"></i>[[Have the car towed to a mechanic.|Mechanic][$turns -= 1, $points -= (200), $fixCar = true, $hasCar = true, $lastChoice to "<span class=yellow>You spent $200 to have your car towed and repaired.</span>"]]</li>
<li><i class="fas fa-bus-alt"></i>[[Rely on public transportation until you can come up with a solution.|Public Transportation][$turns -= 1, $points -= ($commute), $hasCar = false, $lastChoice to "<span class=yellow>Your daily commute costs will be increased to $" + ($commute + 10) + ".</span>"]]</li>
</ol><<if $justFired is false>>
<<set $newPassage to true>>
<</if>>
<div class="prompt">
<<print $lastChoice>> You're invited out for drinks later this evening to celebrate your best friend's birthday.</div>
<ol class="choices">
<li><i class="fas fa-home"></i>[[Stay home.|Don't Go Out][$turns -= 1, $points -= ($commute), $lastChoice to "<span class=yellow></span>"]]</li>
<li><i class="fas fa-mobile-alt"></i>[[Take an Uber.|Uber][$turns -= 1, $points -= (75 + $commute), $lastChoice to "<span class=yellow>You spent $75.</span> Even though you enjoyed a much needed night out with your friends, the added expence has left you feeling depressed."]]</li>
<<if $hasCar is true>>
<li><i class="fas fa-car"></i>[[Drive yourself.|Drive][$turns -= 1, $points -= (50 + $commute), $lastChoice to "<span class=yellow>You spent $50.</span>"]]</li>
<</if>>
</ol><<set $employed to false>>
<div class="prompt">
<<print $lastChoice>> Your boss informs you that you have to be let go due to budget cuts. With no source of income, you can't afford rent and are now facing eviction. You choose to go to the Center of Hope homeless shelter for assistance.
</div>
<ol class="choices">
<li><<link "Thanks for playing!">><<run Engine.restart()>><</link>></li>
</ol><div class="prompt">
<<print $lastChoice>> Your doctor diagnoses you with appendicitis and recommends you schedule an appendectomy as soon as possible. It'll take a week to recover from the procedure.</div>
<ol class="choices">
<li>[[Move forward with the procedure.|Appendectomy][$turns -= 1, $points -= (150 + $commute), $lastChoice to "<span class=yellow>The procedure cost $150.</span> The surgery was a success and your pain has gone away."]]</li>
<li>[[Ignore the pain and continue.|Ignore Pain][$turns -= 1, $points -= ($commute), $lastChoice to "<span class=yellow></span>"]]</li>
</ol><div class="prompt">
<<print $lastChoice>> Eventually, your abdominal pain becomes unbearable and you're rushed to urgent care for an emergency appendectomy.</div>
<ol class="choices">
<li>[[Continue.|Appendectomy][$turns -= 1, $points -= (300), $lastChoice to "<span class=yellow>You spent $300 on an ambulance ride and the procedure.</span> The surgery was a success and your pain has gone away."]]</li>
</ol><div class="prompt">
<<print $lastChoice>> The doctor recommends staying home for a week to recover.</div>
<ol class="choices">
<li>[[Stay home and take it easy.|$next][$turns -= 7, $points -= (0), $passageComplete to true, $lastChoice to "You recover fully. You've missed a week of work, but your boss understands.<span class=yellow></span>"]]</li>
<li>[[Move on since you're feeling better.|$next][$turns -= 1, $points -= (0), $employed to false, $fired to true, $justFired to true, $passageComplete to true, $lastChoice to "<span class=yellow>You lost your job.</span> Your performance suffered due to the lingering effects of your surgery.", $reason to $lastChoice]]</li>
</ol>
<aside><h3>Did you know</h3>In 2017, 45% of adults without health insurance said that they remained uninsured because the cost of coverage was too high.</aside><div class="prompt">
<<print $lastChoice>> Your attempts to fix the car are unsuccessful.</div>
<ol class="choices">
<li><i class="fas fa-truck-pickup"></i>[[Have the car towed to a mechanic.|Mechanic][$turns -= 1, $points -= (200), $fixCar = true, $lastChoice to "<span class=yellow>You spent $200 to have your car towed and repaired.</span>"]]</li>
<li><i class="fas fa-bus-alt"></i>[[Rely on public transportation until you can come up with a solution.|Public Transportation][$turns -= 1, $points -= ($commute), $hasCar = false, $lastChoice to "<span class=yellow>Your daily commute costs will be increased to $" + ($commute + 10) + ".</span>"]]</li>
</ol><div class="prompt">
The mechanic examines your car and is able to get it running. <<print $lastChoice>></div>
<ol class="choices">
<li>[[Continue.|$next][$turns -= 1, $points -= (0), $employed to false, $fired to true, $justFired to true, $passageComplete to true, $lastChoice to "<span class=yellow>You lost your job.</span> Attempting to fix your car caused you to miss work.", $reason to $lastChoice]]</li>
</ol><div class="prompt">
<<print $lastChoice>>
</div>
<ol class="choices">
<<if $fixCar is true>>
<li>[[Continue.|$next][$turns -= 1, $points -= $commute, $employed to false, $fired to true, $justFired to true, $passageComplete to true, $lastChoice to "<span class=yellow>You lost your job.</span> Attempting to fix your car caused you to miss work.", $reason to $lastChoice]]</li>
<<else>>
<li>[[Continue.|$next][$turns -= 1, $points -= $commute, $passageComplete to true, $lastChoice to "<span class=yellow></span>"]]</li>
<</if>>
</ol>
<aside><h3>Did you know?</h3> Public transit in Oklahoma City and Tulsa operate on less than one-third the amount of local funding typical for metros of their size according to the National Transit Database.</aside><div class="prompt">
<<print $lastChoice>>
</div>
<ol class="choices">
<li>[[Talk to a specialist.|Specialist][$turns -= 1, $points -= (60 + $commute), $lastChoice to "<span class=yellow>Your appointment costs $60.</span>"]]</li>
<li>[[Ignore and move on.|$next][$turns -= 1, $points -= (0), $employed to false, $fired to true, $justFired to true, $passageComplete to true, $lastChoice to "<span class=yellow>You lost your job.</span> Your change in mood has affected your performance at work.", $reason to $lastChoice]]</li>
</ol>
<aside><h3>Did you know?</h3>The APA says 62% of us are stressed by money issues. A 2019 report from WalletHub, ranks Oklahoma as the tenth most stressed state in the US.</aside>/*______remove "Car Trouble" from the game, since your about to loose your license______*/
<<run $passages.delete($passage3)>>
<<if $next is $passage3>>
<<set $pass to $passages.pluck()>>
<<set $next to $pass>>
<</if>>
<div class="prompt">
You enjoy a much needed night out with your friends. <<print $lastChoice>> On your way home, a police officer notices your car swerving and pulls you over. Even though you've only had a few drinks, you're given a DUI and must now pay the ticket and show up for a court date.</div>
<ol class="choices">
<li>[[Show remorse for the indiscretion.|$next][$turns -= 10, $points -= (50), $employed to false, $fired to true, $hasCar = false, $justFired to true, $passageComplete to true, $lastChoice to "Your sentence is reduced to 10 days in jail. <span class=yellow>You lost your job, received a $50 fine, and your license was revoked.</span>", $reason to $lastChoice]]</li>
<li>[[Contest the ticket.|$next][$turns -= 14, $points -= (100), $employed to false, $fired to true, $hasCar = false, $justFired to true, $passageComplete to true, $lastChoice to "The evidence against you is clear. The Judge sentences you to 2 weeks in jail. <span class=yellow>You lost your job, received a $100 fine, and your license was revoked.</span>", $reason to $lastChoice]]</li>
</ol><div class="prompt">
<<print $lastChoice>> You decide to stay home in order to save money. However, your lack of social interaction has left you feeling depressed.</div>
<ol class="choices">
<li>[[Talk to a specialist.|Specialist][$turns -= 1, $points -= (60 + $commute), $lastChoice to "<span class=yellow>Your appointment costs $60.</span>"]]</li>
<li>[[Ignore and move on.|$next][$turns -= 1, $points -= (0), $employed to false, $fired to true, $justFired to true, $passageComplete to true, $lastChoice to "<span class=yellow>You lost your job.</span> Your change in mood has affected your performance at work.", $reason to $lastChoice]]</li>
</ol>
<aside><h3>Did you know?</h3>The APA says 62% of us are stressed by money issues. A 2019 report from WalletHub, ranks Oklahoma as the tenth most stressed state in the US.</aside><div class="prompt">
Your outlook on life is improving and you're able to move on.<<print $lastChoice>>
</div>
<ol class="choices">
<li>[[Continue.|$next][$turns -= 1, $points -= $commute, $passageComplete to true, $lastChoice to "<span class=yellow></span>"]]</li>
</ol><div class="prompt">
<<print $lastChoice>></div>
<ol class="choices">
<li>[[Continue.|$next][$turns -= 1, $points -= $commute, $lastChoice to "<span class=yellow></span>"]]</li>
</ol>
<aside><h3>Did you know?</h3> Typically, America’s poor have longer, more expensive commutes, and are more reliant on increasingly neglected public transit systems.</aside><<set $points to 300>>
<<set $initPoints to $points>>
<<set $lastPoints to $points>>
<<set $turns to 31>>
<<set $initTurns to $turns>>
<<set $lastChoice to ''>>
<<set $payCheck to 100>>
<<set $payPeriod to 14>>
<<set $payDay to $payPeriod>>
<<set $commute to 0>>
<<set $showHud to false>>
<<set $employed to false>>
<<set $justFired to false>>
<<set $fireable to false>>
<<set $noJobs to false>>
<<set $newShirt to false>>
<<set $defaultReason to "You were let go due to reasons beyond your control.">>
<<set $reason to $defaultReason>>
<<set $tip to "">>
<<set $jobName to "">>
<<set $fired to false>>
<<set $nextMove to "">>
<<set $showDebug to false>>
<<set $denied to false>>
<<set $hasCar to true>>
<<set $addedTransitFee to false>>
<<set $payDesc1 to " <span class=green>You'll take home $">>
<<set $payDesc2 to " every 2 weeks.</span>">>
<<set $passage1 to "Sick Child">>
<<set $passage2 to "Abdominal Pain">>
<<set $passage3 to "Car Trouble">>
<<set $passage4 to "Invited Out">>
<<set $passage5 to "Child Care">>
<<set $passage6 to "Car Wreck">>
<<set $passage7 to "Water Heater">>
<<set $passage8 to "Torn Shoe">>
<<set $passage9 to "Groceries">>
<<set $passage10 to "Bills">>
<<set $unsupervised to false>>
<<set $brokenWindow to false>>
<<set $inDaycare to false>>
<<set $hasBabysitter to false>>
<<set $sitterFlaked to false>>
<<set $removedSitterFee to false>>
<<set $tornShoe to false>>
<<set $rippedShoe to false>>
<<set $rawCommute to 0>>
<<set $job1 to {name: "Restaurant Server", description: "Located across town, $20 daily commute. <b><i>Pays $12 an hour + tips.</i></b>", payCheck: 846, payPeriod: 14, commute: 20, rawCommute: 0, available: true, icon: '<i class="fas fa-utensils"></i>'}>>
<<set $job2 to {name: "Machine Operator", description: "Located nearby, $12 daily commute. <b><i>Pays $10 an hour.</i></b>", payCheck: 640, payPeriod: 14, commute: 12, rawCommute: 0, available: true, icon: '<i class="fas fa-hard-hat"></i>'}>>
<<set $job3 to {name: "Receptionist", description: "Located downtown, $14 daily commute. <b><i>Pays $12 an hour.</i></b>", payCheck: 768, payPeriod: 14, commute: 14, rawCommute: 0, available: true, icon: '<i class="fas fa-phone"></i>'}>>
<<set $jobs= [$job1, $job2, $job3]>>
<<set $caseWorkerJob to $jobs.pluck()>>
<<set $passages= [$passage1, $passage2, $passage3, $passage4, $passage5, $passage6, $passage7, $passage8, $passage9, $passage10]>>
<<set $passNum to 4>>
<<set $passageComplete to false>>
<<set $lastPassage to false>>
<<set $newPassage to false>>
/*_____initialize first passage_____*/
<<set $pass to $passages.pluck()>>
<<set $next to $pass>>
<<set $groceries to 0>>
<<set $itemCount to 0>>
<<set $applesCount to 0>>
<<set $carrotsCount to 0>>
<<set $pbCount to 0>>
<<set $breadCount to 0>>
<<set $spaghettiCount to 0>>
<<set $sauceCount to 0>>
<<set $milkCount to 0>>
<<set $ojCount to 0>>
<<set $cerealCount to 0>>
<<set $ramenCount to 0>>
<<set $hamburgerCount to 0>>
<<set $chickenCount to 0>>
<<set $hotdogCount to 0>>
<<set $tpCount to 0>>
<<set $towelCount to 0>>
<<set $check to '<i class="fas fa-check"></i>'>>
<<set $bills to 0>>
<<set $billCount to 0>>
<<set $waterPaid to false>>
<<set $electricPaid to false>>
<<set $phonePaid to false>>
<<set $creditPaid to false>>/*______$passNum is for debugging purposes only______*/
<<set $passNum to $passages.length>>
/*______if no points or turns left, end the game______*/
<<if $points <= 0>>
<<set $finalPoints to $points>>
<<set $finalTurns to $turns>>
<<set $points to $initPoints>>
<<set $turns to $initTurns>>
<<goto "No Money">>
<</if>>
<<if $turns < 0>>
<<set $finalPoints to $points>>
<<set $finalTurns to $turns>>
<<set $points to $initPoints>>
<<set $turns to $initTurns>>
<<goto "Time's Up">>
<</if>>
/*______if fired during a passage, remove passage from play, look for job, and continue______*/
<<if $fired is true>>
/*___prevents already unemployed players from getting fired for making fireable decisions___*/
<<if $fireable is true>>
<<set $fired to false>>
<<goto "Job Search">>
<<else>>
<<set $lastChoice to "">>
<</if>>
<</if>>
/*______remove "Car Wreck" passage if you've lost your car______*/
<<if $hasCar is false>>
<<run $passages.delete($passage6)>>
<</if>>
/*_____prep the next passage once the current passage begins_____*/
<<if $newPassage is true>>
<<set $newPassage to false>>
<<set $activePassage to passage()>>
<<set $pass to $passages.pluck()>>
<<set $next to $pass>>
<</if>>
/*_____establish odds that an unsupervised child will break your window______*/
<<if $unsupervised is true>>
<<set $roll to random(1, 1)>>
<<if $roll is 1>>
<<set $next to $passage5>>
<<set $unsupervised to false>>
<<set $brokenWindow to true>>
<</if>>
<</if>>
/*_____establish odds that torn shoe will rip open_____*/
<<if $tornShoe is true>>
<<set $roll to random(1, 1)>>
<<if $roll is 1>>
<<set $next to $passage8>>
<<set $tornShoe to false>>
<<set $rippedShoe to true>>
<</if>>
<</if>>
/*_____establish odds that a babysitter will flake______*/
<<if $hasBabysitter is true>>
<<if $sitterFlaked is false>>
<<set $roll to random(1, 1)>>
<<if $roll is 1>>
<<set $next to $passage5>>
<<set $sitterFlaked to true>>
<</if>>
<</if>>
<</if>>
/*______add public transit cost to commute if you don't have a car______*/
<<if $hasCar is false>>
<<if $addedTransitFee is false>>
<<set $commute to ($commute + 10)>>
<<set $addedTransitFee to true>>
<</if>>
<</if>>
/*______remove possibility of positive commute cost______*/
<<if $commute lt 0>>
<<set $commute to 0>>
<</if>>
/*______remove possibility of negative pay check______*/
<<if $payCheck lt 0>>
<<set $payCheck to 0>>
<</if>>/*______display/hide hud____*/
<<if passage() is "Begin">>
<<set $showHud to false>>
<<elseif passage() is "Welcome">>
<<set $showHud to false>>
<<elseif passage() is "Time's Up">>
<<set $showHud to false>>
<<elseif passage() is "No Money">>
<<set $showHud to false>>
<<else>>
<<set $showHud to true>>
<</if>>
/*______if on jobs page, determine if jobs are available______*/
<<if passage() is "Job Search">>
<<set $n to 1>>
<<for $i=0; $i<$jobs.length; $i++>>
<<if $jobs[$i].available is true>>
<<set $n to ($n + 1)>>
<</if>>
<</for>>
<<if $n is 1>>
<<set $noJobs to true>>
<</if>>
<</if>>
/*______if no passages left...______*/
<<if $next is undefined>>
<<set $next to "No Passages">>
/*<<set $passages= [$passage1, $passage2, $passage3, $passage4, $passage5, $passage6, $passage7, $passage8, $passage9, $passage10]>>
<<set $pass to $passages.pluck()>>
<<set $next to $pass>>*/
<</if>>
/*______remove babysitter and fee, after flaking______*/
<<if $justFired is false>>
<<if passage() is not " Job Description">>
<<if $passageComplete is true>>
<<if passage() is $passage5>>
<<if $sitterFlaked is true>>
<<if $removedSitterFee is false>>
<<set $commute to ($commute - 15)>>
<<set $removedSitterFee to true>>
<<set $hasBabysitter to false>>
<</if>>
<</if>>
<</if>>
<</if>>
<</if>>
<</if>>
/*______remove commute cost after getting fired______*/
<<if $justFired is true>>
<<set $commute to ($rawCommute - $commute)>>
<</if>>/*______ footer ______*/
<footer>• Experience designed and developed by <strong>GuRuStu</strong> <<link "•">><<run Engine.restart()>><</link>></footer><<if $justFired is false>>
<<set $newPassage to true>>
<</if>>
<div class="prompt"><<print $lastChoice>>
<<if $brokenWindow is true>>
You come home to find that your child has broken a bedroom window and your landlord won't cover the expense. Clearly, your child requires supervision.
<<elseif $sitterFlaked is true>>
Your babysitter is double-booked and can't look after your child anymore. <span class="green">$15 was removed from your commute cost.</span>
<<else>>
School is almost out for the summer and your child will need supervision during the day.
<</if>>
</div>
<ol class="choices">
<<if $employed is true>>
<li>[[Enroll in a daycare. $150/week|Daycare][$turns -= 1, $points -= ($commute), $payCheck -= 300, $lastChoice to "<span class=yellow>$300 will be deducted from your paycheck to cover daycare expenses.</span>"]]</li>
<<else>>
<li>[[Enroll in a daycare. $150/week|Daycare][$turns -= 1, $points -= (150 + $commute), $lastChoice to "<span class=yellow>You spent $150.</span>"]]</li>
<</if>>
<<if $sitterFlaked is false>>
<li>[[Find a babysitter. $15/day|Babysitter][$turns -= 1, $commute += 15, $points -= ($commute), $lastChoice to "<span class=yellow>Your commute cost increased to $" + $commute + " to cover the babysitter's expense.</span>"]]</li>
<</if>>
<<if $brokenWindow is false>>
<li>[[Leave unsupervised.|Unsupervised][$turns -= 1, $points -= ($commute), $lastChoice to "<span class=yellow></span>"]]</li>
<</if>>
</ol><div class="prompt">
You decide to enroll your child in a nearby daycare. <<print $lastChoice>>
</div>
<ol class="choices">
<li>[[Continue.|$next][$turns -= 1, $points -= $commute, $passageComplete to true, $inDaycare to true, $lastChoice to "<span class=yellow></span>"]]</li>
</ol>
<aside><h3>Did you know?</h3> In Oklahoma, full-time care for an infant averages $115.77 per week in a child care center. Care for an infant averages $94.89 per week statewide in a family child care home. For a child older than 12 months but younger than 24 months, the state average for a center is $108.57 per week.</aside><div class="prompt">
Your babysitter already has a tight schedule, but is still willing to help you out. <<print $lastChoice>>
</div>
<ol class="choices">
<li>[[Continue.|$next][$turns -= 1, $points -= $commute, $passageComplete to true, $hasBabysitter to true, $lastChoice to "<span class=yellow></span>"]]</li>
</ol><div class="prompt">
After clearly explaining the rules of behavior, you leave your child unsupervised and continue with your schedule.<<print $lastChoice>>
</div>
<ol class="choices">
<li>[[Continue.|$next][$turns -= 1, $points -= $commute, $passageComplete to true, $unsupervised to true, $lastChoice to "<span class=yellow></span>"]]</li>
</ol><div class="prompt">1 out of 3 Americans are only a paycheck away from being homeless.<div class="logo big"></div>The Salvation Army shelters almost 30,000 homeless Americans every night.
</div>
<ol class="choices buttons">
<li>[[Can you make it on your own?|Begin]]</li>
</ol><<if $justFired is false>>
<<set $newPassage to true>>
<</if>>
<div class="prompt">
<<print $lastChoice>> You become distracted while driving and rear-end the car in front of you. The damage appears to be minor and no one seems to be injured.</div>
<ol class="choices">
<li>[[Apologize and offer to cover the damages.|Cover Damages][$turns -= 1, $points -= (200 + $commute), $lastChoice to "<span class=yellow>You hand over $200 to cover the damages.</span>"]]</li>
<<if $employed is true>>
<li>[[Exchange insurance information.|Use Insurance][$turns -= 1, $points -= ($commute), $payCheck -= 100, $lastChoice to "Your insurance rate has gone up.<span class=yellow>$100 will be deducted from your check to cover the expense.</span>"]]</li>
<<else>>
<li>[[Exchange insurance information.|Use Insurance][$turns -= 1, $points -= (100 + $commute), $lastChoice to "Your insurance rate has gone up.<span class=yellow>You lost $100.</span>"]]</li>
<</if>>
<li>[[Drive off|Drive Off][$turns -= 1, $points -= (0), $lastChoice to "You quickly speed off and manage to avoid taking any responsibility for your actions.<span class=yellow></span>"]]</li>
</ol><div class="prompt">
<<print $lastChoice>>
</div>
<ol class="choices">
<li>[[Continue.|$next][$turns -= 1, $points -= $commute, $passageComplete to true, $lastChoice to "<span class=yellow></span>"]]</li>
</ol>
<aside><h3>Did you know?</h3>In 2018, Oklahoma was ranked #4 on the list of most expensive states for car insurance.</aside><div class="prompt">
<<print $lastChoice>>
</div>
<ol class="choices">
<li>[[Continue.|$next][$turns -= 1, $points -= $commute, $passageComplete to true, $lastChoice to "<span class=yellow></span>"]]</li>
</ol>
<aside><h3>Did you know?</h3>In 2018, Oklahoma was ranked #4 on the list of most expensive states for car insurance.</aside><div class="prompt">
<<print $lastChoice>>
</div>
<ol class="choices">
<li><i class="fas fa-frown-open"></i>[[Continue.|$next][$turns -= 1, $points -= $commute, $passageComplete to true, $lastChoice to "<span class=yellow></span>"]]</li>
</ol>
<aside><h3>Did you know?</h3>In 2018, Oklahoma was ranked #4 on the list of most expensive states for car insurance.</aside><<if $justFired is false>>
<<set $newPassage to true>>
<</if>>
<div class="prompt">
<<print $lastChoice>> While washing your hands, you notice that there's no hot water. It looks like your hot water heater isn't working.</div>
<ol class="choices">
<li><i class="fas fa-phone"></i>[[Call your landlord|Landlord][$turns -= 1, $points -= ($commute), $lastChoice to "<span class=yellow></span>Your landlord says you are responsible for utilities and reminds you that rent is almost due."]]</li>
<li><i class="fas fa-tools"></i>[[Attempt to fix|Fix Water Heater][$turns -= 1, $points -= (20 + $commute), $lastChoice to "You roll up your sleeves and manage to get the heater working again.<span class=yellow>You spent $20 on materials.</span>"]]</li>
<li><i class="fas fa-tint"></i>[[Call a plumber|Plumber][$turns -= 1, $points -= (100 + $commute), $lastChoice to "You call a plumber, who is quickly able to get the heater working again.<span class=yellow>You spent $100.</span>"]]</li>
<li>[[Ignore|Ignore Water Heater][$turns -= 1, $points -= ($commute), $lastChoice to "You decide to switch to cold showers for the time being.<span class=yellow></span>"]]</li>
</ol><div class="prompt">
<<print $lastChoice>>
</div>
<ol class="choices">
<li><i class="fas fa-tools"></i>[[Attempt to fix|Fix Water Heater][$turns -= 1, $points -= (20 + $commute), $lastChoice to "You roll up your sleeves and manage to get the heater working again.<span class=yellow>You spent $20 on materials.</span>"]]</li>
<li><i class="fas fa-tint"></i>[[Call a plumber|Plumber][$turns -= 1, $points -= (100 + $commute), $lastChoice to "You call a plumber, who is quickly able to get the heater working again.<span class=yellow>You spent $100.</span>"]]</li>
<li>[[Ignore|Ignore Water Heater][$turns -= 1, $points -= ($commute), $lastChoice to "You decide to switch to cold showers for the time being.<span class=yellow></span>"]]</li>
</ol><div class="prompt">
<<print $lastChoice>>
</div>
<ol class="choices">
<li>[[Continue.|$next][$turns -= 1, $points -= $commute, $passageComplete to true, $lastChoice to "<span class=yellow></span>"]]</li>
</ol>
<aside><h3>Did you know?</h3>A report by the US Energy Information Administration states that 31% of US households reported facing a challenge in paying energy bills or sustaining adequate heating and cooling in their homes in 2015.</aside><div class="prompt">
<<print $lastChoice>>
</div>
<ol class="choices">
<li>[[Continue.|$next][$turns -= 1, $points -= $commute, $passageComplete to true, $lastChoice to "<span class=yellow></span>"]]</li>
</ol>
<aside><h3>Did you know?</h3>A report by the US Energy Information Administration states that 31% of US households reported facing a challenge in paying energy bills or sustaining adequate heating and cooling in their homes in 2015.</aside><div class="prompt">
<<print $lastChoice>>
</div>
<ol class="choices">
<li>[[Continue.|$next][$turns -= 1, $points -= $commute, $passageComplete to true, $lastChoice to "<span class=yellow></span>"]]</li>
</ol>
<aside><h3>Did you know?</h3>A report by the US Energy Information Administration states that 31% of US households reported facing a challenge in paying energy bills or sustaining adequate heating and cooling in their homes in 2015.</aside><<if $justFired is false>>
<<set $newPassage to true>>
<</if>>
<div class="prompt">
<<print $lastChoice>>
<<if $rippedShoe is false>>
After a trip to the park, you notice a newly formed hole in your child's left shoe. It won't last long in its current state.
<<else>>
Your child's shoes were on borrowed time and now the sole has ripped completely open.
<</if>>
</div>
<ol class="choices">
<li>[[Go to the mall|Mall][$turns -= 1, $points -= (100 + $commute), $lastChoice to "You find a brand new pair of shoes that your child loves.<span class=yellow>You spent $100.</span>"]]</li>
<li>[[Check out the thrift store|Thrift Store][$turns -= 1, $points -= (10 + $commute), $lastChoice to "You go to the thrift store and find a worn pair of shoes. They don't fit comfortably, but they'll do for now.<span class=yellow>You spent $10.</span>"]]</li>
<<if $rippedShoe is false>>
<li>[[Ignore|Ignore Shoe][$turns -= 1, $points -= ($commute), $lastChoice to "You tell your child to be more careful and make the shoes last.<span class=yellow></span>"]]</li>
<</if>>
</ol><div class="prompt">
<<print $lastChoice>>
</div>
<ol class="choices">
<li>[[Continue.|$next][$turns -= 1, $points -= $commute, $passageComplete to true, $lastChoice to "<span class=yellow></span>"]]</li>
</ol>
<aside><h3>Did you know?</h3>In the State of Oklahoma alone, there are 43,643 homeless children. Last year, 12% of our students were couch homeless, meaning they slept in motels, cars, on floors, with friends, but did not have a home of their own, while 62% stayed in homeless shelters.</aside><div class="prompt">
<<print $lastChoice>>
</div>
<ol class="choices">
<li>[[Continue.|$next][$turns -= 1, $points -= $commute, $passageComplete to true, $lastChoice to "<span class=yellow></span>"]]</li>
</ol>
<aside><h3>Did you know?</h3>In the State of Oklahoma alone, there are 43,643 homeless children. Last year, 12% of our students were couch homeless, meaning they slept in motels, cars, on floors, with friends, but did not have a home of their own, while 62% stayed in homeless shelters.</aside><div class="prompt">
<<print $lastChoice>>
</div>
<ol class="choices">
<li>[[Continue.|$next][$turns -= 1, $points -= $commute, $passageComplete to true, $tornShoe to true, $lastChoice to "<span class=yellow></span>"]]</li>
</ol><div class="prompt no-animation"><<if $groceries is 0>>Fill up your cart. <</if>><<if $itemCount lt 10>>You can checkout once you have enough items to make it through the week. <</if>><<if $groceries gt 0>><span class="yellow">Your total is $<<print $groceries>>.</span><</if>></div>
<ol class="choices food">
<li class="no-animation">
<<set $applesString to "Bag of Apples <strong>$4</strong>">>
<<if $applesCount gt 0>>
<<set $applesString to $applesString + " <i>x" + $applesCount + "</i>">>
<</if>>
<<click "$applesString">>
<<set $applesCount++>>
<<set $groceries to ($groceries + 4)>>
<<set $itemCount++>>
<<set $payDay++>>
<<script>>state.display(state.active.title, null, "back")<</script>>
<</click>></li>
<li class="no-animation">
<<set $carrotsString to "Baby Carrots <strong>$3</strong>">>
<<if $carrotsCount gt 0>>
<<set $carrotsString to $carrotsString + " <i>x" + $carrotsCount + "</i>">>
<</if>>
<<click "$carrotsString">>
<<set $carrotsCount++>>
<<set $groceries to ($groceries + 3)>>
<<set $itemCount++>>
<<set $payDay++>>
<<script>>state.display(state.active.title, null, "back")<</script>>
<</click>></li>
<li class="no-animation">
<<set $pbString to "Peanut Butter <strong>$4</strong>">>
<<if $pbCount gt 0>>
<<set $pbString to $pbString + " <i>x" + $pbCount + "</i>">>
<</if>>
<<click "$pbString">>
<<set $pbCount++>>
<<set $groceries to ($groceries + 4)>>
<<set $itemCount++>>
<<set $payDay++>>
<<script>>state.display(state.active.title, null, "back")<</script>>
<</click>></li>
<li class="no-animation">
<<set $breadString to "Loaf of Bread <strong>$2</strong>">>
<<if $breadCount gt 0>>
<<set $breadString to $breadString + " <i>x" + $breadCount + "</i>">>
<</if>>
<<click "$breadString">>
<<set $breadCount++>>
<<set $groceries to ($groceries + 2)>>
<<set $itemCount++>>
<<set $payDay++>>
<<script>>state.display(state.active.title, null, "back")<</script>>
<</click>></li>
<li class="no-animation">
<<set $spaghettiString to "Spaghetti Noodles <strong>$3</strong>">>
<<if $spaghettiCount gt 0>>
<<set $spaghettiString to $spaghettiString + " <i>x" + $spaghettiCount + "</i>">>
<</if>>
<<click "$spaghettiString">>
<<set $spaghettiCount++>>
<<set $groceries to ($groceries + 3)>>
<<set $itemCount++>>
<<set $payDay++>>
<<script>>state.display(state.active.title, null, "back")<</script>>
<</click>></li>
<li class="no-animation">
<<set $sauceString to "Spaghetti Sauce <strong>$3</strong>">>
<<if $sauceCount gt 0>>
<<set $sauceString to $sauceString + " <i>x" + $sauceCount + "</i>">>
<</if>>
<<click "$sauceString">>
<<set $sauceCount++>>
<<set $groceries to ($groceries + 3)>>
<<set $itemCount++>>
<<set $payDay++>>
<<script>>state.display(state.active.title, null, "back")<</script>>
<</click>></li>
<li class="no-animation">
<<set $milkString to "Gallon of Milk <strong>$4</strong>">>
<<if $milkCount gt 0>>
<<set $milkString to $milkString + " <i>x" + $milkCount + "</i>">>
<</if>>
<<click "$milkString">>
<<set $milkCount++>>
<<set $groceries to ($groceries + 4)>>
<<set $itemCount++>>
<<set $payDay++>>
<<script>>state.display(state.active.title, null, "back")<</script>>
<</click>></li>
<li class="no-animation">
<<set $ojString to "Gallon of OJ <strong>$3</strong>">>
<<if $ojCount gt 0>>
<<set $ojString to $ojString + " <i>x" + $ojCount + "</i>">>
<</if>>
<<click "$ojString">>
<<set $ojCount++>>
<<set $groceries to ($groceries + 3)>>
<<set $itemCount++>>
<<set $payDay++>>
<<script>>state.display(state.active.title, null, "back")<</script>>
<</click>></li>
<li class="no-animation">
<<set $cerealString to "Breakfast Cereal <strong>$4</strong>">>
<<if $cerealCount gt 0>>
<<set $cerealString to $cerealString + " <i>x" + $cerealCount + "</i>">>
<</if>>
<<click "$cerealString">>
<<set $cerealCount++>>
<<set $groceries to ($groceries + 4)>>
<<set $itemCount++>>
<<set $payDay++>>
<<script>>state.display(state.active.title, null, "back")<</script>>
<</click>></li>
<li class="no-animation">
<<set $ramenString to "Ramen Noodles <strong>$1</strong>">>
<<if $ramenCount gt 0>>
<<set $ramenString to $ramenString + " <i>x" + $ramenCount + "</i>">>
<</if>>
<<click "$ramenString">>
<<set $ramenCount++>>
<<set $groceries to ($groceries + 1)>>
<<set $itemCount++>>
<<set $payDay++>>
<<script>>state.display(state.active.title, null, "back")<</script>>
<</click>></li>
<li class="no-animation">
<<set $hamburgerString to "Hamburger (3 lb) <strong>$6</strong>">>
<<if $hamburgerCount gt 0>>
<<set $hamburgerString to $hamburgerString + " <i>x" + $hamburgerCount + "</i>">>
<</if>>
<<click "$hamburgerString">>
<<set $hamburgerCount++>>
<<set $groceries to ($groceries + 6)>>
<<set $itemCount += 2>>
<<set $payDay++>>
<<script>>state.display(state.active.title, null, "back")<</script>>
<</click>></li>
<li class="no-animation">
<<set $chickenString to "Chicken (3 lb) <strong>$7</strong>">>
<<if $chickenCount gt 0>>
<<set $chickenString to $chickenString + " <i>x" + $chickenCount + "</i>">>
<</if>>
<<click "$chickenString">>
<<set $chickenCount++>>
<<set $groceries to ($groceries + 7)>>
<<set $itemCount += 2>>
<<set $payDay++>>
<<script>>state.display(state.active.title, null, "back")<</script>>
<</click>></li>
<li class="no-animation">
<<set $hotdogString to "Hot Dogs (10 ct) <strong>$3</strong>">>
<<if $hotdogCount gt 0>>
<<set $hotdogString to $hotdogString + " <i>x" + $hotdogCount + "</i>">>
<</if>>
<<click "$hotdogString">>
<<set $hotdogCount++>>
<<set $groceries to ($groceries + 3)>>
<<set $itemCount += 3>>
<<set $payDay++>>
<<script>>state.display(state.active.title, null, "back")<</script>>
<</click>></li>
<li class="no-animation">
<<set $tpString to "Toilet Paper <strong>$4</strong>">>
<<if $tpCount gt 0>>
<<set $tpString to $tpString + " <i>x" + $tpCount + "</i>">>
<</if>>
<<click "$tpString">>
<<set $tpCount++>>
<<set $groceries to ($groceries + 1)>>
<<set $itemCount++>>
<<set $payDay++>>
<<script>>state.display(state.active.title, null, "back")<</script>>
<</click>></li>
<li class="no-animation">
<<set $towelString to "Paper Towels <strong>$2</strong>">>
<<if $towelCount gt 0>>
<<set $towelString to $towelString + " <i>x" + $towelCount + "</i>">>
<</if>>
<<click "$towelString">>
<<set $towelCount++>>
<<set $groceries to ($groceries + 1)>>
<<set $itemCount++>>
<<set $payDay++>>
<<script>>state.display(state.active.title, null, "back")<</script>>
<</click>></li>
</ol>
<<if $itemCount gt 9>>
<ol class="choices buttons">
<li class="no-animation">[[Checkout|Checkout][$points -= $groceries, $turns -= 1]]</li>
</ol>
<<else>>
<ol class="choices">
<span class="disclaimer">You don't have enough items yet.</span>
</ol>
<</if>>
<div class="prompt">
<span class=yellow>You spent a total of $<<print $groceries>> on groceries.</span>
</div>
<ol class="choices">
<li>[[Continue.|$next][$turns -= 1, $points -= $commute, $passageComplete to true, $lastChoice to "<span class=yellow></span>"]]</li>
</ol>
<aside><h3>Did you know?</h3>Research from the Harvard School of Public Health finds that healthier food costs $1.50 more per day on average than less healthy food. As a result, low income households often purchase canned goods loaded with preservatives and containing huge amounts of salt and refined sugar.</aside><<if $justFired is false>>
<<set $newPassage to true>>
<</if>>
<div class="prompt"><<print $lastChoice>> Your refrigerator is looking pretty bare. Time to buy groceries.</div>
<ol class="choices">
<li><i class="fas fa-shopping-cart"></i>[[Go to the store|Grocery Store][$turns -= 1, $points -= ($commute), $lastChoice to ""]]</li>
</ol>
<aside><h3>Did you know?</h3>Every day, almost 50 million Americans face food insecurity.</aside><<if $justFired is false>>
<<set $newPassage to true>>
<</if>>
<div class="prompt"><<print $lastChoice>> Your bills are starting to pile up. It's probably a good idea to pay some of them off...</div>
<ol class="choices">
<li>[[Continue|Bill Pay][$turns -= 1, $points -= ($commute), $lastChoice to ""]]</li>
</ol>
<aside><h3>Did you know?</h3> A CreditCards.com survey revealed that 65% of Americans lie awake at night fretting over money worries.</aside> <div class="prompt no-animation"> Choose which bills you'd like to pay.<<if $bills gt 0>> <span class="yellow">Your total is $<<print $bills>>.</span><</if>></div>
<ol class="choices food">
<li class="no-animation">
<<set $waterString to "Water Bill <strong>$40</strong>">>
<<if $waterPaid is true>>
<<set $waterString to $waterString + " " + $check>>
<</if>>
<<click "$waterString">>
<<if $waterPaid is false>>
<<set $bills to ($bills + 40)>>
<<set $waterPaid to true>>
<</if>>
<<set $billCount++>>
<<set $payDay++>>
<<script>>state.display(state.active.title, null, "back")<</script>>
<</click>></li>
<li class="no-animation">
<<set $electricString to "Electric Bill <strong>$65</strong>">>
<<if $electricPaid is true>>
<<set $electricString to $electricString + " " + $check>>
<</if>>
<<click "$electricString">>
<<if $electricPaid is false>>
<<set $bills to ($bills + 65)>>
<<set $electricPaid to true>>
<</if>>
<<set $billCount++>>
<<set $payDay++>>
<<script>>state.display(state.active.title, null, "back")<</script>>
<</click>></li>
<li class="no-animation">
<<set $phoneString to "Phone/Internet <strong>$90</strong>">>
<<if $phonePaid is true>>
<<set $phoneString to $phoneString + " " + $check>>
<</if>>
<<click "$phoneString">>
<<if $phonePaid is false>>
<<set $bills to ($bills + 90)>>
<<set $phonePaid to true>>
<</if>>
<<set $billCount++>>
<<set $payDay++>>
<<script>>state.display(state.active.title, null, "back")<</script>>
<</click>></li>
<li class="no-animation">
<<set $creditString to "Credit Card <strong>$120</strong>">>
<<if $creditPaid is true>>
<<set $creditString to $creditString + " " + $check>>
<</if>>
<<click "$creditString">>
<<if $creditPaid is false>>
<<set $bills to ($bills + 120)>>
<<set $creditPaid to true>>
<</if>>
<<set $billCount++>>
<<set $payDay++>>
<<script>>state.display(state.active.title, null, "back")<</script>>
<</click>></li>
</ol>
<<if $billCount gt 0>>
<ol class="choices buttons">
<li class="no-animation">[[Continue|Bill Checkout][$points -= $bills, $turns -= 1]]</li>
</ol>
<<else>>
<ol class="choices buttons">
<li class="no-animation">[[Pay Later|Bill Checkout][$points -= 0, $turns -= 1]]</li>
</ol>
<</if>>
<div class="prompt">
<<if $bills gt 0>><span class=yellow>You spent a total of $<<print $bills>> on bills.</span><<else>>You chose to ignore your bills and move on.<</if>>
</div>
<ol class="choices">
<li>[[Continue.|$next][$turns -= 1, $points -= $commute, $passageComplete to true, $lastChoice to "<span class=yellow></span>"]]</li>
</ol>
<aside><h3>Did you know?</h3> According to the Federal Deposit Insurance Corporation, roughly nine million households are unbanked. Nonbank check-cashing costs on average $40 per payroll check.</aside>