<<nobr>><<silently>>
<<if $location is 0>><<random-character>><</if>>
<<playerName>>
<<parish>>
<<playerAge>>
<<if $socio is "merchants">><<set $role to either($trades)>><</if>>
<<if $religion is "member of a dissident Protestant church">>
<<set $religion to either("Presbyterian", "Baptist", "Quaker")>><</if>>
<</silently>>
<<if $gender is "nonbinary">><<set _x to random(1,4)>><<if _x is 1>>Your friends and family call you <<set _name = ["Charles", "Charlotte"]>><<listbox "$name">><<optionsfrom _name>><</listbox>><<elseif _x is 2>>Your friends and family call you <<set _name = ["Phillip", "Phillippa"]>><<listbox "$name">><<optionsfrom _name>><</listbox>><<elseif _x is 3>>Your friends and family call you <<set _name = ["John", "Joan"]>><<listbox "$name">><<optionsfrom _name>><</listbox>><<else>>Your friends and family call you <<set _name = ["Thomas", "Thomasina"]>><<listbox "$name">><<optionsfrom _name>><</listbox>><</if>><<else>>Your name is $name<</if>>, and you are $agenum years old. You are proud to be a $religion, <<if $religion is "member of the Church of England">>the only true and legal faith<<else>>despite the fact that it is illegal in England.<</if>>
<br><br>
You were born and raised in <<if $origin is "London">>London<<elseif $origin is "somewhere else">>a faraway land, though you now make your home in London<<else>>$origin, though you now make your home in London<</if>>. You currently live in the <<defParish "parish">> of $parish, which is $location. It is a good place for $socio like you.<br><br> /*NTS update with roles for merchants and artisans*/
<<silently>>
/* add family for young children */
<<if $age is "child" or $age is "adolescent" or $age is "young adult">>
<<if $relationship is "single" or $relationship is "betrothed">>
<<set _usedSibNames to []>>
<<addParentNPC>>
<<if $socio is "beggars">>
<<set _x to random(0,1)>><<for _i to 0; _i lt _x; _i++>><<addSiblingsNPC>><</for>>
<<elseif $socio is "day labourers" or $socio is "servants">>
<<set _x to random(0,2)>><<for _i to 0; _i lt _x; _i++>><<addSiblingsNPC>><</for>>
<<elseif $socio is "artisans">>
<<set _x to random(1,2)>><<for _i to 0; _i lt _x; _i++>><<addSiblingsNPC>><</for>>
<<elseif $socio is "merchants">>
<<set _x to random(1,4)>><<for _i to 0; _i lt _x; _i++>><<addSiblingsNPC>><</for>>
<<elseif $socio is "nobles">>
<<set _x to random(2,6)>><<for _i to 0; _i lt _x; _i++>><<addSiblingsNPC>><</for>>
<</if>>
<</if>>
<</if>>
/* add family for married YA, MA, elderly adults */
<<if $age is "young adult" or $age is "middle-aged adult" or $age is "elderly adult">>
<<if $relationship is "married">><<addPartnerNPC>>
<</if>>
<<if $relationship is "married" or $relationship is "widowed">>
<<set _usedChildNames to []>>
<<if $socio is "beggars">>
<<set _x to random(0,1)>><<for _i to 0; _i lt _x; _i++>><<addChildNPC>><</for>>
<<elseif $socio is "day labourers" or $socio is "servants">>
<<set _x to random(0,2)>><<for _i to 0; _i lt _x; _i++>><<addChildNPC>><</for>>
<<elseif $socio is "artisans">>
<<set _x to random(1,3)>><<for _i to 0; _i lt _x; _i++>><<addChildNPC>><</for>>
<<elseif $socio is "merchants">>
<<set _x to random(1,4)>><<for _i to 0; _i lt _x; _i++>><<addChildNPC>><</for>>
<<elseif $socio is "nobles">>
<<set _x to random(2,6)>><<for _i to 0; _i lt _x; _i++>><<addChildNPC>><</for>>
<</if>>
<</if>>
<<addParentNPC>>
<<set _usedSibNames to []>>
<<set _x to random(0,3)>><<for _i to 0; _i lt _x; _i++>><<addSiblingsNPC>><</for>>
<</if>>
/* add unmarried or widowed adult family */
<<if $age is "elderly adult">>
<<if $relationship is "single" or $relationship is "widowed">>
<<if $socio is "beggars" or $socio is "day labourers">>
<<if random(1,2) is 1>>
<<set $NPCs.push({name: weightedEither($fNames), age: either("young adult", "middle-aged adult"), relationship: either("sister", "niece"), health: "healthy"})>>
<<else>>
<<set $NPCs.push({name: weightedEither($mNames), age: either ("young adult", "middle-aged adult"), relationship: either("brother", "nephew"), health: "healthy"})>>
<</if>>
<<else>>
<<if random(1,2) is 1>>
<<set $NPCs.push({name: weightedEither($fNames), age: either("young adult", "middle-aged adult"), relationship: either("sister", "niece"), health: "healthy"})>>
<<else>>
<<set $NPCs.push({name: weightedEither($mNames), age: either ("young adult", "middle-aged adult"), relationship: either("brother", "nephew"), health: "healthy"})>>
<</if>>
<</if>>
<</if>>
<</if>>
<<NPCpronouns>>
<</silently>>
<<if $relationship is "betrothed">>You are currently betrothed to be married. <<elseif $relationship is "widowed">>Alas, your <<if $gender is "male">>wife<<else>>husband<</if>> died some time ago. <</if>>
<<silently>><<addServantNPC>><<if $socio is "servants">><<addMasterHousehold>><<if $relationship is "single" or $relationship is "betrothed">><<set $NPCsExtended to $NPCsExtended.concat($NPCs)>><<set $NPCs to $NPCsMaster.slice()>><<set $NPCsMaster to []>><<NPCpronouns>><</if>><</if>><<set $NPCs to $NPCs.sort((a, b) => (b.agenum || 0) - (a.agenum || 0))>><<set $NPCsMaster to $NPCsMaster.sort((a, b) => (b.agenum || 0) - (a.agenum || 0))>><<set $NPCsExtended to $NPCsExtended.sort((a, b) => (b.agenum || 0) - (a.agenum || 0))>><<set $NPCsServants to $NPCsServants.sort((a, b) => (b.agenum || 0) - (a.agenum || 0))>><</silently>>
<<if $socio is "servants">>Your master is <<if $masterStatus is "artisans">>an artisan<<elseif $masterStatus is "merchants">>a merchant<<elseif $masterStatus is "nobles">>a noble<</if>><<if $relationship is "single" or $relationship is "betrothed">>. As an unmarried servant, you live in their household.<<else>> with a household of $NPCsMaster.length members.<</if>><br><br><</if>>
<<if $NPCs.length gt 0>>You live with your
<<for _i, _idx range $NPCs>>
<<if $NPCs.length eq 1>>$NPCs[_i].relationship, $NPCs[_i].name.
<<elseif _i < $NPCs.length - 1>>$NPCs[_i].relationship, $NPCs[_i].name;
<<else>> and $NPCs[_i].relationship, $NPCs[_i].name.
<</if>>
<</for>>
<<elseif $NPCs.length eq 0>>You live alone.<<set $hoh to 1>>
<</if>>
<br><br>
<<if $socio is "nobles">>Your <<defHousehold "household">> also includes $servants servants.<br><br><</if>>
<<if $NPCsExtended.length gt 0>>Your
<<for _e, _idx range $NPCsExtended>>
<<if $NPCsExtended.length eq 1>>$NPCsExtended[_e].relationship, $NPCsExtended[_e].name
<<elseif _e < $NPCsExtended.length - 1>>$NPCsExtended[_e].relationship, $NPCsExtended[_e].name;
<<else>> and $NPCsExtended[_e].relationship, $NPCsExtended[_e].name
<</if>>
<</for>>also live<<if $NPCsExtended.length eq 1>>s<</if>> in London.<br><br>
<</if>>
If that sounds right, [[click this link to begin our story->December 1664]].
<br><br>
If that doesn't sound right, you can refresh the game and start again.
/*<<click "click this link to try again">><<script>>Engine.play()<</script>><</click>>.*/
<</nobr>>
<<nobr>>
It is December 1664 and you are looking forward to the Christmas holidays. You are<<if $age is "child">>n't<</if>> old enough to remember the days before King Charles II was <span class="def" data-def="After the death of the Lord Protector Oliver Cromwell, his son was not strong enough to hold together the Commonwealth government. The exiled Charles II issued the Declaration of Breda, in which he promised to pardon and uphold the property rights of everyone except the people who signed his father’s execution warrant, in exchange for the throne.">restored to his rightful throne</span>, when Christmas was banned as <span class="def" data-def="A person or act which shows contempt for God or other sacred/holy things and people">blasphemous</span>, and it makes the weeks of celebration and feasting all the merrier.<br><br>
Not everything is perfect, though. Rumors swirl throughout the city about the possibility of a coming war with the Dutch Republic after several Dutch ships were captured and brought into <span class="def" data-def="An English port city about 75 miles south of London">Portsmouth</span> as prizes. <<if $origin is "the Dutch Republic">>You make merry with your neighbors even while you fear they will turn against you in the months ahead. <</if>>Worse, it is common knowledge that <<defPlague "plague">> has been spreading in the Dutch fleet for months, though it hasn't yet reached English shores.<br><br>
<<if $age isnot "child" and $age isnot "elderly adult">><<if $gender isnot "female">><span id="volunteer">Do you want to join the English Navy?
<br><br>
<<link "Volunteer for the navy">><<set $decisions.push("Dec 1664: Volunteered for the navy")>><<replace "#volunteer">>You have enlisted on [[HMS Royal Sovereign->navy-volunteer]]<</replace>><</link>> | <<link "Stay out of the fighting">><<set $decisions.push("Dec 1664: Stayed out of the fighting")>><<replace "#volunteer">>
But those are worries for the future! For now, it is time to eat, drink, and play games with dice and cards to celebrate the Christmas season. <<if $religion is "member of the Church of England">>You look forward to gathering with your neighbors in the <<defParish "parish">> church to celebrate the birth of Jesus Christ.<<elseif $religion is "Catholic">> You enjoy gathering with your fellow Catholics at the magnificent chapel attached to <<defSomersetHouse "Somerset House">>, the <<defQueenMother "Queen Mother">> <<defHenriettaMarias "Henrietta Maria's">> London home.
<<else>>You might not be able to celebrate as openly as a conforming member of the Church of England, or the <<defPapists "papists">> who flock to the chapels of the Catholic <<defQueenCatherine "Queen Catherine">> and <<defQueenMother "Queen Mother">> <<defHenriettaMaria "Henrietta Maria">>, but you will still enjoy the holidays in the comfort and privacy of your home.
<</if>><br><br>
<span id= "decision">Will you <<if $age is "child" or $age is "adolescent">>and your family <</if>>celebrate Christmas with a feast? <<link "Yes">><<silently>><<infection-program>><</silently>><<replace "#decision">><<set $reputation +=3>><<set $money -=20>><<set $decisions.push("Dec 1664: Celebrated Christmas with a feast")>>You <<if $age is "child" or $age is "adolescent">>and your family<</if>> are planning a feast for a few friends. You're excited about all the things on the menu but especially your favorite dessert <<set _food = ["minced pie", "sweetmeats", "currant cake", "syllabub", "tansy"]>><<listbox "$food">><<optionsfrom _food>><</listbox>>. Feasting costs money though, and things might be tight in the coming months, though your heart and stomach are full.<br><br> On Christmas Eve, you see a comet in the sky and you wonder if it is [[a sign of good things to come->January 1665]].<br><br>
<img src="https://upload.wikimedia.org/wikipedia/commons/6/6c/Comet_1665.png" width="100%">
//Great Comet of 1665//
<</replace>><</link>> | <<link "No">><<replace "#decision">><<set $money +=5>><<set $decisions.push("Dec 1664: Skipped the Christmas feast to save money")>>You <<if $age is "child" or $age is "adolescent">>and your family<</if>> decide to save money and forego a large feast for the holiday.<br><br> On Christmas Eve, you see a comet in the sky and you wonder if it is [[a sign of good things to come->January 1665]].<br><br>
<img src="https://upload.wikimedia.org/wikipedia/commons/6/6c/Comet_1665.png" width="100%">
//Great Comet of 1665//<</replace>><</link>></span>
<</replace>><</link>></span>
<<else>>
<span id="volunteer">Do you want to join the navy?<<link "Yes, I can disguise myself as a man">><<set $decisions.push("Dec 1664: Disguised as a man to join the navy")>><<replace "#volunteer">>You have enlisted on [[HMS Royal Sovereign->navy-volunteer]]<</replace>><</link>> | <<link "No, I don't want to get caught">><<set $decisions.push("Dec 1664: Decided not to join the navy")>><<replace "#volunteer">>But those are worries for the future! For now, it is time to eat, drink, and play games with dice and cards to celebrate the Christmas season. <<if $religion is "member of the Church of England">>You look forward to gathering with your neighbors in the <<defParish "parish">> church to celebrate the birth of Jesus Christ.<<elseif $religion is "Catholic">> You enjoy gathering with your fellow Catholics at the magnificent chapel attached to <<defSomersetHouse "Somerset House">>, the <<defQueenMother "Queen Mother">> <<defHenriettaMarias "Henrietta Maria's">> London home.
<<else>>You might not be able to celebrate as openly as a conforming member of the Church of England, or the <<defPapists "papists">> who flock to the chapels of the Catholic <<defQueenCatherine "Queen Catherine">> and <<defQueenMother "Queen Mother">> <<defHenriettaMaria "Henrietta Maria">>, but you will still enjoy the holidays in the comfort and privacy of your home.
<</if>><br><br>
<span id= "decision">Will you <<if $age is "child" or $age is "adolescent">>and your family <</if>>celebrate Christmas with a feast? <<link "Yes">><<silently>><<infection-program>><</silently>><<replace "#decision">><<set $reputation +=3>><<set $money -=20>><<set $decisions.push("Dec 1664: Celebrated Christmas with a feast")>>You <<if $age is "child" or $age is "adolescent">>and your family<</if>> are planning a feast for a few friends. You're excited about all the things on the menu but especially your favorite dessert <<set _food = ["minced pie", "sweetmeats", "currant cake", "syllabub", "tansy"]>><<listbox "$food">><<optionsfrom _food>><</listbox>>. Feasting costs money though, and things might be tight in the coming months, though your heart and stomach are full.<br><br> On Christmas Eve, you see a comet in the sky and you wonder if it is [[a sign of good things to come->January 1665]].<br><br>
<img src="https://upload.wikimedia.org/wikipedia/commons/6/6c/Comet_1665.png" width="100%">
//Great Comet of 1665//
<</replace>><</link>> | <<link "No">><<replace "#decision">><<set $money +=5>><<set $decisions.push("Dec 1664: Skipped the Christmas feast to save money")>>You <<if $age is "child" or $age is "adolescent">>and your family<</if>> decide to save money and forego a large feast for the holiday.<br><br> On Christmas Eve, you see a comet in the sky and you wonder if it is [[a sign of good things to come->January 1665]].<br><br>
<img src="https://upload.wikimedia.org/wikipedia/commons/6/6c/Comet_1665.png" width="100%">
//Great Comet of 1665//<</replace>><</link>></span>
<</replace>><</link>></span><</if>>
<<else>>
But those are worries for the future! For now, it is time to eat, drink, and play games with dice and cards to celebrate the Christmas season. <<if $religion is "member of the Church of England">>You look forward to gathering with your neighbors in the <<defParish "parish">> church to celebrate the birth of Jesus Christ.<<elseif $religion is "Catholic">> You enjoy gathering with your fellow Catholics at the magnificent chapel attached to <<defSomersetHouse "Somerset House">>, the <<defQueenMother "Queen Mother">> <<defHenriettaMarias "Henrietta Maria's">> London home.
<<else>>You might not be able to celebrate as openly as a conforming member of the Church of England, or the <<defPapists "papists">> who flock to the chapels of the Catholic <<defQueenCatherine "Queen Catherine">> and <<defQueenMother "Queen Mother">> <<defHenriettaMaria "Henrietta Maria">>, but you will still enjoy the holidays in the comfort and privacy of your home.
<</if>><br><br>
<span id= "decision">Will you <<if $age is "child" or $age is "adolescent">>and your family <</if>>celebrate Christmas with a feast? <<link "Yes">><<silently>><<infection-program>><</silently>><<silently>><<infection-program>><</silently>><<replace "#decision">><<set $reputation +=3>><<set $money -=20>><<set $gossip to 3>><<set $decisions.push("Dec 1664: Celebrated Christmas with a feast")>>You <<if $age is "child" or $age is "adolescent">>and your family<</if>> are planning a feast for a few friends. You're excited about all the things on the menu but especially your favorite dessert <<set _food = ["minced pie", "sweetmeats", "currant cake", "syllabub", "tansy"]>><<listbox "$food">><<optionsfrom _food>><</listbox>>. Feasting costs money though, and things might be tight in the coming months, though your heart and stomach are full.<br><br> On Christmas Eve, you see a comet in the sky and you wonder if it is [[a sign of good things to come->January 1665]].<br><br>
<img src="https://upload.wikimedia.org/wikipedia/commons/6/6c/Comet_1665.png" width="100%">
//Great Comet of 1665//
<</replace>><</link>> | <<link "No">><<replace "#decision">><<set $money +=5>><<set $decisions.push("Dec 1664: Skipped the Christmas feast to save money")>>You <<if $age is "child" or $age is "adolescent">>and your family<</if>> decide to save money and forego a large feast for the holiday.<br><br> On Christmas Eve, you see a comet in the sky and you wonder if it is [[a sign of good things to come->January 1665]].<br><br>
<img src="https://upload.wikimedia.org/wikipedia/commons/6/6c/Comet_1665.png" width="100%">
//Great Comet of 1665//<</replace>><</link>></span>
<</if>>
<<set $murder =0>>
<</nobr>>This is a text-based adventure game. Click the underlined teal text to advance in the game. Hover over (or tap on mobile) the bold purple text for definitions. Check out the sidebar/menu for information on your household and inventory, to visit the <<defApothecary "apothecary">>, or to restart the game. Best of luck surviving!
The year is 1664 and you are a resident of the great city of London in England. After decades of <<defCivilWar "civil war">> and <span class="def" data-def="Refers to the government of Oliver Cromwell, who served as the Lord Protector of England from 1653-1658. This government was referred to as the Commonwealth (1649-1660) and was held together by Cromwell’s strong personality and military control.">experimental government</span>, the merry monarch King Charles II was restored to the thrones of England, Scotland, and Ireland just four years ago and (most of) the kingdoms rejoiced.
But enough about the king! What about you?
[[Create your character->identity]]
[[Automatically generate a character->bio]]
<img src="https://upload.wikimedia.org/wikipedia/commons/4/48/Claude_de_Jongh_-_View_of_London_Bridge_-_Google_Art_Project_bridge.jpg" width="100%">
//Claude de Jongh - "View of London Bridge," 1632.//<<chunkText>>
While infant mortality is common in this era, God granted your parents a healthy <<set $birthgender = ["daughter","son"]>><<listbox "$birthgender">><<optionsfrom $birthgender>><</listbox>> who not only survived but thrived and you are now a <<set _age = ["child", "adolescent", "young adult", "middle-aged adult", "elderly adult"]>><<listbox "$age">><<optionsfrom _age>><</listbox>>.
<<next>>
<<if $age is "child" or $age is "adolescent">>While the rich and powerful might get <span class="def" data-def="Engaged to be married">betrothed</span> as children and marry as teenagers, most people wait until their mid or late 20s when they have enough wealth to establish their own <<defHouseholds "households">>. You are currently <<set _relationship = ["single", "betrothed"]>><<listbox "$relationship">><<optionsfrom _relationship>><</listbox>>.<<else>>Most people get married in their mid or late 20s to start a family, and those who are widowed often remarry as well. You are currently <<set _relationship = ["single", "married", "widowed"]>><<listbox "$relationship">><<optionsfrom _relationship>><</listbox>><</if>><<if $birthgender is "son">><<set $gender to "male">><<else>><<set $gender to "female">><</if>>
<<next>>
The city has recently settled after the religious upset of the <<defCivilWar "civil war">>, and now there is relative harmony between <span class="def" data-def="Members of the Catholic Church, the royal family is part of this faith">Catholics</span>, <span class="def" data-def="Members of the official religion of England. Henry VIII established this church when he married Anne Boleyn and divorced his first wife, Catherine of Aragon">members of the Church of England</span>, and members of <span class="def" data-def="Differing from the ecclesiastical majority. In this case Protestant Christians who are not members of the dominant Anglican faith, for example Presbyterians.">dissident</span> <span class="def" data-def="Dissidents from the Catholic faith. In England these were most commonly Anglicans (Church of England) or Presbyterians, but there were other smaller groups such as Quakers and Baptists.">Protestant</span> churches. As a devout <<set _religion = ["member of the Church of England", "member of a dissident Protestant church", "Catholic"]>><<listbox "$religion">><<optionsfrom _religion>><</listbox>>, you know God loves all His children.
<<next "Continue" "bio">>
You are originally from <<set _origin = ["London", "the English countryside", "another English town or city", "Scotland", "Ireland", "the Dutch Republic", "France", "somewhere else"]>><<listbox "$origin">><<optionsfrom _origin>><</listbox>> and currently live in London, the greatest city in all the British Isles. It is a diverse city, with people of all ages, origins, and socioeconomic statuses. The city is home to <span class="def" data-def="A member of the hereditary class of landowners with high social and political status. They have noble titles either given to them by a monarch or inherited from their ancestors, such as duke/duchess, marquis/marchioness, earl/countess, or baron/baroness. In 1688, statistician Gregory King estimated there were about 160 noble households in England, which makes up less than 1/10 of 1% of the English population.">nobles</span>, <span class="def" data-def="A person employed in a skilled trade such as grocers, tailors, cordwainers, butchers, joiners, weavers, carpenters, bakers, goldsmiths, apothecaries, chandlers, and more. They were usually members of a guild and their business often involved the entire household, including spouses, children, and any apprentices and journeymen in residence. In 1688, statistician Gregory King estimated there were about 100,000 shopkeeper, tradesmen, and artisan households in England, which makes up ~7% of the English population.">artisans</span>, and <span class="def" data-def="A person involved in wholesale trade, particularly between cities or countries. In 1688, statistician Gregory King estimated there were about 10,000 merchant households in England, which makes up ~1% of the English population.">merchants</span>, who employ <span class="def" data-def="A person who is hired and paid on a daily basis, usually for unskilled or semi-skilled labor. Their tasks might include agricultural work like plowing, sowing, harvesting; construction work; and lifting and hauling, such as collection of the dead. Their pay is dependent on winning work each day and thus might be very irregular and low. In 1688, statistician Gregory King estimated there were about 364,000 households led by laboring people and servants in England, which makes up ~20% of the English population.">day labourers</span> and <span class="def" data-def="A person who is hired long-term to work on domestic duties or as a personal attendant. Their tasks might include cooking, cleaning, dressing, sewing, running errands, driving carts and carriages, taking care of household animals, etc. On many occasions, servants lived in the homes of their employers, meaning their lodgings were part of their wages. Their pay could vary significantly based on the wealth and social status of their employer. Many people were not servants for long periods of time, but rather were employed as servants while young until they had built up enough resources to form their own household.">servants</span> in their households and businesses. And there are also <<defBeggars "beggars">> living in all 97 <span class="def" data-def="The smallest administrative unit of the English church. An official known as the parish clerk kept local records of christenings, burials, and marriages of everyone who lived within the parish. In this period, parish officials were responsible for maintaining the local social safety net, which included supporting and licensing beggars.">parishes</span> within its ancient walls. There are also more parishes spread out around those walls that can be considered part of its suburbs. This includes people living in the city of Westminster and those living across the river Thames, which can only be crossed by boat or by the <<defLondonBridge "London Bridge">>.
It's a great city for people like you - <<set _socio = ["day labourers", "servants", "artisans", "merchants", "nobles", "beggars"]>><<listbox "$socio">><<optionsfrom _socio>><</listbox>> - to live in.
Your home is <<set _location = ["inside the City walls", "in the western suburbs, specifically Westminster", "in another part of the western suburbs", "in the northern suburbs", "in the eastern suburbs", "across the river in the southern suburbs"]>><<listbox "$location">><<optionsfrom _location>><</listbox>>.
<br>
<img src="https://wesleyan-dac-open-access.s3.amazonaws.com/images/DAC_1940-D1-131_001_OA.jpg" width="100%">
//Map of London, before the Fire of 1666 by Wencelaus Holler. Wesleyan University Davison Art Center.//
<</chunkText>><<nobr>>
Send not to know for whom the church bells toll. They toll for you. <<if $religion is "Catholic">>As a God-fearing Catholic, you know you are destined to spend time in purgatory before you can ascend to heaven but you hope that will not take too long<<if $reputation lte 0>>, despite your poor reputation on earth.<</if>><<else>>As a good Protestant, you know that Christ the Redeemer has died for you and your admittance to heaven is guaranteed.<</if>>
<br><br>
<<if $reputation lte 0>>You died with such a poor reputation that most of your neighbors didn't care. The rest of them probably cursed your name and hoped you were suffering in hell. Luckily,
<<else>>You died with a good enough reputation that your neighbors say prayers for your soul. Because of the plague ordinances, none of your neighbors could attend your funeral but
<<if $socio is "nobles">>as a member of the nobility, you were interred in a position of honor in a vault within your family's private chapel.
<<elseif $socio is "merchants">>you were rich enough to be buried within the walls of your <<defParish "parish">> churchyard. Your heirs, of course, paid extremely well for that privilege.
<<elseif $socio is "artisans">>your body was at least carefully wrapped in a burial shroud before being put into the communal plague pits, late at night with no one to witness your burial.
<<else>>your body was at least put into the communal plague pits, instead of being left out to rot.
<</if>>
<</if>>
<</nobr>>
/* NTS: This is also what happened to your family. */
[[How typical was your experience of the Great Plague of London? Let's find out!->stats]]<<nobr>><<set $quarantine +=1>>
<<silently>><<check-NPCs>><<set _remedyEffect to 0>>
<<set $plagueInfection to 2>><</silently>>
<<if ndef $textGroup>><<set $textGroup = 1>><</if>>
<<switch $textGroup>>
<<case 1>>
<<if $quarantine gt 0>>
''Lord have mercy! A strange lump has appeared on your
<<set _x to random(1,3)>>
<<if _x == 1>>leg
<<elseif _x == 2>>armpit
<<elseif _x == 3>>neck
<</if>>, and there's no hiding that you have caught the dreaded plague.'' <br><br>
<<if _infectedFamily.length gt 0>>Worse yet, you learn that your
<<for _z, _y range _infectedFamily>>
<<if _infectedFamily.length eq 1>>$NPCs[_y].relationship, $NPCs[_y].name has also fallen ill.<br>
<<elseif _z < _infectedFamily.length - 1>>$NPCs[_y].relationship $NPCs[_y].name, <<else>>and $NPCs[_y].relationship $NPCs[_y].name have also fallen ill.
<</if>>
<</for>>
<</if>>
<<else>>
Your neighbors shut up the entrances to your house and paint a red cross with the words //Lord Have Mercy// on the front door.
<</if>>
<br><br>
<<link "You pray that God does have mercy on you as you take to your sickbed." `passage()`>><</link>>
<<case 2>>
<<player-treatments>>
<<link "You pray the treatments work." `passage()`>><</link>>
<<case 3>>
<<link "Unfortunately, your fever spikes, you grow weak, and you fear for your life." `passage()`>><</link>>
<br><br>
<img src="https://upload.wikimedia.org/wikipedia/commons/c/cb/Two_holy_men_lie_side_by_side_affected_by_the_plague_Wellcome_L0073320.jpg" width="100%">
//Italian drawing of two men who lie side by side affected by the plague, c. 17th century. Wellcome Images//
<br>
<<case 4>>
/* NTS: should we have text in this part about the health of the rest of your family, or wait til the end? */
<<if $hoh is 1>><<if $socio is "merchants">>It occurs to you that perhaps you ought to write your will<<if $reputation lte 2>>, but your reputation is so poor that no one can be convinced to bring you the writing materials you need<</if>>.
<<elseif $socio is "artisans">>It occurs to you that perhaps you ought to write your will<<if $reputation lte 2>>, but your reputation is so poor that you can't convince a <<defScrivener "scrivener">> to come help you.<</if>>.
<</if>>
<</if>>
/* smuggle out any healthy children if your rep is good enough */
<<if $reputation gte 6>>
<<set $getaway = []>>
<<for _e, _household range $NPCs>>
<<if _household.health is "healthy" and (_household.age is "child" or _household.age is "infant")>>
<<set $getaway.push(_e)>>
<</if>>
<</for>>
<<for _s range $getaway>>
<<set $NPCs[_s].location to "the countryside">><<set $NPCs[_s].health to "safe from harm">>
<</for>>
/* NTS: need to update text! */
<<if $getaway.length gt 0>><br><br>
In the meantime, your family has resorted to desperate measures to protect the health of the youngest. One evening, someone manages to smuggle
<<for _f, _g range $getaway>>
<<if $getaway.length eq 1>>your $NPCs[_g].relationship $NPCs[_g].name,
<<elseif _f < $getaway.length - 1>>your $NPCs[_g].relationship $NPCs[_g].name, <<else>>and your $NPCs[_g].relationship $NPCs[_y].name
<</if>>
<</for>>out of the house and to a safer location.
<</if>>
<</if>><br><br>
<<link "The days continue to pass with agonizing slowness." `passage()`>><</link>>
<<case 5>>
You spend most of your waking hours in a terrible, fevered state. <<if $NPCs.length gt 0>>In your brief moments of <span class="def" data-def="Ability to think clearly, particularly after a period of confusion">lucidity</span>, you ask after your family<<if _infectedFamily.length eq 0>> and are grateful to hear no more have fallen ill... yet<</if>><</if>>.
<<silently>>
/* determine if sick family die or recover */
<<for _s range _infectedFamily>>
<<if _remedyEffect is 1 and random(1,3) is 1>><<set $NPCs[_s].health to "deceased-pq">>
<<elseif _remedyEffect is 0 and random(1,2) is 1>><<set $NPCs[_s].health to "deceased-pq">>
<<else>><<set $NPCs[_s].health to "recovered-pq">>
<</if>>
<</for>>
/* Check for family members who died or recovered */
<<set _deceased = []>>
<<set _recovered = []>>
<<for _d, _household range $NPCs>>
<<if _household.health is "deceased-pq">><<set _deceased.push(_d)>>
<</if>>
<<if _household.health is "recovered-pq">><<set _recovered.push(_d)>>
<</if>>
<</for>>
<</silently>>
/* reveal if sick family members have died or survived*/
<<if _recovered.length gt 0>><br><br>You are grateful to hear that your
<<for _r, _d range _recovered>>
<<if _recovered.length eq 1>>$NPCs[_d].relationship $NPCs[_d].name has<<elseif _r < _recovered.length - 1>>$NPCs[_d].relationship $NPCs[_d].name, <<else>>and $NPCs[_d].relationship $NPCs[_d].name have
<</if>>
<</for>>started to recover from their illness.
<br><br>
<</if>>
<<if _deceased.length gt 0>><<if _recovered.length gt 0>>Unfortunately, not all have fared the same. <</if>>Your
<<for _x, _d range _deceased>>
<<if _deceased.length eq 1>> $NPCs[_d].relationship $NPCs[_d].name has died.<<elseif _x < _deceased.length - 1>> $NPCs[_d].relationship $NPCs[_d].name,<<else>>and $NPCs[_d].relationship $NPCs[_d].name have died.
<</if>>
<</for>>
<br><br>
<</if>>
<<silently>>
/* check if plague spreads */
<<fumigant-check>>
<<for _i = 0; _i < $NPCs.length; _i++>>
<<if $NPCs[_i].health is "healthy">>
<<if _fumes eq 1 and random(1,4) is 1>><<set $NPCs[_i].health to "infected">>
<<elseif _fumes eq 0 and random(1,2) is 1>><<set $NPCs[_i].health to "infected">>
<</if>>
<</if>>
<</for>>
/* Check for fumigants to prevent spread to servants */
<<for _si = 0; _si < $NPCsServants.length; _si++>>
<<if $NPCsServants[_si].health is "healthy">>
<<if _fumes eq 1 and random(1,4) is 1>><<set $NPCsServants[_si].health to "infected">>
<<elseif _fumes eq 0 and random(1,2) is 1>><<set $NPCsServants[_si].health to "infected">>
<</if>>
<</if>>
<</for>>
<</silently>>
<<health-update>>
<br><br>
<<link "As your condition declines, you pray constantly." `passage()`>><</link>>
<<default>>
<<if $reputation lte 2>>Unfortunately, your reputation is so poor that you cannot convince any of your neighbors to bring food or medical supplies to your household any longer.
<<elseif $reputation gt 2>>Your friends and neighbors continue to bring you food and plague remedies, which they pass in through the windows taking care to keep their distance from you.
<br><br>
<</if>>
/* check if player used a helpful remedy earlier */
<<unset $textGroup>>
<<if _remedyEffect is 0 and random(1,2) is 1>> But nothing works. At least you will grow too delirious to notice how miserable you are in the hours before your [[death]].
<<elseif _remedyEffect is 1 and random(1,3) is 1>> But nothing works. At least you will grow too delirious to notice how miserable you are in the hours before your [[death]].
<<else>> Miraculously, after a few days you feel your fever break and your <<defBuboes "buboes">> begin to go down. Thanks be to God, you have survived the plague.
<br><br>
[[Too bad you and your household still have to be for the full 40 days, to make sure you don't spread the plague to anyone else.->Reconnecting]]
/* NTS: Set choice in here about breaking quarantine if running out of money, tie to money and reputation of course. */
<</if>>
<</switch>><<if def $textGroup>><<set $textGroup += 1>><</if>>
<</nobr>>/* infection code - London
/* This adjusts the rate of infection for a specific location depending on how much time has passed in the game, starting at 6 plays (the first passage after the game starts proper). The play number roughly corresponds to our broad time events.
<<nobr>>
<<silently>>
<<if passage() is "December 1664" or passage() is "January 1665" or passage() is "May 1665" or passage() is "June 1665">>
<<elseif passage() is "July 1665">>
<<if not hasVisited("Sickness")>>
<<if random(1,100) eq 1>>
<<set $plagueInfection to 1>>
<</if>>
<</if>>
<<for _i = 0; _i < $NPCs.length; _i++>>
<<if $NPCs[_i].health is "healthy">>
<<if random(1,100) lte 1>><<set $NPCs[_i].health to "infected">>
<</if>>
<</if>>
<</for>>
<<for _si = 0; _si < $NPCsServants.length; _si++>>
<<if $NPCsServants[_si].health is "healthy">>
<<if random(1,100) lte 1>><<set $NPCsServants[_si].health to "infected">><</if>>
<</if>>
<</for>>
<<for _mi = 0; _mi < $NPCsMaster.length; _mi++>>
<<if $NPCsMaster[_mi].health is "healthy">>
<<if random(1,100) lte 1>><<set $NPCsMaster[_mi].health to "infected">><</if>>
<</if>>
<</for>>
<<elseif passage() is "August 1665">>
<<if not hasVisited("Sickness")>>
<<if random(1,12) eq 1>>
<<set $plagueInfection to 1>>
<</if>>
<</if>>
<<for _i = 0; _i < $NPCs.length; _i++>>
<<if $NPCs[_i].health is "healthy">>
<<if random(1,12) lte 1>><<set $NPCs[_i].health to "infected">>
<</if>>
<</if>>
<</for>>
<<for _si = 0; _si < $NPCsServants.length; _si++>>
<<if $NPCsServants[_si].health is "healthy">>
<<if random(1,12) lte 1>><<set $NPCsServants[_si].health to "infected">><</if>>
<</if>>
<</for>>
<<for _mi = 0; _mi < $NPCsMaster.length; _mi++>>
<<if $NPCsMaster[_mi].health is "healthy">>
<<if random(1,12) lte 1>><<set $NPCsMaster[_mi].health to "infected">><</if>>
<</if>>
<</for>>
<<elseif passage() is "September 1665">>
<<if not hasVisited("Sickness")>>
<<if random(1,7) eq 1>>
<<set $plagueInfection to 1>>
<</if>>
<</if>>
<<for _i = 0; _i < $NPCs.length; _i++>>
<<if $NPCs[_i].health is "healthy">>
<<if random(1,7) lte 1>><<set $NPCs[_i].health to "infected">>
<</if>>
<</if>>
<</for>>
<<for _si = 0; _si < $NPCsServants.length; _si++>>
<<if $NPCsServants[_si].health is "healthy">>
<<if random(1,7) lte 1>><<set $NPCsServants[_si].health to "infected">><</if>>
<</if>>
<</for>>
<<for _mi = 0; _mi < $NPCsMaster.length; _mi++>>
<<if $NPCsMaster[_mi].health is "healthy">>
<<if random(1,7) lte 1>><<set $NPCsMaster[_mi].health to "infected">><</if>>
<</if>>
<</for>>
<<elseif passage() is "October 1665">>
<<if not hasVisited("Sickness")>>
<<if random(1,10) eq 1>>
<<set $plagueInfection to 1>>
<</if>>
<</if>>
<<for _i = 0; _i < $NPCs.length; _i++>>
<<if $NPCs[_i].health is "healthy">>
<<if random(1,10) lte 1>><<set $NPCs[_i].health to "infected">>
<</if>>
<</if>>
<</for>>
<<for _si = 0; _si < $NPCsServants.length; _si++>>
<<if $NPCsServants[_si].health is "healthy">>
<<if random(1,10) lte 1>><<set $NPCsServants[_si].health to "infected">><</if>>
<</if>>
<</for>>
<<for _mi = 0; _mi < $NPCsMaster.length; _mi++>>
<<if $NPCsMaster[_mi].health is "healthy">>
<<if random(1,10) lte 1>><<set $NPCsMaster[_mi].health to "infected">><</if>>
<</if>>
<</for>>
<<elseif passage() is "November 1665">>
<<if not hasVisited("Sickness")>>
<<if random(1,75) eq 1>>
<<set $plagueInfection to 1>>
<</if>>
<</if>>
<<for _i = 0; _i < $NPCs.length; _i++>>
<<if $NPCs[_i].health is "healthy">>
<<if random(1,75) lte 1>><<set $NPCs[_i].health to "infected">>
<</if>>
<</if>>
<</for>>
<<for _si = 0; _si < $NPCsServants.length; _si++>>
<<if $NPCsServants[_si].health is "healthy">>
<<if random(1,75) lte 1>><<set $NPCsServants[_si].health to "infected">><</if>>
<</if>>
<</for>>
<<for _mi = 0; _mi < $NPCsMaster.length; _mi++>>
<<if $NPCsMaster[_mi].health is "healthy">>
<<if random(1,75) lte 1>><<set $NPCsMaster[_mi].health to "infected">><</if>>
<</if>>
<</for>>
<<else>>
<<if not hasVisited("Sickness")>>
<<if random(1,1000) eq 1>>
<<set $plagueInfection to 1>>
<</if>>
<</if>>
<<for _i = 0; _i < $NPCs.length; _i++>>
<<if $NPCs[_i].health is "healthy">>
<<if random(1,1000) lte 1>><<set $NPCs[_i].health to "infected">>
<</if>>
<</if>>
<</for>>
<<for _si = 0; _si < $NPCsServants.length; _si++>>
<<if $NPCsServants[_si].health is "healthy">>
<<if random(1,1000) lte 1>><<set $NPCsServants[_si].health to "infected">><</if>>
<</if>>
<</for>>
<<for _mi = 0; _mi < $NPCsMaster.length; _mi++>>
<<if $NPCsMaster[_mi].health is "healthy">>
<<if random(1,1000) lte 1>><<set $NPCsMaster[_mi].health to "infected">><</if>>
<</if>>
<</for>>
<</if>>
<<set _infectedFamily = []>>
<<for _idx, _household range $NPCs>>
<<if _household.health is "infected">>
<<set _infectedFamily.push(_idx)>>
<</if>>
<</for>>
<</silently>>
<</nobr>>/* This adjusts the rate of infection for a specific location depending on how much time has passed in the game, starting at 6 plays (the first passage after the game starts proper). The play number roughly corresponds to our broad time events.
<<nobr>>
<<silently>>
<<if passage() is "December 1664" or passage() is "January 1665" or passage() is "May 1665">>
<<elseif passage() is "June 1665">>
<<if not visited("Sickness")>>
<<if random(1,100) eq 1>>
<<set $plagueInfection to 1>>
<</if>>
<</if>>
<<for _i = 0; _i < $NPCs.length; _i++>>
<<if $NPCs[_i].health is "healthy">>
<<if random(1,100) lte 1>><<set $NPCs[_i].health to "infected">>
<</if>>
<</if>>
<</for>>
<<for _si = 0; _si < $NPCsServants.length; _si++>>
<<if $NPCsServants[_si].health is "healthy">>
<<if random(1,100) lte 1>><<set $NPCsServants[_si].health to "infected">><</if>>
<</if>>
<</for>>
<<for _mi = 0; _mi < $NPCsMaster.length; _mi++>>
<<if $NPCsMaster[_mi].health is "healthy">>
<<if random(1,100) lte 1>><<set $NPCsMaster[_mi].health to "infected">><</if>>
<</if>>
<</for>>
<<elseif passage() is "July 1665">>
<<if not visited("Sickness")>>
<<if random(1,20) eq 1>>
<<set $plagueInfection to 1>>
<</if>>
<</if>>
<<for _i = 0; _i < $NPCs.length; _i++>>
<<if $NPCs[_i].health is "healthy">>
<<if random(1,20) lte 1>><<set $NPCs[_i].health to "infected">>
<</if>>
<</if>>
<</for>>
<<for _si = 0; _si < $NPCsServants.length; _si++>>
<<if $NPCsServants[_si].health is "healthy">>
<<if random(1,20) lte 1>><<set $NPCsServants[_si].health to "infected">><</if>>
<</if>>
<</for>>
<<for _mi = 0; _mi < $NPCsMaster.length; _mi++>>
<<if $NPCsMaster[_mi].health is "healthy">>
<<if random(1,20) lte 1>><<set $NPCsMaster[_mi].health to "infected">><</if>>
<</if>>
<</for>>
<<elseif passage() is "August 1665">>
<<if not visited("Sickness")>>
<<if random(1,4) eq 1>>
<<set $plagueInfection to 1>>
<</if>>
<</if>>
<<for _i = 0; _i < $NPCs.length; _i++>>
<<if $NPCs[_i].health is "healthy">>
<<if random(1,4) lte 1>><<set $NPCs[_i].health to "infected">>
<</if>>
<</if>>
<</for>>
<<for _si = 0; _si < $NPCsServants.length; _si++>>
<<if $NPCsServants[_si].health is "healthy">>
<<if random(1,4) lte 1>><<set $NPCsServants[_si].health to "infected">><</if>>
<</if>>
<</for>>
<<for _mi = 0; _mi < $NPCsMaster.length; _mi++>>
<<if $NPCsMaster[_mi].health is "healthy">>
<<if random(1,4) lte 1>><<set $NPCsMaster[_mi].health to "infected">><</if>>
<</if>>
<</for>>
<<elseif passage() is "September 1665">>
<<if not visited("Sickness")>>
<<if random(1,3) eq 1>>
<<set $plagueInfection to 1>>
<</if>>
<</if>>
<<for _i = 0; _i < $NPCs.length; _i++>>
<<if $NPCs[_i].health is "healthy">>
<<if random(1,3) lte 1>><<set $NPCs[_i].health to "infected">>
<</if>>
<</if>>
<</for>>
<<for _si = 0; _si < $NPCsServants.length; _si++>>
<<if $NPCsServants[_si].health is "healthy">>
<<if random(1,3) lte 1>><<set $NPCsServants[_si].health to "infected">><</if>>
<</if>>
<</for>>
<<for _mi = 0; _mi < $NPCsMaster.length; _mi++>>
<<if $NPCsMaster[_mi].health is "healthy">>
<<if random(1,3) lte 1>><<set $NPCsMaster[_mi].health to "infected">><</if>>
<</if>>
<</for>>
<<elseif passage() is "October 1665">>
<<if not visited("Sickness")>>
<<if random(1,5) eq 1>>
<<set $plagueInfection to 1>>
<</if>>
<</if>>
<<for _i = 0; _i < $NPCs.length; _i++>>
<<if $NPCs[_i].health is "healthy">>
<<if random(1,5) lte 1>><<set $NPCs[_i].health to "infected">>
<</if>>
<</if>>
<</for>>
<<for _si = 0; _si < $NPCsServants.length; _si++>>
<<if $NPCsServants[_si].health is "healthy">>
<<if random(1,5) lte 1>><<set $NPCsServants[_si].health to "infected">><</if>>
<</if>>
<</for>>
<<for _mi = 0; _mi < $NPCsMaster.length; _mi++>>
<<if $NPCsMaster[_mi].health is "healthy">>
<<if random(1,5) lte 1>><<set $NPCsMaster[_mi].health to "infected">><</if>>
<</if>>
<</for>>
<<elseif passage() is "November 1665">>
<<if not visited("Sickness")>>
<<if random(1,20) eq 1>>
<<set $plagueInfection to 1>>
<</if>>
<</if>>
<<for _i = 0; _i < $NPCs.length; _i++>>
<<if $NPCs[_i].health is "healthy">>
<<if random(1,500) lte 1>><<set $NPCs[_i].health to "infected">>
<</if>>
<</if>>
<</for>>
<<for _si = 0; _si < $NPCsServants.length; _si++>>
<<if $NPCsServants[_si].health is "healthy">>
<<if random(1,500) lte 1>><<set $NPCsServants[_si].health to "infected">><</if>>
<</if>>
<</for>>
<<for _mi = 0; _mi < $NPCsMaster.length; _mi++>>
<<if $NPCsMaster[_mi].health is "healthy">>
<<if random(1,500) lte 1>><<set $NPCsMaster[_mi].health to "infected">><</if>>
<</if>>
<</for>>
<<elseif passage() is "December 1665">>
<<if random(1,100) lte 1>>
<<set $plagueInfection to 1>>
<</if>>
<<for _i = 0; _i < $NPCs.length; _i++>>
<<if $NPCs[_i].health is "healthy">>
<<if random(1,100) lte 1>><<set $NPCs[_i].health to "infected">>
<</if>>
<</if>>
<</for>>
<<for _si = 0; _si < $NPCsServants.length; _si++>>
<<if $NPCsServants[_si].health is "healthy">>
<<if random(1,100) lte 1>><<set $NPCsServants[_si].health to "infected">><</if>>
<</if>>
<</for>>
<<for _mi = 0; _mi < $NPCsMaster.length; _mi++>>
<<if $NPCsMaster[_mi].health is "healthy">>
<<if random(1,100) lte 1>><<set $NPCsMaster[_mi].health to "infected">><</if>>
<</if>>
<</for>>
<<else>>
<<if random(1,1000) lte 1>>
<<set $plagueInfection to 1>>
<</if>>
<<for _i = 0; _i < $NPCs.length; _i++>>
<<if $NPCs[_i].health is "healthy">>
<<if random(1,1000) lte 1>><<set $NPCs[_i].health to "infected">>
<</if>>
<</if>>
<</for>>
<<for _si = 0; _si < $NPCsServants.length; _si++>>
<<if $NPCsServants[_si].health is "healthy">>
<<if random(1,1000) lte 1>><<set $NPCsServants[_si].health to "infected">><</if>>
<</if>>
<</for>>
<<for _mi = 0; _mi < $NPCsMaster.length; _mi++>>
<<if $NPCsMaster[_mi].health is "healthy">>
<<if random(1,1000) lte 1>><<set $NPCsMaster[_mi].health to "infected">><</if>>
<</if>>
<</for>>
<</if>>
<<set _infectedFamily = []>>
<<for _idx, _household range $NPCs>>
<<if _household.health is "infected">>
<<set _infectedFamily.push(_idx)>>
<</if>>
<</for>>
<</silently>>
<</nobr>><<nobr>>
/* Pregnancy and marriage tracking, betrothal should not trigger pregnancy due to age restrictions in character generation */
<<if $relationship is "married" or $relationship is "betrothed">>
<<if $gender is "female">>
<<if $age is "young adult" or $age is "middle-aged adult">>
<<set $pregnant to 0>>
<<set _tempPregnant to random(1,10)>>
<<if _tempPregnant is 1>>
<<set $pregnant to 1>>
<</if>>
<</if>>
<</if>>
<<else>>
<<if $age is "young adult" or $age is "middle-aged adult" or $age is "elderly adult">>
<<marriage-market>>
<</if>>
<</if>>
The Christmas festivities end with a great snowfall. It's bitterly cold and the frost doesn't break for over two weeks. <<if $socio is "nobles">><<if $age is "child">>Your family leaves you safe and warm at home while they attend on the king and queen at Court.<<else>>That isn't enough to stop you from attending on the king and queen at Court and buying them expensive New Year's gifts to gain their favor. <</if>><</if>>Freezing rain alternates with snow all winter and rumors swirl about the Dutch fleet.<br><br>
/*Beggar story*/
<<if $socio is "beggars">>Even though you are one of the deserving poor and have a license to beg in your <<defParish "parish">>, few people are in a charitable mood. At least you have a roof over your head and receive bread each week, thanks to your parish's <<defOverseersOfThePoor "Overseers of the Poor">>
<<if $age isnot "child" or $age isnot "elderly adult">>, even if they put you to work to earn it
<</if>>.
You are not freezing or starving to death, even if you are always cold and hungry.
<</if>>
/*Day Labourer story */
<<if $socio is "day labourers">>
<<if $age is "child" or $age is "adolescent">>As the child of a <<defDayLabourer "day labourer">>, each member of your family has
<<else>>As a <<defDayLabourer "day labourer">>, you have
<</if>> to search for a job every day and the weather is so miserable that some days you can’t find work. But at least you have a roof over your head and there is enough money to buy at least bread for your <span class ="def" data-def="All the people living in a home. If there is an adult male living in the home, he is generally considered the head of the household. Widowed women with young children and single women may also be heads of the household. Members of the household then include the head of household, their spouse, and their children, as well as members of the extended family such as grandparents, siblings, aunts, uncles, nieces, nephews, and cousins. Households may additionally include apprentices, journeymen, and servants.">household</span> every week. You are not freezing or starving to death, even if you are always cold and hungry.
<</if>>
/* Servant Story */
<<if $socio is "servants">>As a servant, you spend as much time running errands outside as inside, but at least you have a roof over your head, warm clothes, and plenty to eat. But you can’t help but worry about how the war will impact your life.
<</if>>
/*Artisan Story */
<<if $socio is "artisans">>As
<<if $age is "child" or $age is "adolescent">> the child of
<</if>> a <<set _role = ["baker", "chandler", "grocer", "tailor", "weaver"]>><<listbox "$role">><<optionsfrom _role>><</listbox>>, you spend much of your time working inside and are very glad to have a roof over your head, a fire in your hearth, and enough money for you and your <span class ="def" data-def="All the people living in a home. If there is an adult male living in the home, he is generally considered the head of the household. Widowed women with young children and single women may also be heads of the household. Members of the household then include the head of household, their spouse, and their children, as well as members of the extended family such as grandparents, siblings, aunts, uncles, nieces, nephews, and cousins. Households may additionally include apprentices, journeymen, and servants.">household</span> to eat well. But you can’t help but worry about how the war will impact your
<<if $age is "child" or $age is "adolescent">>family's
<</if>>trade.
<</if>>
/* Merchant Story */
<<if $socio is "merchants">>As <<if $age is "child" or $age is "adolescent">>the child of a merchant, you spend much of your time working inside and are very glad to have a roof over your head, a fire in each of your many hearths, and plenty of money to buy the latest fashions. But your family can’t help but worry about how the war will impact their trade.<<else>>a merchant, you spend much of your time working inside and are very glad to have a roof over your head, a fire in each of your many hearths, and plenty of money to buy the latest fashions. But you can’t help but worry about how the war will impact your trade.<</if>>
<</if>>
/* Noble Story */
<<if $socio is "nobles">>As <<if $age is "child" or $age is "adolescent">>the child of <</if>>a minor noble, you spend much of your time inside at the royal Court of King Charles II in hopes of securing more titles, honor, and riches for yourself and your family<<if $religion is "Catholic">>, especially since <<defQueenCatherine "Queen Catherine">> and the <<defQueenMother "Queen Mother">> both share your <span class="def" data-def="Members of the Catholic Church, the royal family is part of this faith">Catholic</span> faith<</if>>. You fill your days traveling among the royal family's various London palaces--including attending the <span class="def" data-def="The mother of the current monarch. In 1665-7, this was Queen Henrietta Maria, the wife of the executed King Charles I.">Queen Mother's</span> weekly social circle as faithfully as if it were church--and spending money on the latest fashions and trends. But you can’t help but worry about how the war will impact your life.
<br><br>
<img src="https://upload.wikimedia.org/wikipedia/commons/2/2d/Anthony_van_Dyck_-_Queen_Henrietta_Maria_of_England_-_KMSsp240_-_Statens_Museum_for_Kunst.jpg" width="100%">
<br>
//Anthony van Dyck, Queen Henrietta Maria of England, c. 1614-1641.//
<</if>>
<br><br>
<<if $origin isnot "the Dutch republic">>It's almost a relief when war officially breaks out on March 4th.<<else>>Things go from bad to worse for you when war officially breaks out on March 4th.<</if>> Men pass back and forth through London, headed for the <<defFleet "fleet">>—some voluntarily, some after having been <<defImpressed "impressed">> and forced into service.
<br><br>
/* Beggar options */
<<if $socio is "beggars">><<highway>><br>
<</if>>
/* Day Labourer options */
<<if $socio is "day labourers">>Finally, there is plenty of work to be had.
<<if $gender is "female">>You are doing laundry day in and day out in the city fields, which brings in enough money that you finally have enough to spend on things other than food and rent.<br><br>
Do you:<ul>
<li>[[save it->May 1665][$money to Math.clamp($money + 120, 0, 1000000)]]</li>
<li>[[increase your donations to the poor->May 1665][$reputation to Math.clamp($reputation + 2, 0, 10); $money to Math.clamp($money - 120, 0, 1000000)]]</li>
<li>[[take a day off and splurge on a trip to the theatre->May 1665][$reputation to Math.clamp($reputation - 1, 0, 10); $money to Math.clamp($money - 120, 0, 1000000)]]</li>
</ul>
<<else>>A friend of one of your neighbors offers you twice your normal wages to help haul and cart goods for the Navy. <br>
Do you:<ul>
<li><<if random(1,2) eq 1>>[[decide to accept this generous offer.|impressed][$impressed += 1]]<<else>>[[decide to accept this generous offer.|May 1665][$money to Math.clamp($money + 480, 0, 1000000); $reputation to Math.clamp($reputation - 1, 0, 10)]]<</if>></li>
<li>[[choose to continue working for one of your regular employers instead.|May 1665]]</li>
</ul>
<</if>>
<</if>>
/* Servant options */
<<if $socio is "servants">>Your master warns you to keep a sharp eye out to avoid <<if $gender is "male">>being <<defImpressed "impressed">> into the Navy yourself.
<br><br>Are you:
<ul>
<li>[[careful to heed his warning->May 1665]]</li>
<li><<if random(1,2) is 1>>[[not convinced it would be a worse life and spend as much of your--admittedly little--free time in the streets and alehouses as you did before|impressed][$impressed += 1]]<<else>>[[not convinced it would be a worse life and spend as much of your--admittedly little--free time in the streets and alehouses as you did before|May 1665][$reputation to Math.clamp($reputation - 1, 0, 10)]]<</if>></li>
</ul>
<<else>>being harassed or mistaken for a woman of loose morals.
<br>Do you:
<ul>
<li>[[agree with his warning->May 1665][$reputation to Math.clamp($reputation + 1, 0, 10)]]</li>
<li>[[think he's overreacting and spend as much of your--admittedly little--free time in the streets and alehouses as you did before->May 1665][$reputation to Math.clamp($reputation - 1, 0, 10)]]</li>
</ul>
<</if>>
<</if>>
/* Artisan options */
<<if $socio is "artisans">>For now, at least, your <<if $age is "child" or $age is "adolescent">>family's <</if>>business is booming.
<br><br>
When you go to church on Easter Sunday, you are reminded of how lucky you are as one of God’s chosen people.
<br><br>Do you: <ul>
<li>[[celebrate your good fortune by increasing your donations to the poor->May 1665][$reputation to Math.clamp($reputation + 1, 0, 10); $money to Math.clamp($money - 560, 0, 1000000)]]</li>
<li>[[save your money in case of future misfortune->May 1665][$money to Math.clamp($money + 560, 0, 1000000)]]</li>
<li>[[take a day off and splurge on a trip to the theatre->May 1665][$reputation to Math.clamp($reputation - 1, 0, 10); $money to Math.clamp($money - 132, 0, 1000000)]]</li>
</ul>
<</if>>
/* Merchant options */
<<if $socio is "merchants">>For now, at least, your <<if $age is "child" or $age is "adolescent">>family's <</if>>business is booming.
<br><br>
When you go to church on Easter Sunday, you are reminded of how lucky you are as one of God’s chosen people.
<br><br>Do you:
<ul>
<li>[[celebrate your good fortune by increasing your donations to the poor->May 1665][$reputation to Math.clamp($reputation + 1, 0, 10); $money to Math.clamp($money - 2800, 0, 1000000)]]</li>
<li>[[save your money in case of future misfortune->May 1665][$money to Math.clamp($money + 2800, 0, 1000000)]]</li>
<li>[[take some time off and go fox hunting in the countryside->May 1665][$reputation to Math.clamp($reputation - 1, 0, 10)]]</li>
</ul>
<</if>>
/* Noble options */
<<if $socio is "nobles">>Court is abuzz with gossip about the war and there’s plenty to keep an ambitious courtier busy.
<br><br>Do you: <ul>
<li>[[throw in and help with the war effort->May 1665][$reputation to Math.clamp($reputation + 2, 0, 10); $money to Math.clamp($money - 10000, 0, 1000000)]]</li>
<li>[[keep yourself out of the fray and focus on your own needs->May 1665][$reputation to Math.clamp($reputation - 1, 0, 10)]]</li>
</ul>
<</if>>
<</nobr>><<set $investigate to 0>>
<<set $money to 0>>
<<set $expenses to 0>>
<<set $income to 0>>
<<set $hoh to 0>>
<<set $role to "0">>
<<set $disability to 0>>
<<set $reputation to 6>>
<<set $plagueInfection to 0>>
<<set $location to 0>>
<<set $impressed to 0>>
<<set $NPCs = []>>
<<set $NPCsExtended = []>>
<<set $FledFamily = []>>
<<set $NPCsServants = []>>
<<set $FledServants = []>>
<<set $NPCsMaster = []>>
<<set $masterStatus to "">>
<<set $fNames = {Elizabeth: 400, Anne: 370, Mary: 300, Margaret: 230, Jane: 150, Catherine: 190, Alice: 190, Dorothy: 190, Joan: 50, Frances: 50, Agnes: 50, Eleanor: 60, Cecily: 30, Bridget: 30, Sarah: 50, Isabel: 40, Margery: 28, Lucy: 20, Ursula: 20, Grace: 20, Christian: 20, Joyce: 20, Susan: 20, Winifred: 10, Barbara: 10, Constance: 10, Edith: 10, Maud: 20, Philippa: 10, Ellen: 10, Lettice: 10, Magdalen: 10, Maria: 10, Martha: 10, Thomasine: 10, Blanche: 10, Helen: 10, Joanna: 10, Judith: 10, Rose: 10, Gertrude: 10, Rebecca: 10, Hester: 10, Honora: 20, Mabel: 10, Susanna: 10,Sybil: 10, Amy: 10, Anna: 10, Audrey: 10, Emma: 10, Johanna: 10, Juliana: 10, Muriel: 10, Abigail: 10, Cecilia: 10, Christina: 10, Denise: 10, Faith: 10, Florence: 10, Francisca: 10, Grisel: 10, Inez: 10, Jeanne: 10, Jocosa: 10, Lora: 10, Matilda: 10, Penelope: 10, Sylvestra: 10, Theodosia: 10, Theophila: 10, Agatha: 10, Alathea: 10, Amata: 10, Arabella: 10, Beatrice: 10, Benedicta: 10, Camilla: 10, Cassandra: 10, Claude: 10, Clemence: 10, Diana: 10, Dorcas: 10, Esther: 10, Isotta: 10, Marcella: 10, Olive: 10,}>>
<<set $mNames = {
John: 1500, Thomas: 1300, William: 1300, Richard: 620, Robert: 600, Henry: 500, James: 430, George: 420, Edward: 400, Charles: 210, Francis: 200, Samuel: 200, Alexander: 150, Nicholas: 148, Peter: 120, Edmund: 120, Christopher: 110, David: 110, Anthony: 100, Hugh: 90, Joseph: 90, Andrew: 90, Roger: 80, Walter: 80, Ralph: 80, Arthur: 70, Philip: 70, Patrick: 70, Nathaniel: 70, Matthew: 70, Daniel: 60, Humphrey: 60, Stephen: 50, Benjamin: 50, Michael: 40, Archibald: 40, Gilbert: 40, Laurence: 40, Abraham: 30, Isaac: 30, Simon: 30, Paul: 30, Adam: 30, Martin: 30, Leonard: 30, Jean: 30, Lewis: 20, Timothy: 20, Jacob: 20, Bartholomew: 20, Bernard: 20, Rowland: 20, Theophilus: 20, Giles: 20, Jeremiah: 20, Joshua: 20, Oliver: 20, Clement: 10, Gabriel: 10, Maurice: 10, Owen: 10, Donald: 10, Miles: 10, Brian: 10, Luke: 10, Ambrose: 10, Jonathan: 10, Valentine: 10, Cuthbert: 10, Mark: 10, Moses: 10, Colin: 10, Dudley: 10, Geoffrey: 10, Gerard: 10, Gervase: 10, Josias: 10, Tobias: 10, Zachary: 10, Ferdinando: 10, Augustine: 10, Cornelius: 10, Gregory: 10, Herbert: 10, Josiah: 10, Marmaduke: 10, Pierre: 10, Aaron: 10, Ellis: 10, Jonas: 10, Lancelot: 10, Lionel: 10, Louis: 10, Nehemiah: 10, Sampson: 10, Sebastian: 10, Vincent: 10, Antonio: 10, Christian: 10, Denis: 10, Duncan: 10, Erasmus: 10, Everard: 10, Godfrey: 10, Jerome: 10, Morgan: 10, Neil: 10, Theodore: 10, Abel: 10, Adrian: 10, Barnabas: 10, Basil: 10, Elias: 10, Elisha: 10, Gerald: 10, Giovanni: 10, Griffith: 10, Guy: 10, Heneage: 10, Jan: 10, Matthias: 10, Obadiah: 10, Seth: 10,
}>>
<<set $nbNames to ["Thomas", "Thomasina", "Charlotte", "Charles", "Philippa", "Phillip", "John", "Joan"]>>
<<set $childRole to ["son", "daughter", "child"]>>
<<set $article to ["a", "an"]>>
<<set $heshe to ["he", "she", "they"]>>
<<set $hishers to ["his", "hers", "theirs"]>>
<<set $fumes = {}>>
<<set $remedies = {}>>
<<set $fumes.Incense = { name: "incense to burn in your home to prevent plague and clear out rooms after infection", quantity: 0, cost: 36 }>>
<<set $fumes.Purse = { name: "a purse of incense", quantity: 0, cost: 60 }>>
<<set $fumes.Fancy = { name: "St. Giles Powder", quantity: 0, cost: 192 }>>
<<set $fumes.Generic = { name: "brimstone and saltpeter with a little myrrh", quantity: 0, cost: 24 }>>
<<set $remedies.Plaster = { name: "a blistering plaster to break the buboes and draw out malignity", quantity: 0, cost: 21 }>>
<<set $remedies.Celestial = { name: "celestial water", quantity: 0, cost: 36 }>>
<<set $remedies.Treacle = { name: "a posset of London Treacle", quantity: 0, cost: 36 }>>
<<set $remedies.Suppository = { name: "a suppository of a fig filled with salt", quantity: 0 }>>
<<set $remedies.Cordial = { name: "a cordial tincture to be drunk for two days after infection", quantity: 0, cost: 12 }>>
<<set $remedies.Immodium = { name: "an anti-diarrheal posset made of plantain, sorrel, or knot grass", quantity: 0, cost: 0 }>>
<<set $decisions to []>>
<<set $quarantine to 0>>
<<set $plagueRevealed to 0>><<nobr>>
<<silently>>
<<fumigant-check>>
<<if tags().includes("storyline")>>
<<if _fumes gt 0 and random(1,2) eq 1>><<infection-program>>
<<elseif _fumes lt 1>><<infection-program>>
<</if>>
<<if visited() lte 1>><<income>><<expenses>><<disposable>><</if>>
<</if>>
<</silently>>
<<if tags().includes("storyline")>><h2><<print passage()>>, $location</h2><</if>>
<<if tags().includes("quarantine")>><h2><<print passage()>></h2><</if>>
<<silently>>
<<if $location is "inside the City walls" and hasVisited("June 1665")>><<set $apothecary to 1>> /*this is OBE since currently apothecary set to always show*/
<<elseif $location isnot "in another part of the western suburbs">>
<<if $location isnot "inside the City walls" and passage() is "June 1665">><<set $apothecary to 1>>
<</if>>
<<elseif $location is "in another part of the western suburbs" and passage() is "May 1665">><<set $apothecary to 1>>
<</if>>
<<if ndef _infectedFamily>><<set _infectedFamily = []>><</if>>
<</silently>>
<</nobr>>/* This adjusts the rate of infection for a specific location depending on how much time has passed in the game, starting at 5 plays (the first passage after the game starts proper). The play number roughly corresponds to our broad time events. */
<<nobr>>
<<silently>>
<<if passage() is "December 1664" or passage() is "January 1665" or passage() is "May 1665">>
<<elseif passage() is "June 1665">>
<<if not visited("Sickness")>>
<<if random(1,100) eq 1>>
<<set $plagueInfection to 1>>
<</if>>
<</if>>
<<for _i = 0; _i < $NPCs.length; _i++>>
<<if $NPCs[_i].health is "healthy">>
<<if random(1,100) lte 1>><<set $NPCs[_i].health to "infected">>
<</if>>
<</if>>
<</for>>
<<for _si = 0; _si < $NPCsServants.length; _si++>>
<<if $NPCsServants[_si].health is "healthy">>
<<if random(1,100) lte 1>><<set $NPCsServants[_si].health to "infected">><</if>>
<</if>>
<</for>>
<<for _mi = 0; _mi < $NPCsMaster.length; _mi++>>
<<if $NPCsMaster[_mi].health is "healthy">>
<<if random(1,100) lte 1>><<set $NPCsMaster[_mi].health to "infected">><</if>>
<</if>>
<</for>>
<<elseif passage() is "July 1665">>
<<if not visited("Sickness")>>
<<if random(1,13) eq 1>>
<<set $plagueInfection to 1>>
<</if>>
<</if>>
<<for _i = 0; _i < $NPCs.length; _i++>>
<<if $NPCs[_i].health is "healthy">>
<<if random(1,13) lte 1>><<set $NPCs[_i].health to "infected">>
<</if>>
<</if>>
<</for>>
<<for _si = 0; _si < $NPCsServants.length; _si++>>
<<if $NPCsServants[_si].health is "healthy">>
<<if random(1,13) lte 1>><<set $NPCsServants[_si].health to "infected">><</if>>
<</if>>
<</for>>
<<for _mi = 0; _mi < $NPCsMaster.length; _mi++>>
<<if $NPCsMaster[_mi].health is "healthy">>
<<if random(1,13) lte 1>><<set $NPCsMaster[_mi].health to "infected">><</if>>
<</if>>
<</for>>
<<elseif passage() is "August 1665">>
<<if not visited("Sickness")>>
<<if random(1,4) eq 1>>
<<set $plagueInfection to 1>>
<</if>>
<</if>>
<<for _i = 0; _i < $NPCs.length; _i++>>
<<if $NPCs[_i].health is "healthy">>
<<if random(1,4) lte 1>><<set $NPCs[_i].health to "infected">>
<</if>>
<</if>>
<</for>>
<<for _si = 0; _si < $NPCsServants.length; _si++>>
<<if $NPCsServants[_si].health is "healthy">>
<<if random(1,4) lte 1>><<set $NPCsServants[_si].health to "infected">><</if>>
<</if>>
<</for>>
<<for _mi = 0; _mi < $NPCsMaster.length; _mi++>>
<<if $NPCsMaster[_mi].health is "healthy">>
<<if random(1,4) lte 1>><<set $NPCsMaster[_mi].health to "infected">><</if>>
<</if>>
<</for>>
<<elseif passage() is "September 1665">>
<<if not visited("Sickness")>>
<<if random(1,20) eq 1>>
<<set $plagueInfection to 1>>
<</if>>
<</if>>
<<for _i = 0; _i < $NPCs.length; _i++>>
<<if $NPCs[_i].health is "healthy">>
<<if random(1,20) lte 1>><<set $NPCs[_i].health to "infected">>
<</if>>
<</if>>
<</for>>
<<for _si = 0; _si < $NPCsServants.length; _si++>>
<<if $NPCsServants[_si].health is "healthy">>
<<if random(1,20) lte 1>><<set $NPCsServants[_si].health to "infected">><</if>>
<</if>>
<</for>>
<<for _mi = 0; _mi < $NPCsMaster.length; _mi++>>
<<if $NPCsMaster[_mi].health is "healthy">>
<<if random(1,20) lte 1>><<set $NPCsMaster[_mi].health to "infected">><</if>>
<</if>>
<</for>>
<<elseif passage() is "October 1665">>
<<if not visited("Sickness")>>
<<if random(1,10) eq 1>>
<<set $plagueInfection to 1>>
<</if>>
<</if>>
<<for _i = 0; _i < $NPCs.length; _i++>>
<<if $NPCs[_i].health is "healthy">>
<<if random(1,10) lte 1>><<set $NPCs[_i].health to "infected">>
<</if>>
<</if>>
<</for>>
<<for _si = 0; _si < $NPCsServants.length; _si++>>
<<if $NPCsServants[_si].health is "healthy">>
<<if random(1,10) lte 1>><<set $NPCsServants[_si].health to "infected">><</if>>
<</if>>
<</for>>
<<for _mi = 0; _mi < $NPCsMaster.length; _mi++>>
<<if $NPCsMaster[_mi].health is "healthy">>
<<if random(1,10) lte 1>><<set $NPCsMaster[_mi].health to "infected">><</if>>
<</if>>
<</for>>
<<elseif passage() is "November 1665">>
<<if not visited("Sickness")>>
<<if random(1,50) eq 1>>
<<set $plagueInfection to 1>>
<</if>>
<</if>>
<<for _i = 0; _i < $NPCs.length; _i++>>
<<if $NPCs[_i].health is "healthy">>
<<if random(1,50) lte 1>><<set $NPCs[_i].health to "infected">>
<</if>>
<</if>>
<</for>>
<<for _si = 0; _si < $NPCsServants.length; _si++>>
<<if $NPCsServants[_si].health is "healthy">>
<<if random(1,50) lte 1>><<set $NPCsServants[_si].health to "infected">><</if>>
<</if>>
<</for>>
<<for _mi = 0; _mi < $NPCsMaster.length; _mi++>>
<<if $NPCsMaster[_mi].health is "healthy">>
<<if random(1,50) lte 1>><<set $NPCsMaster[_mi].health to "infected">><</if>>
<</if>>
<</for>>
<<elseif passage() is "December 1665">>
<<if not visited("Sickness")>>
<<if random(1,500) eq 1>>
<<set $plagueInfection to 1>>
<</if>>
<</if>>
<<for _i = 0; _i < $NPCs.length; _i++>>
<<if $NPCs[_i].health is "healthy">>
<<if random(1,500) lte 1>><<set $NPCs[_i].health to "infected">>
<</if>>
<</if>>
<</for>>
<<for _si = 0; _si < $NPCsServants.length; _si++>>
<<if $NPCsServants[_si].health is "healthy">>
<<if random(1,500) lte 1>><<set $NPCsServants[_si].health to "infected">><</if>>
<</if>>
<</for>>
<<for _mi = 0; _mi < $NPCsMaster.length; _mi++>>
<<if $NPCsMaster[_mi].health is "healthy">>
<<if random(1,500) lte 1>><<set $NPCsMaster[_mi].health to "infected">><</if>>
<</if>>
<</for>>
<<else>>
<<if not visited("Sickness")>>
<<if random(1,1000) eq 1>>
<<set $plagueInfection to 1>>
<</if>>
<</if>>
<<for _i = 0; _i < $NPCs.length; _i++>>
<<if $NPCs[_i].health is "healthy">>
<<if random(1,1000) lte 1>><<set $NPCs[_i].health to "infected">>
<</if>>
<</if>>
<</for>>
<<for _si = 0; _si < $NPCsServants.length; _si++>>
<<if $NPCsServants[_si].health is "healthy">>
<<if random(1,1000) lte 1>><<set $NPCsServants[_si].health to "infected">><</if>>
<</if>>
<</for>>
<<for _mi = 0; _mi < $NPCsMaster.length; _mi++>>
<<if $NPCsMaster[_mi].health is "healthy">>
<<if random(1,1000) lte 1>><<set $NPCsMaster[_mi].health to "infected">><</if>>
<</if>>
<</for>>
<</if>>
<<set _infectedFamily = []>>
<<for _idx, _household range $NPCs>>
<<if _household.health is "infected">>
<<set _infectedFamily.push(_idx)>>
<</if>>
<</for>>
<</silently>>
<</nobr>>/* This adjusts the rate of infection for a specific location depending on how much time has passed in the game, starting at 5 plays (the first passage after the game starts proper). The play number roughly corresponds to our broad time events.
<<nobr>>
<<silently>>
<<if passage() is "December 1664" or passage() is "January 1665" or passage() is "May 1665">>
<<elseif passage() is "June 1665">>
<<if not visited("Sickness")>>
<<if random(1,500) eq 1>>
<<set $plagueInfection to 1>>
<</if>>
<</if>>
<<for _i = 0; _i < $NPCs.length; _i++>>
<<if $NPCs[_i].health is "healthy">>
<<if random(1,500) lte 1>><<set $NPCs[_i].health to "infected">>
<</if>>
<</if>>
<</for>>
<<for _si = 0; _si < $NPCsServants.length; _si++>>
<<if $NPCsServants[_si].health is "healthy">>
<<if random(1,500) lte 1>><<set $NPCsServants[_si].health to "infected">><</if>>
<</if>>
<</for>>
<<for _mi = 0; _mi < $NPCsMaster.length; _mi++>>
<<if $NPCsMaster[_mi].health is "healthy">>
<<if random(1,500) lte 1>><<set $NPCsMaster[_mi].health to "infected">><</if>>
<</if>>
<</for>>
<<elseif passage() is "July 1665">>
<<if not visited("Sickness")>>
<<if random(1,50) eq 1>>
<<set $plagueInfection to 1>>
<</if>>
<</if>>
<<for _i = 0; _i < $NPCs.length; _i++>>
<<if $NPCs[_i].health is "healthy">>
<<if random(1,50) lte 1>><<set $NPCs[_i].health to "infected">>
<</if>>
<</if>>
<</for>>
<<for _si = 0; _si < $NPCsServants.length; _si++>>
<<if $NPCsServants[_si].health is "healthy">>
<<if random(1,50) lte 1>><<set $NPCsServants[_si].health to "infected">><</if>>
<</if>>
<</for>>
<<for _mi = 0; _mi < $NPCsMaster.length; _mi++>>
<<if $NPCsMaster[_mi].health is "healthy">>
<<if random(1,50) lte 1>><<set $NPCsMaster[_mi].health to "infected">><</if>>
<</if>>
<</for>>
<<elseif passage() is "August 1665">>
<<if not visited("Sickness")>>
<<if random(1,3) eq 1>>
<<set $plagueInfection to 1>>
<</if>>
<</if>>
<<for _i = 0; _i < $NPCs.length; _i++>>
<<if $NPCs[_i].health is "healthy">>
<<if random(1,3) lte 1>><<set $NPCs[_i].health to "infected">>
<</if>>
<</if>>
<</for>>
<<for _si = 0; _si < $NPCsServants.length; _si++>>
<<if $NPCsServants[_si].health is "healthy">>
<<if random(1,3) lte 1>><<set $NPCsServants[_si].health to "infected">><</if>>
<</if>>
<</for>>
<<for _mi = 0; _mi < $NPCsMaster.length; _mi++>>
<<if $NPCsMaster[_mi].health is "healthy">>
<<if random(1,3) lte 1>><<set $NPCsMaster[_mi].health to "infected">><</if>>
<</if>>
<</for>>
<<elseif passage() is "September 1665">>
<<if not visited("Sickness")>>
<<if random(1,2) eq 1>>
<<set $plagueInfection to 1>>
<</if>>
<</if>>
<<for _i = 0; _i < $NPCs.length; _i++>>
<<if $NPCs[_i].health is "healthy">>
<<if random(1,2) lte 1>><<set $NPCs[_i].health to "infected">>
<</if>>
<</if>>
<</for>>
<<for _si = 0; _si < $NPCsServants.length; _si++>>
<<if $NPCsServants[_si].health is "healthy">>
<<if random(1,2) lte 1>><<set $NPCsServants[_si].health to "infected">><</if>>
<</if>>
<</for>>
<<for _mi = 0; _mi < $NPCsMaster.length; _mi++>>
<<if $NPCsMaster[_mi].health is "healthy">>
<<if random(1,2) lte 1>><<set $NPCsMaster[_mi].health to "infected">><</if>>
<</if>>
<</for>>
<<elseif passage() is "October 1665">>
<<if not visited("Sickness")>>
<<if random(1,5) eq 1>>
<<set $plagueInfection to 1>>
<</if>>
<</if>>
<<for _i = 0; _i < $NPCs.length; _i++>>
<<if $NPCs[_i].health is "healthy">>
<<if random(1,5) lte 1>><<set $NPCs[_i].health to "infected">>
<</if>>
<</if>>
<</for>>
<<for _si = 0; _si < $NPCsServants.length; _si++>>
<<if $NPCsServants[_si].health is "healthy">>
<<if random(1,5) lte 1>><<set $NPCsServants[_si].health to "infected">><</if>>
<</if>>
<</for>>
<<for _mi = 0; _mi < $NPCsMaster.length; _mi++>>
<<if $NPCsMaster[_mi].health is "healthy">>
<<if random(1,5) lte 1>><<set $NPCsMaster[_mi].health to "infected">><</if>>
<</if>>
<</for>>
<<elseif passage() is "November 1665">>
<<if not visited("Sickness")>>
<<if random(1,30) eq 1>>
<<set $plagueInfection to 1>>
<</if>>
<</if>>
<<for _i = 0; _i < $NPCs.length; _i++>>
<<if $NPCs[_i].health is "healthy">>
<<if random(1,30) lte 1>><<set $NPCs[_i].health to "infected">>
<</if>>
<</if>>
<</for>>
<<for _si = 0; _si < $NPCsServants.length; _si++>>
<<if $NPCsServants[_si].health is "healthy">>
<<if random(1,30) lte 1>><<set $NPCsServants[_si].health to "infected">><</if>>
<</if>>
<</for>>
<<for _mi = 0; _mi < $NPCsMaster.length; _mi++>>
<<if $NPCsMaster[_mi].health is "healthy">>
<<if random(1,30) lte 1>><<set $NPCsMaster[_mi].health to "infected">><</if>>
<</if>>
<</for>>
<<elseif passage() is "December 1665">>
<<if random(1,100) lte 1>>
<<set $plagueInfection to 1>>
<</if>>
<<for _i = 0; _i < $NPCs.length; _i++>>
<<if $NPCs[_i].health is "healthy">>
<<if random(1,100) lte 1>><<set $NPCs[_i].health to "infected">>
<</if>>
<</if>>
<</for>>
<<for _si = 0; _si < $NPCsServants.length; _si++>>
<<if $NPCsServants[_si].health is "healthy">>
<<if random(1,100) lte 1>><<set $NPCsServants[_si].health to "infected">><</if>>
<</if>>
<</for>>
<<for _mi = 0; _mi < $NPCsMaster.length; _mi++>>
<<if $NPCsMaster[_mi].health is "healthy">>
<<if random(1,100) lte 1>><<set $NPCsMaster[_mi].health to "infected">><</if>>
<</if>>
<</for>>
<<else>>
<<if random(1,1000) lte 1>>
<<set $plagueInfection to 1>>
<</if>>
<<for _i = 0; _i < $NPCs.length; _i++>>
<<if $NPCs[_i].health is "healthy">>
<<if random(1,1000) lte 1>><<set $NPCs[_i].health to "infected">>
<</if>>
<</if>>
<</for>>
<<for _si = 0; _si < $NPCsServants.length; _si++>>
<<if $NPCsServants[_si].health is "healthy">>
<<if random(1,1000) lte 1>><<set $NPCsServants[_si].health to "infected">><</if>>
<</if>>
<</for>>
<<for _mi = 0; _mi < $NPCsMaster.length; _mi++>>
<<if $NPCsMaster[_mi].health is "healthy">>
<<if random(1,1000) lte 1>><<set $NPCsMaster[_mi].health to "infected">><</if>>
<</if>>
<</for>>
<</if>>
<<set _infectedFamily = []>>
<<for _idx, _household range $NPCs>>
<<if _household.health is "infected">>
<<set _infectedFamily.push(_idx)>>
<</if>>
<</for>>
<</silently>>
<</nobr>><<widget "setAge">>
<<nobr>>
<<if $minAge lte 0>>
<<set $minAge to 0>>
<</if>>
<<if $maxAge gte 100>>
<<set $maxAge to 100>>
<</if>>
<<set $NPCAgeNum to random($minAge,$maxAge)>>
<<if $NPCAgeNum gte 50>><<set $NPCAge to "elderly adult">>
<<elseif $NPCAgeNum gte 30>><<set $NPCAge to "middle-aged adult">>
<<elseif $NPCAgeNum gte 16>><<set $NPCAge to "young adult">>
<<elseif $NPCAgeNum gte 10>><<set $NPCAge to "adolescent">>
<<elseif $NPCAgeNum gte 5>><<set $NPCAge to "child">>
<<else>><<set $NPCAge to "infant">>
<</if>>
<</nobr>>
<</widget>>
<<widget "addPartnerNPC">>
<<nobr>>
<<set $minAge to $agenum-15>>
<<if $minAge lte 16>>
<<set $minAge to 16>>
<</if>>
<<set $maxAge to $agenum+15>>
<<if $maxAge gte 101>>
<<set $maxAge to 100>>
<</if>>
<<setAge>>
<<if $gender is "female">>
<<set $NPCs.push({name: weightedEither($mNames), agenum: $NPCAgeNum, age: $NPCAge, relationship: "husband", health: "healthy", location: $location})>>
<</if>>
<<if $gender is "male">>
<<set $NPCs.push({name: weightedEither($fNames), agenum: $NPCAgeNum, age: $NPCAge, relationship: "wife", health: "healthy", location: $location})>>
<</if>>
/* <<if $gender is "nonbinary">>
<<set $NPCs.push({name: $nbNames.pluck(), agenum: $NPCAgeNum, age: $NPCAge, relationship: "spouse", health: "healthy", location: $location})>>
<</if>> */
/*<<silently>><<for _d range _deceased>><<if $NPCs[_d].relationship is "wife">><<set $relationship to "single">><</if>><</for>><</silently>>*/
<</nobr>>
<</widget>>
<<widget "addNewbornNPC">>
<<nobr>>
<<if random(1,2) eq 1>>
<<set $NPCs.push({ name: weightedEither($fNames), agenum: 0, age: "infant", relationship: "daughter", health: "healthy", location: $location})>>
<<else>>
<<set $NPCs.push({ name: weightedEither($mNames), agenum: 0, age: "infant", relationship: "son", health: "healthy", location: $location})>>
<</if>>
<</nobr>>
<</widget>>
<<widget "addChildNPC">>
<<set $minAge to 0>>
<<set $maxAge to $agenum-20>>
<<setAge>>
<<nobr>>
<<if random(1,2) eq 1>>
<<set _n to weightedEither($fNames)>><<for ; _usedChildNames.includes(_n); >><<set _n to weightedEither($fNames)>><</for>><<set _usedChildNames.push(_n)>><<set $NPCs.push({ name: _n, agenum: $NPCAgeNum, age: $NPCAge, relationship: "daughter", health: "healthy", location: $location})>>
<<else>>
<<set _n to weightedEither($mNames)>><<for ; _usedChildNames.includes(_n); >><<set _n to weightedEither($mNames)>><</for>><<set _usedChildNames.push(_n)>><<set $NPCs.push({ name: _n, agenum: $NPCAgeNum, age: $NPCAge, relationship: "son", health: "healthy", location: $location})>>
<</if>>
<</nobr>>
<</widget>>
<<widget "addParentNPC">>
/* generate mother */
<<set $hasMother to false>><<set $hasFather to false>>
<<set $minAge to $agenum+20>>
<<set $maxAge to $agenum+40>>
<<if $maxAge gte 101>>
<<set $maxAge to 100>>
<</if>>
<<setAge>>
<<if random(1,4) lte 3>>
<<set $MotherAge to $NPCAgeNum>>
/* 1 in 6 chance of step-parent */
<<if random(1,6) is 1>>
<<set _type to "step-mother">>
<<else>>
<<set _type to "mother">>
<</if>>
/* generate and place in extended household if player older or married/widowed */
<<if $agenum lte 30>>
<<if $relationship is "single" or $relationship is "betrothed">>
<<set $NPCs.push({ name: weightedEither($fNames), agenum: $NPCAgeNum, age: $NPCAge, relationship: _type, health: "healthy", location: $location})>>
<<else>>
<<set $NPCsExtended.push({ name: weightedEither($fNames), agenum: $NPCAgeNum, age: $NPCAge, relationship: _type, health: "healthy", location: $location})>>
<</if>>
<<else>>
<<set $NPCsExtended.push({ name: weightedEither($fNames), agenum: $NPCAgeNum, age: $NPCAge, relationship: _type, health: "healthy", location: $location})>>
<</if>>
<<set $hasMother to true>>
<</if>>
/* generate father */
<<set $minAge to $agenum+20>>
<<set $maxAge to $agenum+60>>
<<if $maxAge gte 101>>
<<set $maxAge to 100>>
<</if>>
<<setAge>>
<<if random(1,4) lte 3>>
<<set $FatherAge to $NPCAgeNum>>
/* 1 in 6 chance of step-parent */
<<if random(1,6) is 1>>
<<set _type to "step-father">>
<<else>>
<<set _type to "father">>
<</if>>
/* generate and place in extended household if player older or married/widowed */
<<if $agenum lte 30 and $relationship is "single">>
<<set $NPCs.push({ name: weightedEither($mNames), agenum: $NPCAgeNum, age: $NPCAge, relationship: _type, health: "healthy", location: $location})>>
<<else>>
<<set $NPCsExtended.push({ name: weightedEither($mNames), agenum: $NPCAgeNum, age: $NPCAge, relationship: _type, health: "healthy", location: $location})>>
<</if>>
<<set $hasFather to true>>
<</if>>
/* no orphaned children/adolescents at beginning of game */
<<if $age is "child" or $age is "adolescent">>
<<if not $hasMother and not $hasFather>>
<<if random(1,2) is 1>>
<<set $minAge to $agenum+20>>
<<set $maxAge to $agenum+40>>
<<if $maxAge gte 101>>
<<set $maxAge to 100>>
<</if>>
<<setAge>>
<<set $NPCs.push({ name: weightedEither($fNames), agenum: $NPCAgeNum, age: $NPCAge, relationship: "mother", health: "healthy", location: $location})>>
/* 1 in 6 chance for step-mother */
<<if random(1,6) is 1>>
<<set $NPCs[$NPCs.length-1].relationship to "step-mother">>
<</if>>
<<set $MotherAge to $NPCAgeNum>>
<<set $hasMother to true>>
<<else>>
<<set $minAge to $agenum+20>>
<<set $maxAge to $agenum+60>>
<<if $maxAge gte 101>>
<<set $maxAge to 100>>
<</if>>
<<setAge>>
<<set $NPCs.push({ name: weightedEither($mNames), agenum: $NPCAgeNum, age: $NPCAge, relationship: "father", health: "healthy", location: $location})>>
/* 1 in 6 chance for step-father */
<<if random(1,6) is 1>>
<<set $NPCs[$NPCs.length-1].relationship to "step-father">>
<</if>>
<<set $FatherAge to $NPCAgeNum>>
<<set $hasFather to true>>
<</if>>
<</if>>
<</if>>
<</widget>>
<<widget "addSiblingsNPC">>
/* check for parents' ages first */
<<if $hasMother>>
<<set $minAge to $MotherAge-40>>
<<if $minAge lte 0>>
<<set $minAge to 0>>
<</if>>
<<set $maxAge to $MotherAge-20>>
<<elseif $hasFather>>
<<set $minAge to 0>>
<<set $maxAge to $FatherAge-20>>
<<else>>
<<set $minAge to $agenum-10>>
<<if $minAge lte 0>>
<<set $minAge to 0>>
<</if>>
<<set $maxAge to $agenum+10>>
<</if>>
<<setAge>>
<<if $agenum lte 30 and $relationship is "single" and $NPCAgeNum lte 30>>
<<if random(1,2) eq 1>>
<<set _n to weightedEither($fNames)>><<for ; _usedSibNames.includes(_n); >><<set _n to weightedEither($fNames)>><</for>><<set _usedSibNames.push(_n)>><<set $NPCs.push({ name: _n, agenum: $NPCAgeNum, age: $NPCAge, relationship: "sister", health: "healthy", location: $location})>>
<<else>>
<<set _n to weightedEither($mNames)>><<for ; _usedSibNames.includes(_n); >><<set _n to weightedEither($mNames)>><</for>><<set _usedSibNames.push(_n)>><<set $NPCs.push({ name: _n, agenum: $NPCAgeNum, age: $NPCAge, relationship: "brother", health: "healthy", location: $location})>>
<</if>>
/* <<if random(1,20) eq 1>>
<<set $NPCs.push({ name: $nbNames.pluck(), agenum: $NPCAgeNum, age: $NPCAge, relationship: "sibling", health: "healthy", location: $location})>>
<</if>> */
<<else>>
<<if random(1,2) eq 1>>
<<set _n to weightedEither($fNames)>><<for ; _usedSibNames.includes(_n); >><<set _n to weightedEither($fNames)>><</for>><<set _usedSibNames.push(_n)>><<set $NPCsExtended.push({ name: _n, agenum: $NPCAgeNum, age: $NPCAge, relationship: "sister", health: "healthy", location: $location})>>
<<else>>
<<set _n to weightedEither($mNames)>><<for ; _usedSibNames.includes(_n); >><<set _n to weightedEither($mNames)>><</for>><<set _usedSibNames.push(_n)>><<set $NPCsExtended.push({ name: _n, agenum: $NPCAgeNum, age: $NPCAge, relationship: "brother", health: "healthy", location: $location})>>
<</if>>
/* <<if random(1,20) eq 1>><<set $NPCsExtended.push({ name: $nbNames.pluck(), agenum: $NPCAgeNum, age: $NPCAge, relationship: "sibling", health: "healthy", location: $location})>>
<</if>> */
<</if>>
<</widget>>
<<widget "NPCpronouns">><<nobr>>
<<for _i = 0; _i < $NPCs.length; _i++>>
<<if $NPCs[_i].relationship is "niece" or $NPCs[_i].relationship is "daughter" or $NPCs[_i].relationship is "sister" or $NPCs[_i].relationship is "mother" or $NPCs[_i].relationship is "step-mother">>
<<set $NPCs[_i].hishers to "her">><<set $NPCs[_i].heshe to "she">>
<<elseif $NPCs[_i].relationship is "nephew" or $NPCs[_i].relationship is "son" or $NPCs[_i].relationship is "brother" or $NPCs[_i].relationship is "father" or $NPCs[_i].relationship is "step-father">>
<<set $NPCs[_i].hishers to "his">><<set $NPCs[_i].heshe to "he">>
<<else>><<set $NPCs[_i].hishers to "theirs">><<set $NPCs[_i].heshe to "they">>
<</if>>
<</for>>
<<for _e = 0; _e < $NPCsExtended.length; _e++>>
<<if $NPCsExtended[_e].relationship is "sister" or $NPCsExtended[_e].relationship is "niece" or $NPCsExtended[_e].relationship is "mother" or $NPCsExtended[_e].relationship is "daughter" or $NPCsExtended[_e].relationship is "step-mother">>
<<set $NPCsExtended[_e].hishers to "her">><<set $NPCsExtended[_e].heshe to "she">>
<<elseif $NPCsExtended[_e].relationship is "brother" or $NPCsExtended[_e].relationship is "nephew" or $NPCsExtended[_e].relationship is "father" or $NPCsExtended[_e].relationship is "son" or $NPCsExtended[_e].relationship is "step-father">>
<<set $NPCsExtended[_e].hishers to "his">><<set $NPCsExtended[_e].heshe to "he">>
<<else>><<set $NPCsExtended[_e].hishers to "their">><<set $NPCsExtended[_e].heshe to "they">>
<</if>>
<</for>>
<</nobr>><</widget>>
/* add household members for upper class */
/* note: servants are not given specific age numbers */
<<widget "addServantNPC">><<nobr>>
<<if $socio is "nobles">>
<<set $servants to random(8,12)>>
<<for _s to 0; _s lt $servants; _s++>>
<<if random(1,2) eq 1>>
<<set $NPCsServants.push({name: weightedEither($fNames), age: either("young adult", "middle-aged adult"), relationship: "servant", health: "healthy", location: $location})>>
<<else>>
<<set $NPCsServants.push({name: weightedEither($mNames), age: either("young adult", "middle-aged adult"), relationship: "servant", health: "healthy", location: $location})>>
<</if>>
<</for>>
<<elseif $socio is "merchants">>
<<set $servants to random(1,3)>>
<</if>>
<</nobr>><</widget>>
<<widget "addMasterHousehold">><<nobr>>
<<if $socio is "servants">>
<<set $masterStatus to either("artisans", "merchants", "nobles")>>
<<else>>
<<set $masterStatus to "artisans">>
<</if>>
<<set _nomasterMother to true>>
<<set _nomasterFather to true>>
<<set _usedMasterChildNames to []>>
<<if $masterStatus is "artisans">>
<<set _masterHHSize to random(2,4)>>
<<elseif $masterStatus is "merchants">>
<<set _masterHHSize to random(3,6)>>
<<elseif $masterStatus is "nobles">>
<<set _masterHHSize to random(5,10)>>
<</if>>
/* Always generate the master first */
<<set _masterAgenum to random(30,76)>>
<<if _masterAgenum gte 50>><<set _masterAge to "elderly adult">><<else>><<set _masterAge to "middle-aged adult">><</if>>
<<set $NPCsMaster.push({name: weightedEither($mNames), age: _masterAge, agenum: _masterAgenum, relationship: "master", health: "healthy", location: $location})>>
<<if random (1,2) eq 1 and _haswife>>
<<set _fRel to "master's wife">>
<<set $minAge to _masterAgenum-20>>
<<if $minAge lte 15>>
<<set $minAge to 16>>
<</if>>
<<set $maxAge to _masterAgenum+30>>
<<setAge>>
<<set $NPCsMaster.push({name: weightedEither($fNames), agenum: $NPCAgeNum, age: $NPCAge, relationship: "mistress", health: "healthy", location: $location})>>
<<set _mistressAgenum to $NPCAgeNum>>
<<set _mhhInitsize to 2>>
<<else>>
<<set _mistressAgenum to _masterAgenum>>
<<set _mhhInitsize to 1>>
<</if>>
<<for _m to 0; _m lt _masterHHSize-_mhhInitsize; _m++>>
<<if random(1,2) eq 1>>
<<if _nomasterMother>>
<<set _fRel to either("master's daughter", "master's mother", "female servant")>>
<<else>>
<<set _fRel to either("master's daughter", "female servant")>>
<</if>>
<<if _fRel is "master's mother">>
<<set $minAge to _masterAgenum+20>>
<<set $maxAge to _masterAgenum+42>>
<<if $maxAge gte 100>>
<<set $maxAge to 100>>
<</if>>
<<setAge>>
<<set $NPCsMaster.push({name: weightedEither($fNames), agenum: $NPCAgeNum, age: $NPCAge, relationship: "master's mother", health: "healthy", location: $location})>>
<<set _nomasterMother to false>>
<<elseif _fRel is "female servant">>
<<set $minAge to 16>>
<<set $maxAge to 76>>
<<setAge>>
<<set $NPCsMaster.push({name: weightedEither($fNames), agenum: $NPCAgeNum, age: $NPCAge, relationship: "female servant", health: "healthy", location: $location})>>
<<else>>
<<set $minAge to 0>>
<<set $maxAge to _mistressAgenum-16>>
<<setAge>>
<<set _n to weightedEither($fNames)>><<for ; _usedMasterChildNames.includes(_n); >><<set _n to weightedEither($fNames)>><</for>><<set _usedMasterChildNames.push(_n)>><<set $NPCsMaster.push({name: _n, agenum: $NPCAgeNum, age: $NPCAge, relationship: "master's daughter", health: "healthy", location: $location})>>
<</if>>
<<else>>
<<if _nomasterFather>>
<<set _fRel to either("master's son", "master's father", "male servant")>>
<<else>>
<<set _fRel to either("master's son", "male servant")>>
<</if>>
<<if _mRel is "master's father">>
<<set $minAge to _masterAgenum+20>>
<<set $maxAge to _masterAgenum+100>>
<<if $maxAge gte 100>>
<<set $maxAge to 100>>
<</if>>
<<setAge>>
<<set $NPCsMaster.push({name: weightedEither($mNames), agenum: $NPCAgeNum, age: $NPCAge, relationship: "master's father", health: "healthy", location: $location})>>
<<set _nomasterFather to false>>
<<elseif _mRel is "male servant">>
<<set $minAge to 16>>
<<set $maxAge to 76>>
<<setAge>>
<<set $NPCsMaster.push({name: weightedEither($mNames), agenum: $NPCAgeNum, age: $NPCAge, relationship: "male servant", health: "healthy", location: $location})>>
<<else>>
<<set $minAge to 0>>
<<set $maxAge to _mistressAgenum-16>>
<<setAge>>
<<set _n to weightedEither($mNames)>><<for ; _usedMasterChildNames.includes(_n); >><<set _n to weightedEither($mNames)>><</for>><<set _usedMasterChildNames.push(_n)>><<set $NPCsMaster.push({name: _n, agenum: $NPCAgeNum, age: $NPCAge, relationship: "master's son", health: "healthy", location: $location})>>
<</if>>
<</if>>
<</for>><</nobr>>
<</widget>>
/* set player name based on frequency of names in 1665 */
<<widget "playerName">>
/* boost origin-appropriate names by 5x */
<<if $origin is "Ireland">>
<<set $fNames.Bridget *= 5>><<set $fNames.Honora *= 5>><<set $fNames.Grisel *= 5>><<set $fNames.Joan *= 5>><<set $fNames.Agnes *= 5>>
<<set $mNames.Patrick *= 5>><<set $mNames.Owen *= 5>><<set $mNames.Brian *= 5>><<set $mNames.Neil *= 5>><<set $mNames.Donald *= 5>><<set $mNames.Morgan *= 5>><<set $mNames.Denis *= 5>><<set $mNames.Gerald *= 5>><<set $mNames.Maurice *= 5>><<set $mNames.Hugh *= 5>>
<<elseif $origin is "Scotland">>
<<set $fNames.Grisel *= 5>><<set $fNames.Muriel *= 5>><<set $fNames.Christian *= 5>><<set $fNames.Maud *= 5>><<set $fNames.Agnes *= 5>><<set $fNames.Margaret *= 5>>
<<set $mNames.Archibald *= 5>><<set $mNames.Duncan *= 5>><<set $mNames.Colin *= 5>><<set $mNames.Donald *= 5>><<set $mNames.Neil *= 5>><<set $mNames.Alexander *= 5>><<set $mNames.James *= 5>><<set $mNames.David *= 5>><<set $mNames.Andrew *= 5>>
<<elseif $origin is "the Dutch Republic">>
<<set $fNames.Jeanne *= 5>><<set $fNames.Theodosia *= 5>><<set $fNames.Theophila *= 5>><<set $fNames.Agnes *= 5>><<set $fNames.Johanna *= 5>><<set $fNames.Margaret *= 5>><<set $fNames.Maria *= 5>><<set $fNames.Gertrude *= 5>><<set $fNames.Christina *= 5>><<set $fNames.Barbara *= 5>><<set $fNames.Cecilia *= 5>><<set $fNames.Blanche *= 5>><<set $fNames.Philippa *= 5>><<set $fNames.Matilda *= 5>><<set $fNames.Anna *= 5>><<set $fNames.Emma *= 5>>
<<set $mNames.Jan *= 5>><<set $mNames.Cornelius *= 5>><<set $mNames.Matthias *= 5>><<set $mNames.Adrian *= 5>><<set $mNames.Gerard *= 5>><<set $mNames.Elias *= 5>><<set $mNames.Abel *= 5>><<set $mNames.Christian *= 5>>
<<elseif $origin is "France">>
<<set $fNames.Clemence *= 5>><<set $fNames.Claude *= 5>><<set $fNames.Benedicta *= 5>><<set $fNames.Amata *= 5>><<set $fNames.Sylvestra *= 5>><<set $fNames.Theodosia *= 5>><<set $fNames.Theophila *= 5>><<set $fNames.Blanche *= 5>><<set $fNames.Denise *= 5>><<set $fNames.Cecilia *= 5>><<set $fNames.Jeanne *= 5>><<set $fNames.Frances *= 5>><<set $fNames.Maria *= 5>><<set $fNames.Magdalen *= 5>>
<<set $mNames.Jean *= 5>><<set $mNames.Pierre *= 5>><<set $mNames.Louis *= 5>><<set $mNames.Guy *= 5>><<set $mNames.Gervase *= 5>><<set $mNames.Geoffrey *= 5>><<set $mNames.Gerard *= 5>><<set $mNames.Maurice *= 5>><<set $mNames.Bernard *= 5>><<set $mNames.Giles *= 5>><<set $mNames.Denis *= 5>><<set $mNames.Vincent *= 5>><<set $mNames.Sebastian *= 5>><<set $mNames.Valentine *= 5>><<set $mNames.Ferdinando *= 5>><<set $mNames.Antonio *= 5>><<set $mNames.Giovanni *= 5>><<set $mNames.Francis *= 5>>
<<elseif $origin is "somewhere else">>
<<set $fNames.Francisca *= 5>><<set $fNames.Inez *= 5>><<set $fNames.Isotta *= 5>><<set $fNames.Benedicta *= 5>><<set $fNames.Camilla *= 5>><<set $fNames.Marcella *= 5>><<set $fNames.Amata *= 5>><<set $fNames.Theodosia *= 5>><<set $fNames.Theophila *= 5>><<set $fNames.Florence *= 5>><<set $fNames.Cecilia *= 5>>
<<set $mNames.Antonio *= 5>><<set $mNames.Giovanni *= 5>><<set $mNames.Ferdinando *= 5>><<set $mNames.Sebastian *= 5>><<set $mNames.Erasmus *= 5>><<set $mNames.Theophilus *= 5>><<set $mNames.Josias *= 5>><<set $mNames.Tobias *= 5>><<set $mNames.Augustine *= 5>><<set $mNames.Basil *= 5>><<set $mNames.Jerome *= 5>><<set $mNames.Lionel *= 5>><<set $mNames.Lancelot *= 5>>
<</if>>
<<if $gender eq "female">><<set $name = weightedEither($fNames)>>
<<elseif $gender eq "male">><<set $name = weightedEither($mNames)>>
<</if>>
<</widget>>
<<widget "playerAge">>
<<if $age eq "child">><<set $agenum to random(5,9)>>
<<elseif $age eq "adolescent">><<set $agenum to random(10,15)>>
<<elseif $age eq "young adult">><<set $agenum to random(16,29)>><<set $hoh to 1>>
<<elseif $age eq "middle-aged adult">><<set $agenum to random(30,49)>><<set $hoh to 1>>
<<elseif $age eq "elderly adult">><<set $agenum to random(50,76)>><<set $hoh to 1>><</if>>
<</widget>>
<<widget "parish">>
<<if $location is "inside the City walls">>
<<set $parish to either("St Alban Wood Street", "All Hallows Barking", "All Hallows Bread Street", "All Hallows the Great", "All Hallows Honey Lane", "All Hallows the Less", "All Hallows Lombard Street", "All Hallows Staining", "All Hallows London Wall", "St Alphage", "St Andrew Hubbard", "St Andrew Undershaft", "St Andrew Wardrobe", "St Anne Aldersgate", "St Ann Blackfriars", "St Antholin", "St Austin", "St Bartholomew Exchange", "St Benet Fink", "St Benet Gracechurch", "St Benet Paul's Wharf", "St Benet Sherehog", "St Botolph Billingsgate", "Christ Church", "St Christopher", "St Clement Eastcheap", "St Dionis Backchurch", "St Dunstan East", "St Edmund the King", "St Ethelburga", "St Faith under St Paul's", "St Vedast alias Foster", "St Gabriel Fenchurch", "St George Botolph Lane", "St Gregory by St Paul's", "St Helen", "St James Duke's Place", "St James Garlickhithe", "St John Baptist", "St John Evangelist", "St John Zachary", "St Katherine Coleman", "St Katherine Creechurch", "St Lawrence Jewry", "St Lawrence Pountney", "St Leonard Eastcheap", "St Leonard Foster Lane", "St Magnus", "St Margaret Lothbury", "St Margaret Moses", "St Margaret New Fish Street", "St Margaret Pattens", "St Mary Abchurch", "St Mary Aldermanbury", "St Mary Aldermay", "St Mary le Bow", "St Mary Bothaw", "St Mary Colechurch", "St Mary Hill", "St Mary Mounthaw", "St Mary Somerset", "St Mary Staining", "St Mary Woolchurch", "St Mary Woolnoth", "St Martin Ironmonger Lane", "St Martin Ludgate", "St Martin Orgar", "St Martin Outwich", "St Martin Vintry", "St Matthew Friday Street", "St Mary Magdalen Milk Street", "St Mary Magdalen Old Fish Street", "St Michael Bassishaw", "St Michael Cornhill", "St Michael Crooked Lane", "St Michael Queenhithe", "St Michael Quern", "St Michael Royal", "St Michael Wood Street", "St Mildred Bread Street", "St Mildred Poultrey", "St Nicholas Acons", "St Nicholas Cole Abbey", "St Nicholas Olave", "St Olave Hart Street", "St Olave Jewry", "St Olave Silver Street", "St Pancras Soper Lane", "St Peter Ad Vincula", "St Peter Cheap", "St Peter Cornhill", "St Peter Paul's Wharf", "St Peter Poor", "St Stephen Coleman Street", "St Stephen Walbrook", "St Swithin", "St Thomas Apostle", "Trinity")>>
<<elseif $location is "in the eastern suburbs">>
<<set $parish to either("Holy Trinity Minories", "St Katharine Tower", "St Mary Whitechapel", "St Dunstan Stepney", "St Botolph Aldgate", "St John at Hackney")>>
<<elseif $location is "in the northern suburbs">>
<<set $parish to either("St Bartholomew Great", "St Bartholomew Less", "St Botolph Aldersgate", "St Botolph Bishopsgate", "St Giles Cripplegate", "St Giles in the Field", "St James Clerkenwell", "St Leonard Shoreditch", "St Mary Islington", "St Botolph Aldgate", "St John at Hackney")>>
<<elseif $location is "across the river in the southern suburbs">>
<<set $parish to either("St George Southwark", "St Olave Southwark", "St Saviour Southwark", "St Thomas Southwark", "Christ Church Surrey", "St Mary Lambeth", "St Mary Magdalen Bermondsey", "St Mary Newington", "St Mary Rotherhithe")>>
<<elseif $location is "in another part of the western suburbs">>
<<set $parish to either("St Andrew Holbom", "Bridewell Precinct", "St Bride", "St Dunstan West", "St Sepulchre")>>
<<elseif $location is "in the western suburbs, specifically Westminster">>
<<set $parish to either("St Clement Danes", "St Paul Covent Garden", "St Martin in the Fields", "St Mary Savoy", "St Margaret Westminster")>>
<</if>>
<</widget>>
<<widget "addApprenticeNPC">>
<<nobr>>
<<set $NPCs.push({ name: weightedEither($mNames), agenum: random(10,15), age: "adolescent", relationship: "apprentice", health: "healthy", location: $location})>>
<<set $apprentice to 2>>
<</nobr>>
<</widget>>
<<widget "addWorkerKidNPC">>
<<nobr>>
<<if random(1,2) eq 1>>
<<set $NPCs.push({ name: weightedEither($fNames), agenum: random(10,15), age: "adolescent", relationship: "friend's daughter", health: "healthy", location: $location})>>
<<else>>
<<set $NPCs.push({ name: weightedEither($mNames), agenum: random(10,15), age: "adolescent", relationship: "friend's son", health: "healthy", location: $location})>>
<</if>>
<<if random(1,9) eq 1>>
<<set $NPCs.push({ name: $nbNames.pluck(), agenum: random(10,15), age: "adolescent", relationship: "friend's child", health: "healthy", location: $location})>>
<</if>>
<<set $worker to 2>>
<</nobr>>
<</widget>>
<<widget "addWardNPC">>
<<nobr>>
<<if random(1,2) eq 1>>
<<set $NPCs.push({ name: weightedEither($fNames), agenum: random(10,15), age: "adolescent", relationship: "ward", health: "healthy", location: $location})>>
<<else>>
<<set $NPCs.push({ name: weightedEither($mNames), agenum: random(10,15), age: "adolescent", relationship: "ward", health: "healthy", location: $location})>>
<</if>>
<<if random(1,9) eq 1>>
<<set $NPCs.push({ name: $nbNames.pluck(), agenum: random(10,15), age: "adolescent", relationship: "ward", health: "healthy", location: $location})>>
<</if>>
<<set $ward to 2>>
<</nobr>>
<</widget>>
/* list NPCs in sidebar menu */
<<widget "ListNPCs">>
<<nobr>><<silently>><<set $NPCs to $NPCs.sort((a, b) => (b.agenum || 0) - (a.agenum || 0))>><<set $NPCsMaster to $NPCsMaster.sort((a, b) => (b.agenum || 0) - (a.agenum || 0))>><<set $NPCsExtended to $NPCsExtended.sort((a, b) => (b.agenum || 0) - (a.agenum || 0))>><<set $NPCsServants to $NPCsServants.sort((a, b) => (b.agenum || 0) - (a.agenum || 0))>><</silently>>
Household size: <<if $fled is 5>><<set _hhSize to $FledFamily.length>><<else>><<set _hhSize to $NPCs.length + $NPCsServants.length + $NPCsMaster.length>><</if>> _hhSize<br><br>
''Household:'' <<if $fled is 5>>''fled to $hhlocation''<</if>><br>
<<for _i, _idx range $FledFamily>>
$FledFamily[_i].name, $FledFamily[_i].age $FledFamily[_i].relationship: <<if $FledFamily[_i].health is "infected" and $plagueRevealed is 0>>healthy<<else>>$FledFamily[_i].health<</if>>.<br>
<</for>>
<<for _i, _idx range $NPCs>>
$NPCs[_i].name, $NPCs[_i].age $NPCs[_i].relationship: <<if $NPCs[_i].health is "infected" and $plagueRevealed is 0>>healthy<<else>>$NPCs[_i].health<</if>>.<br>
<</for>>
<br><br>
<<if $NPCsExtended.length gt 0>>
''Extended family:'' <br><<for _e, _idx range $NPCsExtended>>
$NPCsExtended[_e].name, $NPCsExtended[_e].age $NPCsExtended[_e].relationship: <<if $NPCsExtended[_e].health is "infected" and $plagueRevealed is 0>>healthy<<else>>$NPCsExtended[_e].health<</if>><br>
<</for>>
<</if>>
<<if $NPCsServants.length gt 0>>
<br>''Household servants:'' <br>/* <<set _svHealthy to 0>><<set _svInfected to 0>><<set _svDeceased to 0>><<set _svRecovered to 0>><<for _sv, _idx range $NPCsServants>><<if $NPCsServants[_sv].health is "healthy" or ($NPCsServants[_sv].health is "infected" and $plagueRevealed is 0)>><<set _svHealthy += 1>><<elseif $NPCsServants[_sv].health is "infected">><<set _svInfected += 1>><<elseif $NPCsServants[_sv].health is "deceased">><<set _svDeceased += 1>><<elseif $NPCsServants[_sv].health is "recovered">><<set _svRecovered += 1>><</if>><</for>><<if _svHealthy gt 0>>_svHealthy healthy<br><</if>><<if _svInfected gt 0>>_svInfected infected<br><</if>><<if _svDeceased gt 0>>_svDeceased deceased<br><</if>><<if _svRecovered gt 0>>_svRecovered recovered<br><</if>> */
<<for _sv, _idx range $NPCsServants>>
$NPCsServants[_sv].name, $NPCsServants[_sv].age $NPCsServants[_sv].relationship: <<if $NPCsServants[_sv].health is "infected" and $plagueRevealed is 0>>healthy<<else>>$NPCsServants[_sv].health<</if>>.<br>
<</for>>
<<if $FledServants.length gt 0>>
''Fled servants:'' <br>$FledServants.length fled to $hhlocation<br>
<</if>>
<</if>>
<<if $NPCsMaster.length gt 0>>
<br>''Master's Household:'' <br><<set _mhHealthy to 0>><<set _mhInfected to 0>><<set _mhDeceased to 0>><<set _mhRecovered to 0>><<for _mh, _idx range $NPCsMaster>><<if $NPCsMaster[_mh].health is "healthy" or ($NPCsMaster[_mh].health is "infected" and $plagueRevealed is 0)>><<set _mhHealthy += 1>><<elseif $NPCsMaster[_mh].health is "infected">><<set _mhInfected += 1>><<elseif $NPCsMaster[_mh].health is "deceased">><<set _mhDeceased += 1>><<elseif $NPCsMaster[_mh].health is "recovered">><<set _mhRecovered += 1>><</if>><</for>><<if _mhHealthy gt 0>>_mhHealthy healthy<br><</if>><<if _mhInfected gt 0>>_mhInfected infected<br><</if>><<if _mhDeceased gt 0>>_mhDeceased deceased<br><</if>><<if _mhRecovered gt 0>>_mhRecovered recovered<br><</if>>
<</if>>
<</nobr>>
<</widget>>
/* random character generation widget */
<<widget "random-character">>
<<nobr>>
<<set $gender to either("male", "female")>>
<<set $age to either("child", "adolescent", "young adult", "middle-aged adult", "elderly adult")>>
<<if $age is "child" or $age is "adolescent">>
<<set $relationship to either("single", "betrothed")>>
<<else>>
<<set $relationship to either("single", "married", "widowed")>>
<</if>>
<<set $religion to either("member of the Church of England", "member of a dissident Protestant church", "Catholic")>>
<<set $origin to either("London", "the English countryside", "another English town or city", "Scotland", "Ireland", "the Dutch Republic", "France", "somewhere else")>>
<<set $socio to either("day labourers", "servants", "artisans", "merchants", "nobles", "beggars")>>
<<set $location to either("inside the City walls", "in the western suburbs, specifically Westminster", "in another part of the western suburbs", "in the northern suburbs", "in the eastern suburbs", "across the river in the southern suburbs")>>
<</nobr>>
<</widget>><<nobr>>/* NTS: for those not booted out, need to add reputation/money hits */
<<if $impressed gte 2>>You've been caught again!
<<if $age is "child">>As a child, you won't be transported to the New World or <<defImpressed "impressed">> into His Majesty's Navy, but you are forced into service with a local merchant.
<br><br> /*NTS: insert text here about what happens to children who are impressed as servants */
<<set $socio to "servants">>
<<storyline-return>>
<<elseif $age is "elderly">>/* NTS: need text about what happens to elderly players caught 2+ times. Also, confirm if age overrides nationality/means you'll be deported? */ As an elderly resident, you are released with another warning. <<storyline-return>>
<<else>>
<<if $origin is "somewhere else" or $origin is "France">>
/* NTS: text for debtor's prison */ You are thrown into debtor's prison as punishment. [[stats]]
<<elseif $origin isnot "London" or $gender isnot "male">>/* NTS: text about indentured servitude and transport to americas */
As punishment, you are <span class="def" data-def="A person who has signed a labor contract, such as that of an apprentice or servant, to work for a set number of years in exchange for housing, food, clothing, training in a trade, and/or some other material benefit.">indentured into servitude</span> and will be shipped to the Americas. [[stats]]
<</if>>
<</if>>
<<else>>''You have been <<defImpressed "impressed">> into His Majesty's Navy!''<br><br>
<<if $age is "child" or $age is "elderly adult">>Luckily for you, once they realize your age, they release you back onto the streets of London.<br><br><<storyline-return>>
<<elseif $gender isnot "male">>Luckily for you, once you convince them that you are not a man, they release you back on the streets on London.<br><br><<storyline-return>>
<<elseif $origin is "France" or $origin is "somewhere else">>Luckily for you, you are not a subject of the British monarch and should not have been impressed. You bribe a literate crewmate to write a letter to the Naval Board on your behalf, protesting your impressment.<br><br>
Your captain, on hearing about the letter, sends you back to London where you successfully argue your case and are set at liberty.<br><br><<storyline-return>>
<<elseif $origin is "the Dutch Republic">>Luckily for you, you are not a subject of the British monarch and should not have been impressed. You bribe a literate crewmate to write a letter to the Naval Board on your behalf, protesting your impressment.
<br><br>
Your captain, on hearing about the letter, sends you back to London. While you successfully argue your case in front of the Naval Board, they are not pleased to hear they had a Dutchman on their ships. They imprison you as a spy.
<br><br>
[[How typical was your experience of the Great Plague of London? Let's find out!->stats]]
<<else>>You are sent off to fight against the Dutch and can only hope you don't manage to die in battle. But at least you didn't die of plague!<br><br>
[[How typical was your experience of the Great Plague of London? Let's find out!->stats]]
<</if>>
<</if>>
<</nobr>><<nobr>>
<<random-events>>
<<if not _randomEventFired>>
As if war wasn’t bad enough, you begin to hear rumors around the city that several houses have been shut up because their inhabitants have <<defPlague "plague">>.
You
<span id="decision">
<<link "decide to investigate">><<replace "#decision">><<set $plagueInfection to random(1,100)>><<set $decisions.push("May 1665: Investigated the plague rumors")>>investigate. After a few days, you decide to go see the truth of it for yourself and are horrified to find the rumors are true: several houses throughout the city had been locked up. Red crosses and the phrase //Lord Have Mercy Upon Us// have been painted on their front doors, to ensure that everyone knows this is a plague house.
<br>
<<if $location isnot "in another part of the western suburbs">><<no-plague-yet>><br>
<<if $socio isnot "beggars">>
[[You know that plague only grows worse as the weather warms and you dread the coming of June and the first real heat of summer.->June 1665]]
<</if>>
<<else>>[[Worse, the first case of plague has appeared in your parish.->First Plague Day]]
<</if>><img src="https://upload.wikimedia.org/wikipedia/commons/c/c4/Lord_haue_mercy_on_London.jpg" width="100%">
//Lord haue mercy on London, c. 1665.//<</replace>><</link>> | <<link "take their word for it.">><<replace "#decision">><<set $decisions.push("May 1665: Took their word about the plague")>>take their word for it and not investigate further.
<br>
<<if $location isnot "in another part of the western suburbs">><<no-plague-yet>><br>
<<if $socio isnot "beggars">>
[[You know that plague only grows worse as the weather warms and you dread the coming of June and the first real heat of summer.->June 1665]]
<</if>>
<<else>>[[Worse, the first case of plague has appeared in your parish.->First Plague Day]]
<</if>><</replace>><</link>>
</span>
<<fumigant>>
<</if>>
<</nobr>><<nobr>>
<<random-events>>
<<if not _randomEventFired>>
On June 3rd, everyone throughout the city hears the sound of cannon fire—not the celebratory firing of cannons in ceremony but the sounds of battle. It is obvious that the English and Dutch <span class="def" data-def="The English Royal Navy, which was primarily composed of heavily armed warships.">fleets</span> have engaged in battle, but where? How close are they to London? Who is winning? No one knows. <<if $origin is "the Dutch Republic">>You keep your head down and hide from your neighbors as much as possible, for fear that they will turn on you.<</if>>
<br><br>
<span id="decision"> Do you try to find out more?
<<link "Yes">><<replace "#decision">><<set $plagueInfection to random(1,50)>><<set $decisions.push("Jun 1665: Sought out war news")>>
You keep your ears open for news of the war. It takes almost a week, but news finally arrives of a great battle that killed many important men, especially on the ship of the <span class="def" data-def="The younger brother of King Charles II and heir to the English throne, who eventually reigned as King James II from 1685-88. Charles and his wife Catherine of Braganza had no children of their own, although Charles had many illegitimate children by several mistresses. James II was the last Catholic monarch of England and was deposed by his Protestant daughter, Mary, and her husband, William of Orange.">Duke of York, James Stuart</span>, the current heir to the throne—at least until the King and Queen manage to have children of their own. According to rumor, the battle came so close to killing the Duke that he was covered with blood and the head of a man named Mr. Boyle flew off and struck down the Duke. You happily repeat the rumors to anyone who will listen as bonfires break out in the street and people make merry, freely sharing their food and wine in celebration.
<br><br>
<img src="https://upload.wikimedia.org/wikipedia/commons/9/99/James_II_by_Peter_Lely.jpg" width="100%">
<br>
//Peter Lely, James II, c. 1650-1675//<br><br>
<<if $gender isnot "female">><span id="volunteer">Do you want to be there for the next battle?
<br><br>
<<link "Volunteer for the navy">><<set $decisions.push("Jun 1665: Volunteered for the navy")>><<replace "#volunteer">>You have enlisted on [[HMS Royal Sovereign->navy-volunteer]]<</replace>><</link>> | <<link "Stay out of the fighting">><<set $decisions.push("Jun 1665: Stayed out of the fighting")>><<replace "#volunteer">>
<br><br><<linkappend "That is the last good day of the month, though.">><<june-1665-helper>>
<</linkappend>>
<</replace>><</link>></span>
<<else>>
<<linkappend "That is the last good day of the month, though.">><<june-1665-helper>>
<</linkappend>>
<br><br>
<</if>>
<</replace>><</link>>
| <<link "No">><<replace "#decision">><<set $decisions.push("Jun 1665: Ignored the war gossip")>> You don't listen to the gossip, but it's hard to ignore the shouts when news finally arrives of a great battle that killed many important men.
<br><br>
<<if $gender isnot "female">><span id="volunteer">Do you want to be there for the next battle?
<br><br>
<<link "Volunteer for the navy">><<set $decisions.push("Jun 1665: Volunteered for the navy")>><<replace "#volunteer">>You have enlisted on [[HMS Royal Sovereign->navy-volunteer]]<</replace>><</link>> | <<link "Stay out of the fighting">><<set $decisions.push("Jun 1665: Stayed out of the fighting")>><<replace "#volunteer">>
<<linkappend "That is the last good day of the month, though.">><<june-1665-helper>><</linkappend>>
<br><br>
<</replace>><</link>></span>
<<else>>
<<linkappend "That is the last good day of the month, though.">><<june-1665-helper>>
<</linkappend>>
<br><br>
<</if>>
<</replace>><</link>></span>
<</if>>
<<fumigant>>
<</nobr>><<nobr>>
<<random-events>>
<<if not _randomEventFired>>
/* Beggar & Day Labourer choices */
/* nts: need text if day labourers don't have a job */
<<if $role is "corpsebearer" or $role is "searcher" or $role is "nurse">>
<<if ndef $textGroup>><<set $textGroup = 1>><</if>>
<<switch $textGroup>>
People are dying so fast now that burials have to happen night and day to keep corpses from piling up throughout the city.<br><br>
<<case 1>><<if $role is "corpsebearer">>As you take the dead to the graveyards<<elseif $role is "searcher">>Almost all the bodies you inspect are of <<defPlague "plague">> victims and<<else>>Your patients die almost as fast as you are assigned to care for them and<</if>> you marvel at how much money is being wasted through the clothing that is buried with them. It’s illegal to take goods off the dead, and you know it’s dangerous as well.
<br><br>
You decide to:
<ul>
<li><<link "take some of the clothing to sell. You figure no one will notice, and you need the money." `passage()`>><<set $plagueclothes to 1>><<set $plagueInfection to random(0,1)>><<set $reputation -=1>><<set $decisions.push("Aug 1665: Stole clothing from the dead")>><</link>></li>
<li><<link "leave things where they are." `passage()`>><<set $plagueclothes to 0>><<set $decisions.push("Aug 1665: Left the dead's belongings alone")>><</link>></li>
</ul>
<<default>>
So many people are sick and shut up in their houses that the city has imposed a 9pm curfew for healthy people, so that the sick can go out for a bit of air.
<br><br>
The city has ordered public <<defFasts "fasts">> and prayers to help combat the plague. <<if $religion is "Presbyterian">>You attempt to join a private meeting of your fellow <<defPresbyterians "Presbyterians">> in <<defCoventGarden "Covent Garden">> but are too poor and turned away, which is lucky for you because everyone who attends the meeting is arrested. They are told they can be released if they pay £5 each to help care for the poor of the city, but they refuse and so are imprisoned.<</if>>
<br><br>
<<preventative>>
<br>
<<unset $textGroup>>[[Continue to September 1665->September 1665]]<</switch>><<if def $textGroup>><<set $textGroup +=1>><</if>>
<<else>>
People are dying so fast now that burials have to happen night and day to keep corpses from piling up throughout the city.<br><br>
So many people are sick and shut up in their houses that the city has imposed a 9pm curfew for healthy people, so that the sick can go out for a bit of air. <span id="curfew">Do you adhere to the curfew? <<link "Yes, of course">><<replace "#curfew">><<set $decisions.push("Aug 1665: Obeyed the curfew")>>You keep to the curfew.
<br><br>
<img src="https://upload.wikimedia.org/wikipedia/commons/1/1d/Nine_images_of_the_plague_in_London%2C_17th_century_Wellcome_L0016640_%28cropped%29_7.jpg" height="575px" width="900px">
//Nine images of the plague in London, 17th century, Wellcome Images.//
<br><br>
The city has ordered public <<defFasts "fasts">> and prayers to help combat the plague. <<if $religion is "Presbyterian">>You attempt to join a private meeting of your fellow <<defPresbyterians "Presbyterians">> in <<defCoventGarden "Covent Garden">>but are too poor and turned away, which is lucky for you because everyone who attends the meeting is arrested. They are told they can be released if they pay £5 each to help care for the poor of the city, but they refuse and so are imprisoned.<</if>>
<<if $socio is "nobles">>
Afraid of the worsening plague outbreak, the King removes his household even further away to the west, finally settling into the city of <<defSalisbury "Salisbury">>. Unfortunately, there is no royal palace there and anyone who follows him will have to find their own makeshift lodgings somewhere else in the city.<</if>>
<br><br>You can continue to try and prevent catching plague by visiting the <<defApothecary "apothecary">>, or you can:
<<preventative>>
[[Continue to September 1665->September 1665]]
<</replace>><</link>> | <<link "No, I need to know more">><<replace "#curfew">><<set $plagueInfection to random(1,8)>><<set $money -=10>><<set $reputation -=2>><<set $decisions.push("Aug 1665: Broke curfew to seek news")>>You step out, despite the curfew, hoping to hear more news. You learn that there is sickness in the <<defFleet "fleet">> and everyone worries what that means for the war.
<br><br>
<img src="https://upload.wikimedia.org/wikipedia/commons/1/1d/Nine_images_of_the_plague_in_London%2C_17th_century_Wellcome_L0016640_%28cropped%29_7.jpg" height="575px" width="900px">
//Nine images of the plague in London, 17th century, Wellcome Images.//
<br><br>
The city has ordered public <<defFasts "fasts">> and prayers to help combat the plague. <<if $religion is "Presbyterian">>You attempt to join a private meeting of your fellow <<defPresbyterians "Presbyterians">> in <<defCoventGarden "Covent Garden">>but are too poor and turned away, which is lucky for you because everyone who attends the meeting is arrested. They are told they can be released if they pay £5 each to help care for the poor of the city, but they refuse and so are imprisoned.<</if>>
<<if $socio is "nobles">>
Afraid of the worsening plague outbreak, the King removes his household even further away to the west, finally settling into the city of <<defSalisbury "Salisbury">>. Unfortunately, there is no royal palace there and anyone who follows him will have to find their own makeshift lodgings somewhere else in the city.<</if>>
<br><br>You can continue to try and prevent catching plague by visiting the <<defApothecary "apothecary">>, or you can:
<<preventative>>
[[Continue to September 1665->September 1665]]
<</replace>><</link>></span>
<</if>>
<</if>>
<<fumigant>>
<</nobr>><<nobr>>
<<random-events>>
<<if not _randomEventFired>>
The deaths continue in such great numbers that you can hardly believe it.<br><br>
<<if $role is "corpsebearer">>You are shocked to see that some bold people have begun attending <<defPlague "plague">> funerals, as if it were a child’s game or dare. <br><br>
The <<defLordMayor "Lord Mayor">> has ordered fires to be lit throughout the city, to fill the air with smoke and sweep away any bad air that might be making the plague worse.
<br><br>
You can continue to try and avoid the plague by visiting the <<defApothecary_Apoth "Apothecary">>, or you can:
<<preventative>>
/* NTS: text about smuggling children from plague houses */
[[Continue to October 1665->October 1665]]
<<elseif $role is "nurse">>Some of your patients, furious at being locked in, have been trying to lean out windows to breathe and spit upon the healthy people walking past.<br><br>The <<defLordMayor "Lord Mayor">> has ordered fires to be lit throughout the city, to fill the air with smoke and sweep away any bad air that might be making the plague worse.
<br><br>
You can continue to try and avoid the plague by visiting the <<defApothecary_Apoth "Apothecary">>, or you can:
<<preventative>>
/* NTS: text about smuggling children from plague houses */
[[Continue to October 1665->October 1665]]
<<else>>
<span id="gossip">Do you continue to go out in the city? <<link "No, better say inside for now">><<replace "#gossip">><<set $decisions.push("Sep 1665: Stayed indoors")>>You stay indoors.
<br><br>The <<defLordMayor "Lord Mayor">> has ordered fires to be lit throughout the city, to fill the air with smoke and sweep away any bad air that might be making the plague worse.
<br><br>
/* NTS: text about smuggling children from plague houses */
[[Continue to October 1665->October 1665]]<</replace>><</link>> | <<link "Yes, you still need to go out to conduct business">><<replace "#gossip">><<set $decisions.push("Sep 1665: Went out despite the danger")>>While out you see that a few brave souls have begun to attend plague funerals.
<span id="game">Do you join them? <<link "Yes, I'll be fine">><<set $plagueInfection to random(1,5)>><<set $decisions.push("Sep 1665: Attended plague funerals")>><<replace "#game">>You attend a few funerals for friends, confident that the low attendance will ensure your safety. Plus, it helps to be able to see the people you're mourning. <br><br>
The <<defLordMayor "Lord Mayor">> has ordered fires to be lit throughout the city, to fill the air with smoke and sweep away any bad air that might be making the plague worse.
<br><br>
You can continue to try and avoid the plague by visiting the <<defApothecary_Apoth "Apothecary">>, or you can:
<<preventative>>
/* NTS: text about smuggling children from plague houses */
[[Continue to October 1665->October 1665]]
<</replace>><</link>> | <<link "No, it's not safe">><<set $decisions.push("Sep 1665: Avoided plague funerals")>><<replace "#game">> You don't attend, but are secretly glad that the dead aren't being buried alone.
The <<defLordMayor "Lord Mayor">> has ordered fires to be lit throughout the city, to fill the air with smoke and sweep away any bad air that might be making the plague worse.
<br><br>
You can continue to try and avoid the plague by visiting the <<defApothecary_Apoth "Apothecary">>, or you can:
<<preventative>>
/* NTS: text about smuggling children from plague houses */
[[Continue to October 1665->October 1665]]
<</replace>><</link>></span><</replace>><</link>></span>
<</if>>
<</if>>
<<fumigant>>
<</nobr>><<nobr>>
<<random-events>>
<<if not _randomEventFired>>
October is miserably rainy and cold. <<defPlague_Plagu "Plague">> numbers are--thanks be to God--finally starting to come down, but are still terrifyingly high and you see sick people brazenly out and about on the streets.<br><br>
<span id="pesthouse">Do you report the sick to the pesthouse? <<link "Yes, I don't want them getting me sick">><<set $reputation -=2>><<set $decisions.push("Oct 1665: Reported the sick to the pesthouse")>><<replace "#pesthouse">>You start reporting the sick people you see to the pesthouse, hoping to keep the streets free from their presence. You feel a bit bad about confining them to such an awful place, but your own safety is worth it.
Rumors swirl about the Pope and the King of France dying, <<if $religion is "Catholic">>much to your alarm as a good Catholic<<if $origin is "France">> and subject of the French monarchy<</if>>, but to your relief you discover<<else>>but alas<</if>> they are only rumors.<br><br>
You hope the cold will deepen--and plague numbers continue to fall--as you head into [[November 1665]].
<</replace>><</link>> | <<link "No, as long as they keep away from me">><<set $decisions.push("Oct 1665: Ignored the sick on the streets")>><<replace "#pesthouse">>You ignore the sick people you see, hoping that they keep to themselves.
<br><br>
Rumors swirl about the Pope and the King of France dying, <<if $religion is "Catholic">>much to your alarm as a good Catholic<<if $origin is "France">> and subject of the French monarchy<</if>>, but to your relief you discover<<else>>but alas<</if>> they are only rumors.<br><br>
You hope the cold will deepen--and plague numbers continue to fall--as you head into [[November 1665]].
<</replace>><</link>></span>
/* Beggar text */
/* Day labourer text */
/* Servant text */
/* Artisan text */
/* Merchant text */
/* Noble text */
<</if>>
<<fumigant>>
<</nobr>><<nobr>>
<<random-events>>
<<if not _randomEventFired>>
The weather is terrible but <<defPlague "plague">> numbers are coming down and people start to trickle back into town.
<span id="visit">Do you go out to visit your returning friends and neighbors? <<link "Yes, I've missed them greatly">><<set $plagueInfection to random(1,30)>><<set $reputation +=2>><<set $decisions.push("Nov 1665: Visited returning neighbors")>><<replace "#visit">>You go out in the streets to greet your returning friends and neighbors, glad to be reunited after these long months.
You don't expect great things this Christmas, but you are still looking forward to [[December 1665]].<br><br><</replace>><</link>> | <<link "No, it's still not safe for socializing">><<set $decisions.push("Nov 1665: Avoided socializing with returning neighbors")>><<replace "#visit">>You don't go out in the streets to welcome back your friends and neighbors, but you do shout your greetings down from your window. You are glad to see them back. You don't expect great things this Christmas, but you are still looking forward to [[December 1665]].<br><br><</replace>><</link>></span>
<</if>>
<<fumigant>>
<</nobr>><<nobr>>
<<random-events>>
<<if not _randomEventFired>>
<<defPlague_Plagu "Plague">> numbers are up, despite two great frosts, and the Christmas festivities are all cancelled. You hope it's the last gasp of the outbreak, even as you reflect at how much different things are now than the were last year.<br><br>
<span id= "decision">Will you <<if $age is "child" or $age is "adolescent">>and your family <</if>>celebrate Christmas despite the risk? <<link "Yes">><<silently>><<infection-program>><</silently>><<replace "#decision">><<set $reputation -=3>><<set $money -=50>><<set $decisions.push("Dec 1665: Held a Christmas feast despite the plague")>>You <<if $age is "child" or $age is "adolescent">>and your family<</if>> are planning a feast for a few friends to make up for the dour attitude across the city. You're looking forward to the opportunity to forget the plague for a few hours and feast on your favorite food <<set _food = ["roasted herring", "pigeon pie", "lamprey pie", "roasted veal", "hogs pudding"]>><<listbox "$food">><<optionsfrom _food>><</listbox>>.<br><br><<if $socio is "nobles">>
The King decides to take the Court to <<defOxford "Oxford">> to celebrate the Christmas festivities and settles into the <<defDeaneryAtChristChurchCollege "Deanery at Christ Church College">>, the king's traditional lodgings when he is in residence. The rest of the Court is scattered in lodgings throughout the city.<</if>>
<br><br>
Maybe things will be better in [[1666->January 1666]].<</replace>><</link>> | <<link "No">><<replace "#decision">><<set $money +=5>><<set $decisions.push("Dec 1665: Skipped the Christmas feast to stay safe")>>You <<if $age is "child" or $age is "adolescent">>and your family<</if>> decide to stay safe and save money and forego a large feast for the holiday.<br><br><<if $socio is "nobles">>
The King decides to take the Court to <<defOxford "Oxford">> to celebrate the Christmas festivities and settles into the <<defDeaneryAtChristChurchCollege "Deanery at Christ Church College">>, the king's traditional lodgings when he is in residence. The rest of the Court is scattered in lodgings throughout the city.<</if>>
<br><br>
Maybe things will be better in [[1666->January 1666]].<</replace>><</link>></span>
<</if>>
<<fumigant>>
<</nobr>><<nobr>>
<<random-events>>
<<if not _randomEventFired>>
<<defPlague_Plagu "Plague">> numbers continue to come down. <span class="def" data-def="A member of the hereditary class of landowners with high social and political status. They have noble titles either given to them by a monarch or inherited from their ancestors, such as duke/duchess, marquis/marchioness, earl/countess, or baron/baroness. In 1688, statistician Gregory King estimated there were about 160 noble households in England, which makes up less than 1/10 of 1% of the English population">Noble</span> coaches fill the streets, <span class="def" data-def="A person employed to carry things in the service of others. They are usually employed in moving furniture, luggage, and other loads, especially when their employers are moving or traveling.">porters</span> are everywhere hauling the belongings of those who are returning to the city, all the shops are reopening, and <<defBeggars "beggars">> overflow the highways.<br><br>
<br>
<<if $socio is "day labourers" or $socio is "beggars">><span id="help">Do you offer your services as a porter? <<link "Yes, I could use the extra money">><<set $reputation +=2>><<set $money +=5>><<set $decisions.push("Jan 1666: Offered porter services")>><<replace "#help">>You keep busy offering the returning families your services as a porter, earning a few coins as you do so. You are glad to see the city so lively again.
A bad storm blows down tiles from houses and shuts down <<defRiverTraffic "river traffic">>, but all in all, it's a good month.<br><br>You look forward to even better things in [[February 1666]].<</replace>><</link>> | <<link "No, you keep out of people's way">><<set $decisions.push("Jan 1666: Stayed out of people's way")>><<replace "#help">>You don't venture out to help as a porter, hoping to avoid being run over by the many carts and carriages in the street. A bad storm blows down tiles from houses and shuts down <<defRiverTraffic "river traffic">>, but all in all, it's a good month.<br><br>You look forward to even better things in [[February 1666]].<</replace>><</link>></span>
<<elseif $socio is "nobles">>
After six months of travel, the king finally returns the Court to <<defHamptonCourtPalace "Hampton Court Palace">>, so that he can be near to the City of London and the government officials working out of Westminster.<br><br>You look forward to even better things in [[February 1666]].
<<else>><span id="help">Do you offer to help any of your returning neighbors with their luggage? <<link "Yes">><<set $reputation +=2>><<set $decisions.push("Jan 1666: Helped returning neighbors")>><<replace "#help">>You offer to help your returning neighbors carry some of their luggage. It is a good opportunity to catch up on all their news from their time in the country, and you are glad to talk to someone after the city has been so empty for so long. A bad storm blows down tiles from houses and shuts down <<defRiverTraffic "river traffic">>, but all in all, it's a good month.<br><br>You look forward to even better things in [[February 1666]].<</replace>><</link>> | <<link "No">><<set $decisions.push("Jan 1666: Did not help returning neighbors")>><<replace "#help">>You don't offer to help your returning neighbors, but you shout your greetings down to them, glad to see the city so lively again after it had been empty for so long. A bad storm blows down tiles from houses and shuts down <<defRiverTraffic "river traffic">>, but all in all, it's a good month.<br><br>You look forward to even better things in [[February 1666]].<</replace>><</link>></span>
<</if>>
<img src="https://upload.wikimedia.org/wikipedia/commons/c/ca/London_welcomes_home_runaways_Wellcome_L0002722.jpg" width="100%">
//Henry Petowe and Frank Percy Wilson, "London welcomes home her runaways". Taken from a woodcut in Henry Petowe's:The Countrie Ague, 1625. Wellcome Images//
<</if>>
<<fumigant>>
<</nobr>><<nobr>>
<<random-events>>
<<if not _randomEventFired>>
The king has returned to London! People rejoice and return to their churches, knowing that if the king is willing to move back into his city palace of <<defWhitehall "Whitehall">>, then the <<defPlague "plague">> outbreak must be almost over. A great snow hides all the graves and it's as if the last year was all a terrible dream.<br><br>
And, as if you needed more opportunities to celebrate, it's <span class="def" data-def="A Christian holiday beginning on Ash Wednesday and ending just before Easter, meant to commemorate the time which Jesus spent in the wilderness. This period was supposed to be observed by fasting or abstinence.">Lent.</span> <span id= "decision">Will you <<if $age is "child" or $age is "adolescent">>and your family <</if>>celebrate the holiday with a feast? <<link "Yes">><<silently>><<infection-program>><</silently>><<replace "#decision">><<set $reputation +=3>><<set $money -=20>><<set $decisions.push("Feb 1666: Held a Lent feast")>>You <<if $age is "child" or $age is "adolescent">>and your family<</if>> are planning a feast for a few friends. You're excited about all the things on the menu but especially your favorite dessert <<set _food = ["minced pie", "sweetmeats", "currant cake", "syllabub", "tansy"]>><<listbox "$food">><<optionsfrom _food>><</listbox>>. Feasting costs money though, and things might be tight in the coming months, though your heart and stomach are full.<br><br>
Your <<defParish "parish">> priest hasn't returned yet, though, and his reputation plummets as the days tick over into [[March 1666]].<br><br>
<</replace>><</link>> | <<link "No">><<replace "#decision">><<set $money +=5>><<set $decisions.push("Feb 1666: Skipped the Lent feast")>>You <<if $age is "child" or $age is "adolescent">>and your family<</if>> decide against holding a feast. <span id="church">Do you instead go to the Queen's church to celebrate? <<link "Yes">><<replace "#church">><<set $decisions.push("Feb 1666: Attended the Queen's church")>>You instead to go to the Queen's church for the holiday. <<if $religion is "member of a dissident Protestant church" or $religion is "member of the Church of England">>Unfortunately your neighbors see you going into the Catholic Church and judge you harshly for abandoning your religious principles. <<set $reputation -=2>><</if>><br><br>Your <<defParish "parish">> priest hasn't returned yet, though, and his reputation plummets as the days tick over into [[March 1666]].<br><br><</replace>><</link>> | <<link "No">><<replace "#church">><<set $decisions.push("Feb 1666: Stayed home for the holiday")>>You instead enjoy a quiet holiday inside, safe from the crowds and the plague. <br><br>Your <<defParish "parish">> priest hasn't returned yet, though, and his reputation plummets as the days tick over into [[March 1666]].<br><br><</replace>><</link>></span>
<</replace>><</link>></span>
<</if>>
<<fumigant>>
<</nobr>><<nobr>>
<<random-events>>
<<if not _randomEventFired>>
The Queen of Portugal, mother to England's beloved <<defQueenCatherine "Queen Catherine">>, has died.<br><br>
<<if $religion is "Catholic">><span id="candle">Do you go to church and light a candle for the queen?<<link "Yes">><<replace "#candle">><<set $decisions.push("Mar 1666: Lit a candle for the Queen of Portugal")>>You go to church and light a candle for the late queen.
The Court is plunged into mourning<<if $socio is "nobles">>. After a month in London, the King moves on to one of his father's old houses of <<defAudleyEndInEssex "Audley End, in Essex">>. Once an enormous and grand palace, it is in bad shape after the <<defCivilWar_Civil "Civil War">> and <<defInterregnum "Interregnum">>. But the <<defPlague "plague">> has proved the wisdom of the King having more royal palaces outside of London and the Court is happy to follow him...<<else>> and the city quiets as well... <</if>> because <<defPlague "plague">> numbers are starting to go up again.
So much for the city being safe again.<br>
<br>
<img src="https://upload.wikimedia.org/wikipedia/commons/d/d4/Catherine_of_Braganza_-_Lely_1663-65.jpg" width="100%">
<br>
//Peter Lely, Catherine of Braganza, 1663-5//
<br><br>
It's not a great lead up for [[April 1666]].
<</replace>><</link>> | <<link "No">><<set $decisions.push("Mar 1666: Prayed privately instead of lighting a candle")>><<replace "#candle">>You don't light a candle for the queen, but you do pray for her soul. The Court is plunged into mourning<<if $socio is "nobles">>. After a month in London, the King moves on to one of his father's old houses of <<defAudleyEndInEssex "Audley End, in Essex">>. Once an enormous and grand palace, it is in bad shape after the <<defCivilWar_Civil "Civil War">> and <<defInterregnum "Interregnum">>. But the <<defPlague "plague">> has proved the wisdom of the King having more royal palaces outside of London and the Court is happy to follow him...<<else>> and the city quiets as well... <</if>> because <<defPlague "plague">> numbers are starting to go up again.
So much for the city being safe again.<br>
<br>
<img src="https://upload.wikimedia.org/wikipedia/commons/d/d4/Catherine_of_Braganza_-_Lely_1663-65.jpg" width="100%">
<br>
//Peter Lely, Catherine of Braganza, 1663-5//
<br><br>
It's not a great lead up for [[April 1666]].
<</replace>><</link>></span>
<<else>>
The Court is plunged into mourning<<if $socio is "nobles">>. After a month in London, the King moves on to one of his father's old houses of <<defAudleyEndInEssex "Audley End, in Essex">>. Once an enormous and grand palace, it is in bad shape after the <<defCivilWar_Civil "Civil War">> and <<defInterregnum "Interregnum">>. But the <<defPlague "plague">> has proved the wisdom of the King having more royal palaces outside of London and the Court is happy to follow him...<<else>> and the city quiets as well... <</if>> because <<defPlague "plague">> numbers are starting to go up again.
So much for the city being safe again.<br>
<br>
<img src="https://upload.wikimedia.org/wikipedia/commons/d/d4/Catherine_of_Braganza_-_Lely_1663-65.jpg" width="100%">
<br>
//Peter Lely, Catherine of Braganza, 1663-5//
<br><br>
It's not a great lead up for [[April 1666]].
<</if>>
<</if>>
<<fumigant>>
<</nobr>><<nobr>>
<<random-events>>
<<if not _randomEventFired>>
There's no denying it now. <<defPlague_Plagu "Plague">> cases are definitely on the rise. Luckily, Sweden has declared itself on England's side in the war against the Dutch.
<<if $age isnot "child" and $gender isnot "female">><span id="volunteer">Now that we have an ally, do you want to join the Navy?
<br><br>
<<link "Volunteer for the navy">><<replace "#volunteer">>You have enlisted on [[HMS Royal Sovereign->navy-volunteer]]<</replace>><</link>> | <<link "Stay out of the fighting">><<replace "#volunteer">>
At least there's some good news to balance out the bad as you head into [[May 1666]].<</replace>><</link>></span>
<<else>>
At least there's some good news to balance out the bad as you head into [[May 1666]].
<</if>>
<</if>>
<<fumigant>>
<</nobr>><<nobr>>
<<random-events>>
<<if not _randomEventFired>>
<<defPlague_Plagu "Plague">> is increasing throughout the city, but that doesn't stop all of London from celebrating the king's birthday and the anniversary of the <span class="def" data-def="The returning of King Charles II to the throne of England. After the death of the Lord Protector Oliver Cromwell, his son was not strong enough to hold together the Commonwealth government. The exiled Charles II issued the Declaration of Breda, in which he promised to pardon and uphold the property rights of everyone except the people who signed his father’s execution warrant, in exchange for the throne.">Restoration</span> on May 29th with bonfires. <span class="def" data-def="There are two types of beggars: itinerant beggars who roam the country illegally and members of the “deserving poor” who are embedded in their local communities and licensed to beg in their home parish. The latter usually still have a permanent place of residence, often provided by the parish, but their income depends on the charity of their neighbors. It is not legal to beg outside of your parish and itinerant beggars are both feared and often harshly punished. In 1688, statistician Gregory King estimated there were about 400,000 paupers households and 30,000 wandering beggars, which makes up ~22% of the English population.">Beggars</span> throng the streets but, for once, no one seems to mind.
<<if $religion isnot "Catholic">><span id="celebrate">The Catholics are loudly celebrating the return of a Catholic king. As a devout Protestant, do also you celebrate? <<link "Yes">><<set $reputation +=1>><<set $money -=5>><<set $decisions.push("May 1666: Celebrated the King's birthday")>><<replace "#celebrate">>You are glad of an opportunity to celebrate the renewal of peace in England, and take part in the bonfire parties and feasting.
You are still recovering from the festivities when the days tip over into [[June 1666]].<</replace>><</link>> | <<link "No">><<set $decisions.push("May 1666: Declined to celebrate the King's birthday")>><<replace "#celebrate">>You don't join the revelers in the streets, glad to stay away from the risk of plague, and wary of celebrating a Catholic king. You are glad you've saved your energy for the events of [[June 1666]].<</replace>><</link>></span>
<<else>>
As a devout Catholic, you are among the loudest revelers in the celebrations of both peace and the reinstallation of a Catholic king on the throne. You are still recovering from the festivities when the days tip over into [[June 1666]].<</if>><</if>>
<<fumigant>>
<</nobr>><<nobr>>
<<random-events>>
<<if not _randomEventFired>>
The summer heat has hit London and everyone is feeling lethargic. Still, there are some things to do, like gossip with your neighbors. <span id="decision">Do you listen to the gossip? <<link "Yes">><<replace "#decision">><<set $decisions.push("Jun 1666: Listened to the war gossip")>>
You hear rumors that the <<defFleet "fleet">> has engaged the Dutch in battle again and the streets are full of people arguing over whether the four days of rumbling was cannon fire or thunder. Yes, the hot weather could have led to four days of distant thunder but the skies are clear and <<defPressGangs "press gangs">> roam the street, grabbing any man they can.
<<if $age isnot "child" or $age isnot "adolescent">><span id="volunteer">Do you want to join in the fight?
<br><br>
<<link "Volunteer for the navy">><<set $decisions.push("Jun 1666: Volunteered for the navy")>><<replace "#volunteer">>You have enlisted on [[HMS Royal Sovereign->navy-volunteer]]<</replace>><</link>> | <<link "Stay out of the fighting">><<set $decisions.push("Jun 1666: Stayed out of the fighting")>><<replace "#volunteer">>
One thing is for certain, though. The weather is so hot that <<defPlague "plague">> cases are on the rise again and you know it will only get worse in [[July 1666]].
<br><br>
<img src="https://collections.rmg.co.uk/media/287/368/bhc0286.jpg" width="100%">
//Abraham Storck, The 'Royal Prince' and other Vessels at the Four Days Battle, 1–4 June 1666, c. 1670//
<</replace>><</link>></span>
<<else>>
One thing is for certain, though. The weather is so hot that <<defPlague "plague">> cases are on the rise again and you know it will only get worse in [[July 1666]].
<br><br>
<img src="https://collections.rmg.co.uk/media/287/368/bhc0286.jpg" width="100%">
//Abraham Storck, The 'Royal Prince' and other Vessels at the Four Days Battle, 1–4 June 1666, c. 1670//
<</if>>
<</replace>><</link>> | <<link "No">><<replace "#decision">><<set $decisions.push("Jun 1666: Ignored the gossip")>>
The sky has been rumbling for days and you wonder whether the sound was cannon fire or thunder. Yes, the hot weather could have led to four days of distant thunder but the skies are clear. You assume that this is why when you look out your window you can see <<defPressGangs "press gangs">> roaming the street, grabbing any man they can.
<<if $age isnot "child" or "adolescent">><span id="volunteer">Do you want to volunteer to avoid being seized?
<br><br>
<<link "Volunteer for the navy">><<set $decisions.push("Jun 1666: Volunteered for the navy")>><<replace "#volunteer">>You have enlisted on [[HMS Royal Sovereign->navy-volunteer]]<</replace>><</link>> | <<link "Stay out of the fighting">><<set $decisions.push("Jun 1666: Stayed out of the fighting")>><<replace "#volunteer">>
You avoid being pressed by keeping out of the way of the gangs. You don't know what future the city holds but at least it's better than being in the Navy. One thing is for certain, though. The weather is so hot that <<defPlague "plague">> cases are on the rise again and you know it will only get worse in [[July 1666]].
<br><br>
<img src="https://collections.rmg.co.uk/media/287/368/bhc0286.jpg" width="100%">
//Abraham Storck, The 'Royal Prince' and other Vessels at the Four Days Battle, 1–4 June 1666, c. 1670//
<</replace>><</link>></span>
<<else>>
One thing is for certain, though. The weather is so hot that <<defPlague "plague">> cases are on the rise again and you know it will only get worse in [[July 1666]].
<br><br>
<img src="https://collections.rmg.co.uk/media/287/368/bhc0286.jpg" width="100%">
//Abraham Storck, The 'Royal Prince' and other Vessels at the Four Days Battle, 1–4 June 1666, c. 1670//
<</if>>
<</replace>><</link>></span>
<</if>>
<<fumigant>>
<</nobr>><<nobr>>
<<random-events>>
<<if not _randomEventFired>>
The heat of the city is oppressive but the worst is not the heat but the wails of women whose husbands have been <<defImpressed "impressed">> into the <span class="def" data-def="The English Royal Navy, which was primarily composed of heavily armed warships.">Fleet</span>. Many of the men who have been impressed attempt to escape but are recaptured.
Those who remain in the city hear the sounds of another battle in the distance--but any battle that is close enough for you can hear the cannon fire is too close.
<br><br>
<<if $age isnot "child" or $age isnot "adolescent">><span id="volunteer">Do you want to defend the city in the Navy?
<br><br>
<<link "Volunteer for the navy">><<replace "#volunteer">>You have enlisted on [[HMS Royal Sovereign->navy-volunteer]]<</replace>><</link>> | <<link "Stay out of the fighting">><<replace "#volunteer">>You wonder if you will make it to [[August 1666]].
<</replace>><</link>></span>
<<else>>
You wonder if you will make it to [[August 1666]].
<</if>>
<img src="https://upload.wikimedia.org/wikipedia/commons/3/34/St._James_Day_Fight%2C_Pic_1.jpg" height="708px" width="900px">
//By unknown Dutch artist, "Zee-Slag tussen de Engelse en Nederlandtse Vloot, op den 4 Aug. 1666." Engraving showing the St. James' Day Battle on August 4th, 1666 between English and Dutch ships//
<</if>>
<<fumigant>>
<</nobr>><<nobr>>
<<random-events>>
<<if not _randomEventFired>>
As the summer heat engulfs the city, <<defPlague "plague">> numbers continue to rise. But at least there's good news on the war front, as you hear that the <<defFleet "fleet">> has burnt more Dutch ships.
<br><br>
<<if $age isnot "child" and $age isnot "adolescent">><span id="volunteer">Do you want to join the victorious Navy and burn more Dutch ships?
<br><br>
<<link "Volunteer for the navy">><<replace "#volunteer">>You have enlisted on [[HMS Royal Sovereign->navy-volunteer]]<</replace>><</link>> | <<link "Stay out of the fighting">><<replace "#volunteer">>
You hope it will be enough to tide you through the last hot month of the year, as [[September 1666]] dawns.
<</replace>><</link>></span>
<<else>>
You hope it will be enough to tide you through the last hot month of the year, as [[September 1666]] dawns.
<</if>>
<</if>>
<<fumigant>>
<</nobr>><<nobr>>
<<random-events>>
<<if not _randomEventFired>>
<<if $location is "inside the City walls">>
Early one Sunday morning, you wake to the frantic ringing of church bells. This isn't the ordinary <<defCallToService "call to service">>—<<if $religion is "member of the Church of England">>something you were looking forward to attending after you slept in<<else>>as if you'd ever attend a service in the Church of England!<</if>>—but rather a call to arms. When you stumble outside, you discover the city has caught fire around you.
<<if $age is "child">>You immediately wake the nearest adult, who takes charge. You grab your favorite toy, then it's time to flee, with the fire nipping at your heels. You will have nightmares about this moment for weeks.
<<elseif $age is "adolescent">>You immediately wake the nearest adult, who takes charge. You grab some of your clothes, then it's time to flee, with the fire nipping at your heels. You will have nightmares about this moment for weeks.
<<else>>
<<if $socio is "servants">>You immediately alert your master and mistress, who send you out to find as many additional carts or boats as you can, to carry away their goods. <<if $reputation lte 2>>Unfortunately, everyone is so busy saving their own households, they have little to spare for you. All you have is the single cart you already own. <<else>>Luckily, you have friends and neighbors who hold you in high esteem and are willing to lend you carts.<</if>> The <<defHousehold "household">> loads <<if $reputation lte 2>>it<<else>>them<</if>> up and you all flee with the fire nipping at your heels.
<<elseif $socio is "artisans">>You quickly organize your household to carry away all the most important things you own—agonizing over the tools of your trade that must be left behind—and flee with the fire nipping at your heels.
<<elseif $socio is "day labourers">>You quickly organize your household to carry away all the most important things you own—sure, it isn't much, but you can't afford to replace any clothing you let burn much less your precious pots and pans—and flee with the fire nipping at your heels.
<<elseif $socio is "beggars">>You quickly organize your household to carry away all the most important things you own—sure, it isn't much, but you can't afford to replace any clothing you let burn—and flee with the fire nipping at your heels.
<<else>>You immediately send servants to find as many carts or boats as they can, to carry away your goods, and begin gathering your most important possessions—your money, your papers, your <span class="def" data-def="A stick used to mark debts and payments, usually with notches on one side. Usually a debtor and lender would split the stick in half and each keep half the stick as a record of their agreement.">tally sticks</span>. <<if $reputation lte 2>>Unfortunately, everyone is so busy saving their own households, they have little to spare for your servants who return empty-handed. All you have is the single cart you already own, which will barely carry anything.<<else>>Luckily, the servants soon return with several carts and you manage to send your most precious household goods out of the path of danger. <</if>> After much agonizing, you task a servant to dig holes in the yard to bury your wine, Parmezan cheese, and most expensive books. Then you and the rest of your <<defHousehold "household">> gather all the things you can hold and flee with the fire nipping at your heels.
<</if>>
<<if $socio is "beggars" or $socio is "day labourers">> You and your family take refuge in the open fields just outside the city and watch in horror as it burns for days.
<<else>> Your household takes refuge in a friend's house in Westminster and watch in horror as the city burns for days.<</if>>
<</if>>
<<else>>
One Sunday morning, you awaken and getting ready for church when you look out the window and realize there is a great fire in the distance. After dressing, you go out to find a neighbor who tells you that over 300 houses have burnt down in the night, by <<defLondonBridge "London Bridge">>.
Curious, you walk <<if $location is "across the river in the southern suburbs">>down to the riverside<<else>>to the <span class="def" data-def="A historic castle on the north bank of the Thames that was built in 1066. It has been used by many English monarchs as both a residence and a prison.">Tower of London</span> and climb up onto a high place<</if>>, where you can see the houses on the end of the <<defLondonBridge "London Bridge">> all aflame. People are frantically flinging their belongings into the river and carrying the sick away in their beds as they run along the muddy riverbank.
You ask around and discover the fire began in the King's Baker's house on Pudding Lane, but everyone believes the French were responsible and are looking for someone to blame. <<if $origin is "France">>You quietly return home and bar the door, determined not to go out again until the streets are safe.<</if>>
<<if $socio is "beggars">>A neighbor's cousin asks if you will help haul his belongings out of the path of the fire. Do you [[agree to help->October 1666][$reputation +=1]] or [[laugh him off and save your strength in case you need it to save your own things->October 1666][$reputation -=1]]?
<<elseif $socio is "day labourers">>A neighbor's cousin asks if you will help haul his belongings out of the path of the fire. Do you [[agree to help->October 1666][$reputation +=1]] or [[laugh him off and save your strength in case you need it to save your own things->October 1666][$reputation -=1]]?
<<else>> A neighbor's cousin asks if he can borrow your cart. Do you [[agree to help->October 1666][$reputation +=1]] or [[laugh him off and keep your cart in case you need it to save your own things->October 1666][$reputation -=1]]?
<</if>>
<</if>>
Everyone is still reeling from the shock of the Great Fire at the beginning of [[October 1666]].
<</if>>
<img src="https://upload.wikimedia.org/wikipedia/commons/b/b6/Great_Fire_London.jpg" width="100%">
//Josepha Jane Battlehooke, The Great Fire of London, 1675//
<<fumigant>>
<</nobr>><<nobr>>
<<random-events>>
<<if not _randomEventFired>>
<<if $location is "inside the City walls">>
<<if $socio is "beggars">>You spend the next several weeks living in a field. The local <<defParish "parish">> church serves food three times a day to keep you and the others from starving, but winter is coming and you know that you'll freeze to death if you don't manage to find permanent shelter before then. <<if $reputation lte 3>>Unfortunately, the first frost comes and you are still homeless because no one would take you in on account of your low reputation. <<if $origin is not "London">> Your only choices are to [[return to your home in $origin->go quietly]] or to <<else>>You <</if>>pray you don't [[freeze]].
<<else>>Luckily, just as the first frost hits the city, you manage to find a friend-of-a-friend who is willing to let you sleep on the floor until you can get more [[permanent lodgings->November 1666]].
<</if>>
<<elseif $socio is "day labourers">>
You spend the next several weeks living in a field. Luckily, there is plenty of work clearing away the debris of the fire and you<<if $age is "child" or $age is "adolescent">> and your family<</if>> manage to scrape together enough money to afford new lodgings in the eastern suburbs of the city. It's just a single room and you're a little worried that the building will fall down around you one night, but at least it's better than freezing to death in the fields. You're grateful to live long enough to see [[November 1666]].
<<else>>You<<if $age is "child" or $age is "adolescent">> and your family<</if>> spend the next several weeks working to clear out the wreckage of your former home. Even though you work as fast as you can, you won't be able to rebuild before winter. <<if $reputation lte 3>>Your poor reputation means that no one is willing to let you stay as a guest with them for long. <<if $age is "child" or $age is "adolescent">>Luckily, due to your young age, friends of the family allow you to stay with them through the [[winter->November 1666]].<<else>><<if $socio is "nobles">> You end up having to leave the city for the winter<<elseif $socio is "merchants">> You end up having to sleep in your office all winter<<else>> You end up having to stay in crappy lodgings that are practically a hovel and well beneath your station<</if>> and are [[very unhappy about it->November 1666]].<</if>><<else>>Because of your good reputation, friends allow you to stay with them through the [[winter->November 1666]].<</if>><</if>>/* NTS regenerate any households here?*/
<<else>>
There's so many people homeless that there's money to be made for someone who's willing to rent out a few rooms of their house, especially with such rainy weather and the increasing cold. <<if $age isnot "child" and $age isnot "adolescent">><<if $socio is "nobles">>You instruct your man of business to make sure none of your tenants are illegally subletting./* NTS insert choices here*/<<elseif $socio is "merchants">>Such activity is beneath your social station, of course, but you are envious of all the people profiting off the disaster.<<elseif $socio is "artisans">> You open up your house and make a lot of money, but take a hit to your reputation because your neighbors accuse you of profiting off the disaster./*would need to do the money and reputation hits here - add it as a choice?*/<<else>> Not that you have room for such a thing, unfortunately.<</if>><</if>>
The weather may be miserable, but every disaster has a silver lining. Between the fires that still <<defSmolder "smolder">> in the city's cellars and the rainy weather, <<defPlague "plague">> cases are plummeting and you've heard that the theatres are finally going to reopen! You greatly look forward to [[November 1666]]
<</if>>
<</if>>
<<fumigant>>
<</nobr>><<nobr>>
<<random-events>>
<<if not _randomEventFired>>
One November day, the church bells peal out in alarm again--not from the destroyed part of the city within its ancient walls, but from the king's palace at <<defWhitehall "Whitehall">>, especially the area around <span class="def" data-def="A large barracks and stables for the Royal Cavalry which served as the entrance to the Palace of Whitehall. The building is defended by the King’s Life Guard, a mounted ceremonial guard.">Horse Guards</span>. Everyone rushes to put out the fire at all costs, unwilling to have a repeat of September's disaster. Thankfully, no lives are lost.
Even better, the king declares the official thanksgiving day for the end of the <<defPlague "plague">>. Yes, some people are still dying, but the numbers are low enough and the epidemic has been going on long enough that most everyone is grateful for its official end.
As <span class="def" data-def="A Christian holiday beginning on Ash Wednesday and ending just before Easter, meant to commemorate the time which Jesus spent in the wilderness. This period was supposed to be observed by fasting or abstinence.">Lent</span> begins, you look forward to actually being able to properly [[celebrate Christmas this year.->December 1666]]
<</if>>
<<fumigant>>
<</nobr>><<nobr>>
<<random-events>>
<<if not _randomEventFired>>
Fires still <<defSmolder "smolder">> in cellars throughout the city. Trouble is brewing in Scotland. The <span class="def" data-def="A summary of all the weekly bills of mortality from the previous year, published annually in the week before Christmas. These bills published the numbers of burials by parish and included data on how people died, whether of plague or some other cause.">general bill of this year's deaths</span> show many <span class="def" data-def="Very bad or unsatisfactory, deplorable, causing sorrow">lamentable</span> <<defPlague "plague">> deaths. But you have made it through 1666 and you thank God you are still alive!
Congratulations. You have [[survived the Great Plague of London->stats]]
<</if>>
<</nobr>>/* This adjusts the rate of infection for a specific location depending on how much time has passed in the game, starting at 6 plays (the first passage after the game starts proper). The play number roughly corresponds to our broad time events.
<<nobr>>
<<silently>>
<<if passage() is "December 1664" or passage() is "January 1665" or passage() is "May 1665">>
<<elseif passage() is "June 1665">>
<<if not visited("Sickness")>>
<<if random(1,500) eq 1>>
<<set $plagueInfection to 1>>
<</if>>
<</if>>
<<for _i = 0; _i < $NPCs.length; _i++>>
<<if $NPCs[_i].health is "healthy">>
<<if random(1,500) lte 1>><<set $NPCs[_i].health to "infected">>
<</if>>
<</if>>
<</for>>
<<for _si = 0; _si < $NPCsServants.length; _si++>>
<<if $NPCsServants[_si].health is "healthy">>
<<if random(1,500) lte 1>><<set $NPCsServants[_si].health to "infected">><</if>>
<</if>>
<</for>>
<<for _mi = 0; _mi < $NPCsMaster.length; _mi++>>
<<if $NPCsMaster[_mi].health is "healthy">>
<<if random(1,500) lte 1>><<set $NPCsMaster[_mi].health to "infected">><</if>>
<</if>>
<</for>>
<<elseif passage() is "July 1665">>
<<if not visited("Sickness")>>
<<if random(1,18) eq 1>>
<<set $plagueInfection to 1>>
<</if>>
<</if>>
<<for _i = 0; _i < $NPCs.length; _i++>>
<<if $NPCs[_i].health is "healthy">>
<<if random(1,18) lte 1>><<set $NPCs[_i].health to "infected">>
<</if>>
<</if>>
<</for>>
<<for _si = 0; _si < $NPCsServants.length; _si++>>
<<if $NPCsServants[_si].health is "healthy">>
<<if random(1,18) lte 1>><<set $NPCsServants[_si].health to "infected">><</if>>
<</if>>
<</for>>
<<for _mi = 0; _mi < $NPCsMaster.length; _mi++>>
<<if $NPCsMaster[_mi].health is "healthy">>
<<if random(1,18) lte 1>><<set $NPCsMaster[_mi].health to "infected">><</if>>
<</if>>
<</for>>
<<elseif passage() is "August 1665">>
<<if not visited("Sickness")>>
<<if random(1,3) eq 1>>
<<set $plagueInfection to 1>>
<</if>>
<</if>>
<<for _i = 0; _i < $NPCs.length; _i++>>
<<if $NPCs[_i].health is "healthy">>
<<if random(1,3) lte 1>><<set $NPCs[_i].health to "infected">>
<</if>>
<</if>>
<</for>>
<<for _si = 0; _si < $NPCsServants.length; _si++>>
<<if $NPCsServants[_si].health is "healthy">>
<<if random(1,3) lte 1>><<set $NPCsServants[_si].health to "infected">><</if>>
<</if>>
<</for>>
<<for _mi = 0; _mi < $NPCsMaster.length; _mi++>>
<<if $NPCsMaster[_mi].health is "healthy">>
<<if random(1,3) lte 1>><<set $NPCsMaster[_mi].health to "infected">><</if>>
<</if>>
<</for>>
<<elseif passage() is "September 1665">>
<<if not visited("Sickness")>>
<<if random(1,5) eq 1>>
<<set $plagueInfection to 1>>
<</if>>
<</if>>
<<for _i = 0; _i < $NPCs.length; _i++>>
<<if $NPCs[_i].health is "healthy">>
<<if random(1,5) lte 1>><<set $NPCs[_i].health to "infected">>
<</if>>
<</if>>
<</for>>
<<for _si = 0; _si < $NPCsServants.length; _si++>>
<<if $NPCsServants[_si].health is "healthy">>
<<if random(1,5) lte 1>><<set $NPCsServants[_si].health to "infected">><</if>>
<</if>>
<</for>>
<<for _mi = 0; _mi < $NPCsMaster.length; _mi++>>
<<if $NPCsMaster[_mi].health is "healthy">>
<<if random(1,5) lte 1>><<set $NPCsMaster[_mi].health to "infected">><</if>>
<</if>>
<</for>>
<<elseif passage() is "October 1665">>
<<if not visited("Sickness")>>
<<if random(1,15) eq 1>>
<<set $plagueInfection to 1>>
<</if>>
<</if>>
<<for _i = 0; _i < $NPCs.length; _i++>>
<<if $NPCs[_i].health is "healthy">>
<<if random(1,15) lte 1>><<set $NPCs[_i].health to "infected">>
<</if>>
<</if>>
<</for>>
<<for _si = 0; _si < $NPCsServants.length; _si++>>
<<if $NPCsServants[_si].health is "healthy">>
<<if random(1,15) lte 1>><<set $NPCsServants[_si].health to "infected">><</if>>
<</if>>
<</for>>
<<for _mi = 0; _mi < $NPCsMaster.length; _mi++>>
<<if $NPCsMaster[_mi].health is "healthy">>
<<if random(1,15) lte 1>><<set $NPCsMaster[_mi].health to "infected">><</if>>
<</if>>
<</for>>
<<elseif passage() is "November 1665">>
<<if random(1,100) lte 1>>
<<set $plagueInfection to 1>>
<</if>>
<<for _i = 0; _i < $NPCs.length; _i++>>
<<if $NPCs[_i].health is "healthy">>
<<if random(1,100) lte 1>><<set $NPCs[_i].health to "infected">>
<</if>>
<</if>>
<</for>>
<<for _si = 0; _si < $NPCsServants.length; _si++>>
<<if $NPCsServants[_si].health is "healthy">>
<<if random(1,100) lte 1>><<set $NPCsServants[_si].health to "infected">><</if>>
<</if>>
<</for>>
<<for _mi = 0; _mi < $NPCsMaster.length; _mi++>>
<<if $NPCsMaster[_mi].health is "healthy">>
<<if random(1,100) lte 1>><<set $NPCsMaster[_mi].health to "infected">><</if>>
<</if>>
<</for>>
<<else>>
<<if random(1,1000) lte 1>>
<<set $plagueInfection to 1>>
<</if>>
<<for _i = 0; _i < $NPCs.length; _i++>>
<<if $NPCs[_i].health is "healthy">>
<<if random(1,1000) lte 1>><<set $NPCs[_i].health to "infected">>
<</if>>
<</if>>
<</for>>
<<for _si = 0; _si < $NPCsServants.length; _si++>>
<<if $NPCsServants[_si].health is "healthy">>
<<if random(1,1000) lte 1>><<set $NPCsServants[_si].health to "infected">><</if>>
<</if>>
<</for>>
<<for _mi = 0; _mi < $NPCsMaster.length; _mi++>>
<<if $NPCsMaster[_mi].health is "healthy">>
<<if random(1,1000) lte 1>><<set $NPCsMaster[_mi].health to "infected">><</if>>
<</if>>
<</for>>
<</if>>
<<set _infectedFamily = []>>
<<for _idx, _household range $NPCs>>
<<if _household.health is "infected">>
<<set _infectedFamily.push(_idx)>>
<</if>>
<</for>>
<</silently>>
<</nobr>>/* This adjusts the rate of infection for a specific location depending on how much time has passed in the game, starting at 6 plays (the first passage after the game starts proper). The play number roughly corresponds to our broad time events.
<<nobr>>
<<silently>>
<<if passage() is "December 1664" or passage() is "January 1665" or passage() is "May 1665">>
<<elseif passage() is "June 1665">>
<<if not visited("Sickness")>>
<<if random(1,1000) eq 1>>
<<set $plagueInfection to 1>>
<</if>>
<</if>>
<<for _i = 0; _i < $NPCs.length; _i++>>
<<if $NPCs[_i].health is "healthy">>
<<if random(1,1000) lte 1>><<set $NPCs[_i].health to "infected">>
<</if>>
<</if>>
<</for>>
<<for _si = 0; _si < $NPCsServants.length; _si++>>
<<if $NPCsServants[_si].health is "healthy">>
<<if random(1,1000) lte 1>><<set $NPCsServants[_si].health to "infected">><</if>>
<</if>>
<</for>>
<<for _mi = 0; _mi < $NPCsMaster.length; _mi++>>
<<if $NPCsMaster[_mi].health is "healthy">>
<<if random(1,1000) lte 1>><<set $NPCsMaster[_mi].health to "infected">><</if>>
<</if>>
<</for>>
<<elseif passage() is "July 1665">>
<<if not visited("Sickness")>>
<<if random(1,100) eq 1>>
<<set $plagueInfection to 1>>
<</if>>
<</if>>
<<for _i = 0; _i < $NPCs.length; _i++>>
<<if $NPCs[_i].health is "healthy">>
<<if random(1,100) lte 1>><<set $NPCs[_i].health to "infected">>
<</if>>
<</if>>
<</for>>
<<for _si = 0; _si < $NPCsServants.length; _si++>>
<<if $NPCsServants[_si].health is "healthy">>
<<if random(1,100) lte 1>><<set $NPCsServants[_si].health to "infected">><</if>>
<</if>>
<</for>>
<<for _mi = 0; _mi < $NPCsMaster.length; _mi++>>
<<if $NPCsMaster[_mi].health is "healthy">>
<<if random(1,100) lte 1>><<set $NPCsMaster[_mi].health to "infected">><</if>>
<</if>>
<</for>>
<<elseif passage() is "August 1665">>
<<if not visited("Sickness")>>
<<if random(1,8) eq 1>>
<<set $plagueInfection to 1>>
<</if>>
<</if>>
<<for _i = 0; _i < $NPCs.length; _i++>>
<<if $NPCs[_i].health is "healthy">>
<<if random(1,8) lte 1>><<set $NPCs[_i].health to "infected">>
<</if>>
<</if>>
<</for>>
<<for _si = 0; _si < $NPCsServants.length; _si++>>
<<if $NPCsServants[_si].health is "healthy">>
<<if random(1,8) lte 1>><<set $NPCsServants[_si].health to "infected">><</if>>
<</if>>
<</for>>
<<for _mi = 0; _mi < $NPCsMaster.length; _mi++>>
<<if $NPCsMaster[_mi].health is "healthy">>
<<if random(1,8) lte 1>><<set $NPCsMaster[_mi].health to "infected">><</if>>
<</if>>
<</for>>
<<elseif passage() is "September 1665">>
<<if not visited("Sickness")>>
<<if random(1,4) eq 1>>
<<set $plagueInfection to 1>>
<</if>>
<</if>>
<<for _i = 0; _i < $NPCs.length; _i++>>
<<if $NPCs[_i].health is "healthy">>
<<if random(1,4) lte 1>><<set $NPCs[_i].health to "infected">>
<</if>>
<</if>>
<</for>>
<<for _si = 0; _si < $NPCsServants.length; _si++>>
<<if $NPCsServants[_si].health is "healthy">>
<<if random(1,4) lte 1>><<set $NPCsServants[_si].health to "infected">><</if>>
<</if>>
<</for>>
<<for _mi = 0; _mi < $NPCsMaster.length; _mi++>>
<<if $NPCsMaster[_mi].health is "healthy">>
<<if random(1,4) lte 1>><<set $NPCsMaster[_mi].health to "infected">><</if>>
<</if>>
<</for>>
<<elseif passage() is "October 1665">>
<<if not visited("Sickness")>>
<<if random(1,6) eq 1>>
<<set $plagueInfection to 1>>
<</if>>
<</if>>
<<for _i = 0; _i < $NPCs.length; _i++>>
<<if $NPCs[_i].health is "healthy">>
<<if random(1,6) lte 1>><<set $NPCs[_i].health to "infected">>
<</if>>
<</if>>
<</for>>
<<for _si = 0; _si < $NPCsServants.length; _si++>>
<<if $NPCsServants[_si].health is "healthy">>
<<if random(1,6) lte 1>><<set $NPCsServants[_si].health to "infected">><</if>>
<</if>>
<</for>>
<<for _mi = 0; _mi < $NPCsMaster.length; _mi++>>
<<if $NPCsMaster[_mi].health is "healthy">>
<<if random(1,6) lte 1>><<set $NPCsMaster[_mi].health to "infected">><</if>>
<</if>>
<</for>>
<<elseif passage() is "November 1665">>
<<if not visited("Sickness")>>
<<if random(1,25) eq 1>>
<<set $plagueInfection to 1>>
<</if>>
<</if>>
<<for _i = 0; _i < $NPCs.length; _i++>>
<<if $NPCs[_i].health is "healthy">>
<<if random(1,25) lte 1>><<set $NPCs[_i].health to "infected">>
<</if>>
<</if>>
<</for>>
<<for _si = 0; _si < $NPCsServants.length; _si++>>
<<if $NPCsServants[_si].health is "healthy">>
<<if random(1,25) lte 1>><<set $NPCsServants[_si].health to "infected">><</if>>
<</if>>
<</for>>
<<for _mi = 0; _mi < $NPCsMaster.length; _mi++>>
<<if $NPCsMaster[_mi].health is "healthy">>
<<if random(1,25) lte 1>><<set $NPCsMaster[_mi].health to "infected">><</if>>
<</if>>
<</for>>
<<elseif passage() is "December 1665">>
<<if not visited("Sickness")>>
<<if random(1,100) eq 1>>
<<set $plagueInfection to 1>>
<</if>>
<</if>>
<<else>>
<<if not visited("Sickness")>>
<<if random(1,1000) eq 1>>
<<set $plagueInfection to 1>>
<</if>>
<</if>>
<<for _i = 0; _i < $NPCs.length; _i++>>
<<if $NPCs[_i].health is "healthy">>
<<if random(1,1000) lte 1>><<set $NPCs[_i].health to "infected">>
<</if>>
<</if>>
<</for>>
<<for _si = 0; _si < $NPCsServants.length; _si++>>
<<if $NPCsServants[_si].health is "healthy">>
<<if random(1,1000) lte 1>><<set $NPCsServants[_si].health to "infected">><</if>>
<</if>>
<</for>>
<<for _mi = 0; _mi < $NPCsMaster.length; _mi++>>
<<if $NPCsMaster[_mi].health is "healthy">>
<<if random(1,1000) lte 1>><<set $NPCsMaster[_mi].health to "infected">><</if>>
<</if>>
<</for>>
<</if>>
<<set _infectedFamily = []>>
<<for _idx, _household range $NPCs>>
<<if _household.health is "infected">>
<<set _infectedFamily.push(_idx)>>
<</if>>
<</for>>
<</silently>>
<</nobr>><<nobr>><<if $socio is "beggars">>Because you refused to work, your <<defParishs "parish's">> <<defOverseersOfThePoor "Overseers of the Poor">> have committed you to the <span class="def" data-def="Jail">gaol</span>!<br><br>
Do you:
[[beg for forgiveness and agree to work->ForgiveMe][$decisions.push("Begged for forgiveness and agreed to work")]]<br>
<<if $origin is "London">>
[[stand firm in your refusal to risk your life->transported][$decisions.push("Stood firm and was transported")]]<br>
<<else>>
[[stand firm in your refusal to risk your life->deported][$decisions.push("Stood firm and was deported")]]
<</if>>
<<elseif $socio is "day labourers">><<set $socio to "beggars">><<set $money to 0>>Because you are no longer working, you quickly run out of money and have to throw yourself on the mercy of your <<defParishs "parish's">> <<defOverseersOfThePoor "Overseers of the Poor">>.<br><br>
They have decided it will be your job to
<<if $gender is "male" or $gender is "nonbinary">><<set $role to "corpsebearer">>remove the <<defPlague "plague">> corpses of anyone who dies.
<br>
<img src="https://upload.wikimedia.org/wikipedia/commons/7/7a/Wilson_%22The_plague...%22%3B_a_corpses_bearer_Wellcome_L0016624.jpg" width="100%">
<br>
//Printed by R. Price, A corpse bearer; reproduction of an engraving from a series of London Cries, 1655. Wellcome Images//
<br><br>
<<elseif $gender is "female" and $reputation gt 5>><<set $role to "searcher">>look at the corpses and determine if they died of <<defPlague "plague">> or some other cause of death
<br>
<img src="https://upload.wikimedia.org/wikipedia/commons/6/67/Plague_in_1665_%28BM_1875%2C0508.1513%29.jpg" width="100%">
<br>
//Nathaniel Parr, published by Thomas Astley, Plague in 1665, 1747//
<<else>><<set $role to "nurse">>nurse the sick and dying, despite the risk to your own life.
<</if>>
<</if>>
<</nobr>><<nobr>>
<<random-events>>
<<if not _randomEventFired>><span id="plague-day-replace">
Despite the English <span class="def" data-def="The English Royal Navy, which was primarily composed of heavily armed warships.">fleet's</span> victory, the war grinds on and rumors begin to circulate that the French are considering siding with the Dutch. <<if $origin is "France" or $origin is "the Dutch republic">>You make sure to talk loudly of your loyalty to the King and the superiority of the English fleet, whenever your neighbors mention the war.<</if>>
<br><br>
<<if $age isnot "child" and $gender isnot "female">><span id="volunteer">Do you volunteer to help fight the French?
<br><br>
<<link "Volunteer for the navy">><<replace "#volunteer">>You have enlisted on [[HMS Royal Sovereign->navy-volunteer]]<</replace>><</link>> | <<link "Stay out of the fighting">><<replace "#volunteer">>
<span id="decision">Do you go looking for more information?
<<link "Yes">><<replace "#decision">><<set $plagueInfection to random(1,30)>>
There aren't as many rumors as there might have been, given how many people have fled the city and how afraid the people who remain are of coming near each other.
<br><br>
The graveyards are beginning to overflow and corpses are being flung into the open marshes of <<defTuttlefields "Tuttle-fields">>. There is still room in the <<defNewChapelChurchyard "New Chapel churchyard">>, that was walled in during the last <<defPlague "plague">> at great public expenses, but only the rich whose families can afford to pay are being buried there now.
<br><br>
<<if $location is "inside the City walls">>[[Worse, the first case of plague has appeared in your parish.->First Plague Day]]
<<else>>
<<if $socio is "beggars" or $socio is "day labourers">>
/* NTS: should these descriptions end with a choice to abandon your work? yes */
<<if $role is "corpsebearer">>You have tried to slip a few corpses in from your <<defParish "parish">> and have been turned away. Luckily, their grieving families are still shut into their houses and can't come out to yell at you over the treatment of the dead.
<br>
<img src="https://upload.wikimedia.org/wikipedia/commons/7/7a/Wilson_%22The_plague...%22%3B_a_corpses_bearer_Wellcome_L0016624.jpg" width="100%">
//Printed by R. Price, A corpse bearer; reproduction of an engraving from a series of London Cries, 1655. Wellcome Images//
<<elseif $role is "searcher">>People attempt to bribe you to say that their loved ones died of something other than <<defPlague "plague">>.
<br>
<img src="https://upload.wikimedia.org/wikipedia/commons/6/67/Plague_in_1665_%28BM_1875%2C0508.1513%29.jpg" width="100%">
<br>
//Nathaniel Parr, Three men loading plague victims from the street onto a cart to left, two of them smoking pipes to protect themselves, a figure with a bundle over his shoulder walking under an arch in the background to right; illustration to a 'History of England', c. 1747, published by Thomas Astley. British Museum.//
<br>
You say <span id="bribe-yn">\
<<link "yes">><<set $reputation -=3>><<set $money +=3>><<set $searcherbribe to 1>><<replace "#bribe-yn">>yes<</replace>><</link>>
| <<link "No">><<set $reputation += 1>><<set $searcherbribe to "no">><<replace "#bribe-yn">>no<</replace>><</link>></span>.
<<elseif $role is "nurse">>You fear death every day.
<</if>><br><br>
<</if>>
It feels like the church bells are ringing constantly, with each new death or funeral.
<br><br>
<<if $socio is "nobles">>
The <<defPlague "plague">> has followed the King's household to <<defHamptonCourt "Hampton Court">> and one of his guards dies of plague at the end of the month.<</if>>
[[Continue to August 1665->August 1665]]
<</if>>
<</replace>><</link>> |
<<link "No">><<replace "#decision">>
<br><br>
The graveyards are beginning to overflow and corpses are being flung into the open marshes of <<defTuttlefields "Tuttle-fields">>. There is still room in the <<defNewChapelChurchyard "New Chapel churchyard">>, that was walled in during the last <<defPlague "plague">> at great public expenses, but only the rich whose families can afford to pay are being buried there now.
<br><br>
<<if $location is "inside the City walls">>[[Worse, the first case of plague has appeared in your parish.->First Plague Day]]
<<else>>
<<if $socio is "beggars" or $socio is "day labourers">>
/* NTS: should these descriptions end with a choice to abandon your work? yes */
<<if $role is "corpsebearer">>You have tried to slip a few corpses in from your <<defParish "parish">> and have been turned away. Luckily, their grieving families are still shut into their houses and can't come out to yell at you over the treatment of the dead.
<br>
<img src="https://upload.wikimedia.org/wikipedia/commons/7/7a/Wilson_%22The_plague...%22%3B_a_corpses_bearer_Wellcome_L0016624.jpg" width="100%">
//Printed by R. Price, A corpse bearer; reproduction of an engraving from a series of London Cries, 1655. Wellcome Images//
<<elseif $role is "searcher">>People attempt to bribe you to say that their loved ones died of something other than <<defPlague "plague">>.
<br>
<img src="https://upload.wikimedia.org/wikipedia/commons/6/67/Plague_in_1665_%28BM_1875%2C0508.1513%29.jpg" width="100%">
<br>
//Nathaniel Parr, Three men loading plague victims from the street onto a cart to left, two of them smoking pipes to protect themselves, a figure with a bundle over his shoulder walking under an arch in the background to right; illustration to a 'History of England', c. 1747, published by Thomas Astley. British Museum.//
<br>
You say <span id="bribe-yn">\
<<link "yes">><<set $reputation -=3>><<set $money +=3>><<set $searcherbribe to 1>><<replace "#bribe-yn">>yes<</replace>><</link>>
| <<link "no">><<set $reputation += 1>><<set $searcherbribe to "no">><<replace "#bribe-yn">>no<</replace>><</link>></span>.
<<elseif $role is "nurse">>You fear death every day.
<</if>><br><br>
<</if>>
It feels like the church bells are ringing constantly, with each new death or funeral.
<br><br>
<<if $socio is "nobles">>
The <<defPlague "plague">> has followed the King's household to <<defHamptonCourt "Hampton Court">> and one of his guards dies of plague at the end of the month.<</if>>
[[Continue to August 1665->August 1665]]
<</if>>
<</replace>><</link>>
</span><</replace>><</link>></span>
<<else>>
<span id="decision">Do you go looking for more information?
<<link "Yes">><<replace "#decision">>
There aren't as many rumors as there might have been, given how many people have fled the city and how afraid the people who remain are of coming near each other.
<br><br>
The graveyards are beginning to overflow and corpses are being flung into the open marshes of <<defTuttlefields "Tuttle-fields">>. There is still room in the <<defNewChapelChurchyard "New Chapel churchyard">>, that was walled in during the last <<defPlague "plague">> at great public expenses, but only the rich whose families can afford to pay are being buried there now.
<br><br>
<<if $location is "inside the City walls">>[[Worse, the first case of plague has appeared in your parish.->First Plague Day]]
<<else>>
<<if $socio is "beggars" or $socio is "day labourers">>
/* NTS: should these descriptions end with a choice to abandon your work? yes */
<<if $role is "corpsebearer">>You have tried to slip a few corpses in from your <<defParish "parish">> and have been turned away. Luckily, their grieving families are still shut into their houses and can't come out to yell at you over the treatment of the dead.
<br>
<img src="https://upload.wikimedia.org/wikipedia/commons/7/7a/Wilson_%22The_plague...%22%3B_a_corpses_bearer_Wellcome_L0016624.jpg" width="100%">
//Printed by R. Price, A corpse bearer; reproduction of an engraving from a series of London Cries, 1655. Wellcome Images//
<<elseif $role is "searcher">>People attempt to bribe you to say that their loved ones died of something other than <<defPlague "plague">>.
<br>
<img src="https://upload.wikimedia.org/wikipedia/commons/6/67/Plague_in_1665_%28BM_1875%2C0508.1513%29.jpg" width="100%">
<br>
//Nathaniel Parr, Three men loading plague victims from the street onto a cart to left, two of them smoking pipes to protect themselves, a figure with a bundle over his shoulder walking under an arch in the background to right; illustration to a 'History of England', c. 1747, published by Thomas Astley. British Museum.//
<br>
You say <span id="bribe-yn">\
<<link "yes">><<set $reputation -=3>><<set $money +=3>><<set $searcherbribe to 1>><<replace "#bribe-yn">>yes<</replace>><</link>>
| <<link "No">><<set $reputation += 1>><<set $searcherbribe to "no">><<replace "#bribe-yn">>no<</replace>><</link>></span>.
<<elseif $role is "nurse">>You fear death every day.
<</if>><br><br>
<</if>>
It feels like the church bells are ringing constantly, with each new death or funeral.
<br><br>
<<if $socio is "nobles">>
The <<defPlague "plague">> has followed the King's household to <<defHamptonCourt "Hampton Court">> and one of his guards dies of plague at the end of the month.<</if>>
[[Continue to August 1665->August 1665]]
<</if>>
<</replace>><</link>> |
<<link "No">><<replace "#decision">>
<br><br>
The graveyards are beginning to overflow and corpses are being flung into the open marshes of <<defTuttlefields "Tuttle-fields">>. There is still room in the <<defNewChapelChurchyard "New Chapel churchyard">>, that was walled in during the last <<defPlague "plague">> at great public expenses, but only the rich whose families can afford to pay are being buried there now.
<br><br>
<<if $location is "inside the City walls">>[[Worse, the first case of plague has appeared in your parish.->First Plague Day]]
<<else>>
<<if $socio is "beggars" or $socio is "day labourers">>
/* NTS: should these descriptions end with a choice to abandon your work? yes */
<<if $role is "corpsebearer">>You have tried to slip a few corpses in from your <<defParish "parish">> and have been turned away. Luckily, their grieving families are still shut into their houses and can't come out to yell at you over the treatment of the dead.
<br>
<img src="https://upload.wikimedia.org/wikipedia/commons/7/7a/Wilson_%22The_plague...%22%3B_a_corpses_bearer_Wellcome_L0016624.jpg" width="100%">
//Printed by R. Price, A corpse bearer; reproduction of an engraving from a series of London Cries, 1655. Wellcome Images//
<<elseif $role is "searcher">>People attempt to bribe you to say that their loved ones died of something other than <<defPlague "plague">>.
<br>
<img src="https://upload.wikimedia.org/wikipedia/commons/6/67/Plague_in_1665_%28BM_1875%2C0508.1513%29.jpg" width="100%">
<br>
//Nathaniel Parr, Three men loading plague victims from the street onto a cart to left, two of them smoking pipes to protect themselves, a figure with a bundle over his shoulder walking under an arch in the background to right; illustration to a 'History of England', c. 1747, published by Thomas Astley. British Museum.//
<br>
You say <span id="bribe-yn">\
<<link "yes">><<set $reputation -=3>><<set $money +=3>><<set $searcherbribe to 1>><<replace "#bribe-yn">>yes<</replace>><</link>>
| <<link "no">><<set $reputation += 1>><<set $searcherbribe to "no">><<replace "#bribe-yn">>no<</replace>><</link>></span>.
<<elseif $role is "nurse">>You fear death every day.
<</if>><br><br>
<</if>>
It feels like the church bells are ringing constantly, with each new death or funeral.
<br><br>
<<if $socio is "nobles">>
The <<defPlague "plague">> has followed the King's household to <<defHamptonCourt "Hampton Court">> and one of his guards dies of plague at the end of the month.<</if>>
[[Continue to August 1665->August 1665]]
<</if>>
<</replace>><</link>></span>
<</if>>
<<fumigant>>
<</if>>
<</nobr>><<nobr>>
It is a difficult decision, but your family decide it's for the best to send your sick to the <span class="def" data-def="A hospital used for the treatment and isolation of people infected with Bubonic plague or other infectious diseases">pesthouse</span>.
<br><br>
<<if $reputation lte 3>>To your horror, rumors swirl that your family have actually murdered a member of your household and hidden the body! <<if $murder gte 1>> Remembering the rumors of murder that circulated last time your family sent someone to the household, you <</if>><<if $murder lte 1>>You<</if>> send to the master of the pesthouse to produce a certificate for you that proves the rumor is a lie.
<<set $reputation -=2>><<set $murder =1>>
<</if>>
<<set $money -= 5>>
<br>
Family status after quarantine:
<<for _z, _idx range $NPCs>>
$NPCs[_z].relationship, $NPCs[_z].name, $NPCs[_z].health
<</for>>
<<silently>><<if random(1,2) eq 1>><<set $plagueInfection to 1>><</if>><</silently>>
<br><br>
<<orphan-check>>
<<storyline-return>>
<</nobr>>
<img src="https://upload.wikimedia.org/wikipedia/commons/5/58/The_pest_house_and_plague_pit%2C_Moorfields%2C_London._Wellcome_V0013229.jpg" width="100%">
<br>
//The pest house and plague pit, Moorfields, London. Wood engraving. Wellcome Images.//
<<widget "sickFam">><<nobr>>
<<set $plagueRevealed to 1>>
As morning dawns, a terrible realization settles over your <<defHousehold "household">>. Your
<<silently>><<set _infectedFamily = []>>
<<for _idx, _household range $NPCs>>
<<if _household.health is "infected">>
<<set _infectedFamily.push(_idx)>>
<</if>>
<</for>>
<<set _infectedServants = []>>
<<for _idx, _sv range $NPCsServants>>
<<if _sv.health is "infected">>
<<set _infectedServants.push(_idx)>>
<</if>>
<</for>>
<<set _infectedMaster = []>>
<<for _idx, _mh range $NPCsMaster>>
<<if _mh.health is "infected">>
<<set _infectedMaster.push(_idx)>>
<</if>>
<</for>><</silently>>
<<for _n, _idx range _infectedFamily>>
<<if _infectedFamily.length eq 1>>
$NPCs[_idx].relationship $NPCs[_idx].name is infected with the plague.<br>
<<elseif _n < _infectedFamily.length - 1>>$NPCs[_idx].relationship, $NPCs[_idx].name,<<else>> and $NPCs[_idx].relationship, $NPCs[_idx].name are infected with the plague.<br>
<</if>>
<</for>>
<<for _n, _idx range _infectedServants>>
<<if _infectedServants.length eq 1>>
Your $NPCsServants[_idx].relationship $NPCsServants[_idx].name is infected with the plague.<br>
<<elseif _n < _infectedServants.length - 1>>$NPCsServants[_idx].relationship, $NPCsServants[_idx].name,<<else>> and $NPCsServants[_idx].relationship, $NPCsServants[_idx].name are infected with the plague.<br>
<</if>>
<</for>>
<<for _n, _idx range _infectedMaster>>
<<if _infectedMaster.length eq 1>>
Your $NPCsMaster[_idx].relationship $NPCsMaster[_idx].name is infected with the plague.<br>
<<elseif _n < _infectedMaster.length - 1>>$NPCsMaster[_idx].relationship, $NPCsMaster[_idx].name,<<else>> and $NPCsMaster[_idx].relationship, $NPCsMaster[_idx].name are infected with the plague.<br>
<</if>>
<</for>>
<br>
As a good Christian, it is your duty to look after the poor, sick, and needy. But as a good Christian, you also know it is a sin to needlessly risk your life. Do you<<if $age is "child" or $age is "adolescent">> convince your household to<</if>>:<ul>
<li>[[Quarantine with your household->Quarantine, Week 1][$reputation to Math.clamp($reputation + 3, 0, 10)]]</li>
<li>[[Send the sick to the pesthouse->FamPesthouse][$reputation to Math.clamp($reputation - 5, 0, 10)]]</li>
</ul>
<</nobr>>
<</widget>>
<<widget "check-NPCs">>
/* check to see which family members were infected and put into temp array */
<<silently>>
<<set _infectedFamily = []>>
<<for _y, _household range $NPCs>>
<<if _household.health is "infected">>
<<set _infectedFamily.push(_y)>>
<</if>>
<</for>>
<</silently>>
<</widget>>
/* if sending household away or back to place of origin, change their location for status updates */
<<widget "fled-family">><<silently>>
<<if $origin isnot "London">><<set $hhlocation to $origin>><<else>><<set $hhlocation to "in the countryside">><</if>>
<<for _f range $NPCs>>
<<set $FledFamily.push(_f)>>
<</for>>
<<set $NPCs to []>>
/* For nobles, keep 1-2 servants while the rest flee with the family */
<<if $socio is "nobles" and $NPCsServants.length gt 0>>
<<set _keepCount to random(1,2)>>
<<if _keepCount gt $NPCsServants.length>><<set _keepCount to $NPCsServants.length>><</if>>
<<set _totalServants to $NPCsServants.length>>
<<for _fs to _keepCount; _fs lt _totalServants; _fs++>>
<<set $FledServants.push($NPCsServants[_fs])>>
<</for>>
<<set $NPCsServants to $NPCsServants.slice(0, _keepCount)>>
<</if>>
<</silently>>
<</widget>>
<<widget "health-update">>
<<silently>><<if ndef _deceased>><<set _deceased to []>><</if>><<if ndef _recovered>><<set _recovered to []>><</if>><<for _d range _deceased>>
<<set $NPCs[_d].health to "deceased">>
<</for>>
<<for _r range _recovered>>
<<set $NPCs[_r].health to "recovered">>
<</for>>
/* Process servant health updates */
<<for _si = 0; _si < $NPCsServants.length; _si++>>
<<if $NPCsServants[_si].health is "infected">>
<<if _remedyEffect is 1 and random(1,3) is 1>><<set $NPCsServants[_si].health to "deceased">>
<<elseif _remedyEffect is 0 and random(1,2) is 1>><<set $NPCsServants[_si].health to "deceased">>
<<else>><<set $NPCsServants[_si].health to "recovered">>
<</if>>
<</if>>
<</for>>
/* Process master household health updates */
<<for _mi = 0; _mi < $NPCsMaster.length; _mi++>>
<<if $NPCsMaster[_mi].health is "infected">>
<<if random(1,2) eq 1>><<set $NPCsMaster[_mi].health to "deceased">>
<<else>><<set $NPCsMaster[_mi].health to "recovered">><</if>>
<</if>>
<</for>>
<</silently>><</widget>><<widget "storyline-return">>
<<nobr>>
/* NTS if you were imprisoned or impressed, show a bit of text here that says what happened while you were away. Add code that moves you forward a play equivalent to your imprisonment time. */
<<if hasVisited("November 1666")>>[[Continue.->December 1666]]
<<elseif hasVisited("October 1666")>>[[Continue.->November 1666]]
<<elseif hasVisited("September 1666")>>[[Continue.->October 1666]]
<<elseif hasVisited("August 1666")>>[[Continue.->September 1666]]
<<elseif hasVisited("July 1666")>>[[Continue.->August 1666]]
<<elseif hasVisited("June 1666")>>[[Continue.->July 1666]]
<<elseif hasVisited("May 1666")>>[[Continue.->June 1666]]
<<elseif hasVisited("April 1666")>>[[Continue.->May 1666]]
<<elseif hasVisited("March 1666")>>[[Continue.->April 1666]]
<<elseif hasVisited("February 1666")>>[[Continue.->March 1666]]
<<elseif hasVisited("January 1666")>>[[Continue.->February 1666]]
<<elseif hasVisited("December 1665")>>[[Continue.->January 1666]]
<<elseif hasVisited("November 1665")>>[[Continue.->December 1665]]
<<elseif hasVisited("October 1665")>>[[Continue.->November 1665]]
<<elseif hasVisited("September 1665")>>[[Continue.->October 1665]]
<<elseif hasVisited("August 1665")>>[[Continue.->September 1665]]
<<elseif hasVisited("July 1665")>>[[Continue.->August 1665]]
<<elseif hasVisited("June 1665")>>[[Continue.->July 1665]]
<<elseif hasVisited("May 1665")>>[[Continue.->June 1665]]
<<elseif hasVisited("January 1665")>>[[Continue.->May 1665]]
<</if>>
<</nobr>>
<</widget>><<nobr>><<silently>><<set $plagueInfection to 2>><</silently>>
You attempt to hide your illness from everyone, hoping that if you just ignore it then the lump will go away.<br><br>
Unfortunately, that's not how plague works. The lump gets bigger and is soon joined by even more lumps. They are now undeniably plague <<defBuboes "buboes">>.
<br><br>
<<if $socio is "nobles">>The King is furious at your deception and [[banishes you to your country estate->banished][$reputation =0]]. <<else>>Your neighbors realize you attempted to hide your sickness and decide you can no longer be trusted. Not only do they shut up your household, they also conspire to have you [[removed to the pesthouse->YouPesthouse][$reputation to 0]]<<if $socio is "merchants">> despite your high social status <</if>> to keep the plague from spreading further.<</if>>
<</nobr>><<nobr>><<set $plagueInfection to 2>>All but the most loyal—or desperate—servants flee from your country estate. The villagers refuse to receive your servants and even the local priest hesitates to come pray for you.
<<linkreplace "You take to your sickbed as your fever spikes and you fear for your life.">><<linkreplace "It occurs to you that perhaps you ought to write your will.">>
<<if random(1,2) is 1>>Luckily, you will be too delirious to notice that the remainder of your servants all abandon you in the hours before your [[death]].
<<else>>Luckily, despite your disgrace, your final few servants stay by your side, praying for your life and administering every <<defPlague "plague">> remedy known to mankind.
<br><br>
You don't know which helps more, but after a few days you feel your fever break and your <<defBuboes "buboes">> begin to go down. Thanks be to God, you have survived the plague.
<br><br>
Now you just have to figure out how to overcome your disgrace and find your way back into the King's good graces. Groveling will obviously have to be involved, but that won't be enough. Do you also:<br>
<ul>
<li><<link "help him find his next mistress">><<set $money to Math.clamp($money - 12800, 0, 1000000)>><<storyline-return>><</link>></li>
<li><<link "loan him all your money to fund the war effort">><<set $reputation +=1>><<set $money to 0>><<storyline-return>><</link>></li>
<li><<link "give him all your money to fund the war effort">><<set $reputation +=2>><<set $money to 0>><<storyline-return>><</link>></li>
</ul>
<</if>>
<</linkreplace>>
<</linkreplace>>
<</nobr>><<silently>><<set $plagueInfection to 2>><</silently>>
<<nobr>>
The pesthouse is a terrible place to be confined, with countless sick people all crammed in close together so you can hear their every moan. They die terrifyingly fast and their cots refill just as quickly. You toss and turn in your dirty, sweat-soaked sheets, as your fever spikes and you fear for your life.
<br><br>
<<if $socio is "merchants">>It occurs to you that perhaps you ought to have written your will, but your reputation is so poor and the pesthouse is so terrifying that no one can be convinced to bring you the writing materials you need.<br><<elseif $socio is "artisans">>It occurs to you that perhaps you ought to have written your will, but your reputation is so poor and the pesthouse is so terrifying that you can't convince a <<defScrivener "scrivener">> to come help you.<br><br><</if>>
<<if random(1,2) is 1>>Luckily, you will grow too delirious to notice how miserable you are in the hours before your [[death]].<<else>>You spend all your remaining energy in prayer that God will spare you from death. Despite the neglect of the overworked pesthouse staff, after a few days you feel your fever break and your <<defBuboes "buboes">> begin to go down. Thanks be to God, you have survived the plague.
<br><br>
<img src="https://upload.wikimedia.org/wikipedia/commons/5/58/The_pest_house_and_plague_pit%2C_Moorfields%2C_London._Wellcome_V0013229.jpg" width="100%">
<br>
//The pest house and plague pit, Moorfields, London. Wood engraving. Wellcome Images.//
<br><br>
<<orphan-check>>
Now you just have to figure out how to overcome your disgrace when you return home to your neighborhood. You decide to start by:<br>
<<if $money gte 2>>
<<linkreplace "giving all your money to the poor">><<set $money to 0>><<set $decisions.push("Gave all money to the poor as penance")>>
<<storyline-return>>
<br>
<</linkreplace>>
<<linkreplace "giving all your money to the poor //and// performing public penance in church">><<set $decisions.push("Gave all money and performed public penance")>>
<<set $money to 0>>
<<set $reputation +=1>>
<<storyline-return>>
<</linkreplace>>
<<else>>
<<linkreplace "performing public penance in church">><<set $decisions.push("Performed public penance in church")>>
<<set $reputation +=1>>
<<storyline-return>>
<</linkreplace>>
<</if>>
<</if>>
<</nobr>>Since you refuse to work in London, the local authorities decide to have you deported back to $origin.
<br>
Do you:
[[try to escape and return to London->escape]]
[[go quietly]]You try to escape
<<if random(1,2) == 1>>but are immediately caught. The local authorities decide the safest course of action now is to have you [[transported]] to the New World.
<<else>>and manage to sneak back into London.
<<if $reputation gte 3>> Luckily, one of your neighbors takes pity on you and lets you stay with them while you seek work and a new place to stay. <<set $socio="day labourers">> /* NTS should regenerate household here? */
<<else>>Unfortunately, now you are now homeless, no longer receiving alms from your <<defParishs "parish's">> <span class="def" data-def="Two parish officials elected to administer to the needs of the poor in their parish. These positions were created by the Poor Relief Act of 1597.">Overseers for the Poor</span>, and cannot legally beg anymore. It doesn't take long before you are caught and thrown in gaol.
<br>
Do you:
<<link "beg for forgiveness and agree to work">>
<<storyline-return>>
<</link>>
[[stand firm in your refusal to risk your life->transported]]
<</if>>
<</if>><<nobr>>
<<if $origin is "London">>There's no plague in the New World, so you decide to take a chance and move to the colonies. It's a rough journey and difficult to start over again somewhere so different. You will always miss London.
<<else>>
You return to <<if $origin isnot "somewhere else">>$origin<<else>>your homeland<</if>> and never see London again.<</if>>
<br><br>
But at least you didn't die of plague!
<br><br>
[[How typical was your experience of the Great Plague of London? Let's find out!->stats]]
<</nobr>><<nobr>>
<h2>Your Story</h2>
<h3>Player Stats</h3>
<ul>
<li>Name: $name</li>
<li>Age: $age</li>
<li>Gender: $gender</li>
<li>Religion: $religion</li>
<li>Social class: $socio</li>
<li>Location: $location</li>
<li>Origin: $origin</li>
<li>Reputation: $reputation</li>
<<set _shillings to Math.floor($money/12)>><<set _pence to ($money - (_shillings*12))>>
<<set _pounds to Math.floor(_shillings/20)>><<set _shillings to (_shillings - Math.floor(_pounds*20))>>
<li>Wealth: £_pounds, _shillings s., _pence d.</li>
<<if $role isnot "0">><li>Role: $role</li><</if>>
</ul>
<h3>Household</h3>
<<if $NPCs.length gt 0>>
<ul>
<<for _i to 0; _i lt $NPCs.length; _i++>>
<li>$NPCs[_i].name ($NPCs[_i].relationship) - $NPCs[_i].health</li>
<</for>>
</ul>
<<else>>
<p>You have no household members.</p>
<</if>>
<<if $FledFamily.length gt 0>>
<h4>Fled Family</h4>
<ul>
<<for _i to 0; _i lt $FledFamily.length; _i++>>
<li>$FledFamily[_i].name ($FledFamily[_i].relationship) - $FledFamily[_i].health</li>
<</for>>
</ul>
<</if>>
<<if $NPCsServants.length gt 0>>
<h4>Servants</h4>
<ul>
<<for _i to 0; _i lt $NPCsServants.length; _i++>>
<li>$NPCsServants[_i].name - $NPCsServants[_i].health</li>
<</for>>
</ul>
<</if>>
<h3>Decisions Made</h3>
<<if $decisions.length gt 0>>
<ol>
<<for _i to 0; _i lt $decisions.length; _i++>>
<li>$decisions[_i]</li>
<</for>>
</ol>
<<else>>
<p>No decisions recorded yet.</p>
<</if>>
<</nobr>>The local authorities decide to have you bound into <span class="def" data-def="A person who has signed a labor contract, such as that of an apprentice or servant, to work for a set number of years in exchange for housing, food, clothing, training in a trade, and/or some other material benefit.">indentured servitude</span> and shipped to the colony of Virginia.
<br>
If you don't die during the perilous months' long journey across the Atlantic, you'll probably die of disease or violence within the first couple of years after your arrival.
<br>
Though if by God's grace you do survive it all, at the end you will be given your freedom and enough land to start growing crops.
<br>
Good luck! You'll need it...
[[How typical was your experience of the Great Plague of London? Let's find out!->stats]]<<widget "sickPC">>
<<nobr>>
<<set $plagueRevealed to 1>>
Lord have mercy! A strange lump has appeared on your
<<set _x to random(1,3)>>
<<if _x == 3>>neck and there's no hiding that you have caught the dreaded [[plague->Sickness]].
<<else>><<if _x == 1>>leg
<<elseif _x == 2>>armpit<</if>>. <br>Do you:
<ul><li>warn people you have [[plague->Sickness]]</li>
<li>[[try to hide it ->Hide][$reputation to 0]]</li>
</ul>
<</if>>
<</nobr>>
<</widget>><<widget "highway">>
<<nobr>>
It's illegal to beg on the highways, but you wonder if you would have better luck there.
/* NTS: fix text here to influence choices */
<<if $money lte 2>>With little resources left, you have few choices.<<else>>You have some coins saved, but know resources may be scarce in the future.<</if>><br><br>
Do you:
<ul>
<<if not hasVisited("May 1665")>><li>[[put your trust in the charity of your neighbors->good-neighbors][$reputation +=1]]</li><</if>>
<li><<if random(1,3) == 1>>[[take a risk and pray that God will protect you from harm|impressed][$impressed += 1]]<<else>>[[take a risk and pray that God will protect you from harm->begging-success][$reputation -=1]]<</if>></li>
<li>[[hope that you can survive on the resources you have->survival-mode][$money to Math.clamp($money - 1, 0, 100)]]</li>
</ul>
<</nobr>>
<</widget>><<nobr>><<set $beggarsluck to random(0,5)>><<set $money = ($money + $beggarsluck)>>Your begging earned you <<if $beggarsluck eq 0>>0 coins.<<else>>''$beggarsluck'' coin.<br><br><</if>>
<<if $money lte 1>>Unfortunately, with no extra coins... /*NTS: more text here/consequences with no money*/
<<else>>Your coins allow you to purchase food or secure shelter, but at a cost to your reputation...<br><br><<set $reputation -= 1>><</if>>
<<unset $beggarsluck>>
<<storyline-return>>
<</nobr>><<set $money = ($money + 1)>>Your neighbors provide ''1 coin'' for you.
<<storyline-return>><<widget "beggar-roles">><<nobr>>
<<if $disability is 0>> and the <<defOverseersOfThePoor "Overseers of the Poor">> have decided it will be your job to
<<if $gender is "male" or $gender is "nonbinary">><<set $role to "corpsebearer">>remove the <<defPlague "plague">> corpses if anyone dies
<br>
<img src="https://upload.wikimedia.org/wikipedia/commons/7/7a/Wilson_%22The_plague...%22%3B_a_corpses_bearer_Wellcome_L0016624.jpg" width="100%">
//Printed by R. Price, A corpse bearer; reproduction of an engraving from a series of London Cries, 1655. Wellcome Images//
<<elseif $gender is "female" and $reputation gt 5>><<set $role to "searcher">>look at the corpses and determine if they died of <<defPlague "plague">> or some other cause of death
<br>
<img src="https://upload.wikimedia.org/wikipedia/commons/6/67/Plague_in_1665_%28BM_1875%2C0508.1513%29.jpg" width="100%">
//Nathaniel Parr, published by Thomas Astley, Plague in 1665, 1747.//
<<else>><<set $role to "nurse">>nurse the sick and dying, despite the risk to your own life
<</if>>
<</if>>.
<<if $disability is 1>>Many of your neighbors begin to flee the city and those who remain curse at you to leave when you try begging at their doors.<</if>>
<</nobr>>
<</widget>>You quietly freeze to death, but at least it was a [[painless way to go->stats]].<<if $reputation gt 3>>Your reputation is <span style="color:#ffffff;">good</span>.<<elseif $reputation lt 3>>Your reputation is <span style="color:red">bad</span>.<</if>><br>
<<income>>
/* Wealth at beginning of month: $money */
Income: $income
Monthly spending: $expenses
/* Disposable: _disposable */
/* Remaining total: _remainder */
/*<<set $money to _remainder>>*/
<<nobr>>
<<set _shillings to Math.floor($money/12)>><<set $pence to ($money - (_shillings*12))>>
<<if _shillings gte 20>>
<<set $pounds to Math.floor(_shillings/20)>><<set $shillings to (_shillings- Math.floor($pounds*20))>><</if>>
Total wealth: $money (£$pounds, $shillings s., $pence d.)
<</nobr>>
<<link "Inventory">>
<<run Dialog.setup("Inventory", "inventory"); Dialog.wiki(Story.get("Inventory").text); Dialog.open()>>
<</link>>
Forgiveness is a Christian virtue and you are lucky that your neighbors practice it. You publicly apologize and are officially forgiven, though it will take a while longer before your reputation is restored.
<<storyline-return>><<if $origin is "London">>
You <<if $age is "child" or $age is "adolescent">>and your family <</if>>are out of money and have been thrown in debtor's prison.
<<set $plagueInfection to random (0,1)>>
<<if $plagueInfection eq 1>>
<<sickPC>>
<<elseif _infectedFamily.length gte 1>><<sickFam>>
<<else>>
You <<if $age is "child" or $age is "adolescent">>and your family <</if>>spend the rest of the month in prison.
<<storyline-return>>
<</if>>
<<else>>
You are out of money and have been sent back to your home. You go and never see London again.
<br><br>
But at least you didn't die of plague!
<br><br>
[[How typical was your experience of the Great Plague of London? Let's find out!->stats]]
<</if>>
/* Quarantine Week 1*/
<<nobr>><<set $quarantine to 1>>
/* check which family members are currently infected */
<<silently>>
<<set _infectedFamily = []>>
<<for _y, _household range $NPCs>>
<<if _household.health is "infected">>
<<set _infectedFamily.push(_y)>>
<</if>>
<</for>>
<</silently>>
<span id="plague-replace">
Your neighbors shut up the entrances to your house and paint a red cross with the words //Lord Have Mercy// on the front door.<br><br>
You have heard and read about different courses of treatment for the sick. <<hh-treatments>>
<<link "You tend to the sick and suffering.">><<replace "#plague-replace">>
<<silently>>
/* Check if player has used a helpful remedy to decrease chance of death */
<<for _s range _infectedFamily>>
<<if _remedyEffect is 1 and random(1,3) is 1>>
<<set $NPCs[_s].health to "deceased1">>
<<elseif _remedyEffect is 0 and random(1,2) is 1>>
<<set $NPCs[_s].health to "deceased1">>
<<else>>
<<set $NPCs[_s].health to "recovered1">>
<</if>>
<</for>>
/* Check for family members who died or recovered */
<<set _deceased = []>>
<<set _recovered = []>>
<<for _d, _household range $NPCs>>
<<if _household.health is "deceased1">><<set _deceased.push(_d)>>
<</if>>
<<if _household.health is "recovered1">><<set _recovered.push(_d)>>
<</if>>
<</for>>
/* Check for fumigants to prevent spread to household */
<<for _i = 0; _i < $NPCs.length; _i++>>
<<if $NPCs[_i].health is "healthy">>
<<if $fumes.Fancy.quantity gt 0 or $fumes.Generic.quantity gt 0 or $fumes.Incense.quantity gt 0 or $fumes.Purse.quantity gt 0>>
<<if random(1,4) is 1>><<set $NPCs[_i].health to "infected">>
<</if>>
<<else>>
<<if random(1,2) is 1>><<set $NPCs[_i].health to "infected">>
<</if>>
<</if>>
<</if>>
<</for>>
/* Check for fumigants to prevent spread to servants */
<<for _si = 0; _si < $NPCsServants.length; _si++>>
<<if $NPCsServants[_si].health is "healthy">>
<<if $fumes.Fancy.quantity gt 0 or $fumes.Generic.quantity gt 0 or $fumes.Incense.quantity gt 0 or $fumes.Purse.quantity gt 0>>
<<if random(1,4) is 1>><<set $NPCsServants[_si].health to "infected">><</if>>
<<else>>
<<if random(1,2) is 1>><<set $NPCsServants[_si].health to "infected">><</if>>
<</if>>
<</if>>
<</for>>
/* check for fumigants to prevent spread to player */
<<if $plagueInfection is 0>>
<<if $fumes.Fancy.quantity gt 0 or $fumes.Generic.quantity gt 0 or $fumes.Incense.quantity gt 0 or $fumes.Purse.quantity gt 0>>
<<if random(1,4) is 1>><<set $plagueInfection to 1>>
<</if>>
<<else>>
<<if random(1,2) is 1>><<set $plagueInfection to 1>>
<</if>>
<</if>>
<</if>>
<</silently>>
/* reveal which family members have died or survived*/
<<if _deceased.length gt 0>>The week is full of sorrows. Despite your care, your
<<for _x, _d range _deceased>>
<<if _deceased.length eq 1>>$NPCs[_d].relationship, $NPCs[_d].name has died.
<<elseif _x < _deceased.length - 1>>$NPCs[_d].relationship, $NPCs[_d].name,
<<else>>and $NPCs[_d].relationship, $NPCs[_d].name have died.
<</if>>
<</for>>
<br><br>
<</if>>
/* show which family members recovered */
<<if _recovered.length gt 0>><<if _deceased.length gt 0>>There is some good news, though.<</if>> The treatments seem to be helping, and your
<<for _r, _d range _recovered>>
<<if _recovered.length eq 1>>$NPCs[_d].relationship, $NPCs[_d].name has started to recover from their illness.<br><br>
<<elseif _r < _recovered.length - 1>>$NPCs[_d].relationship, $NPCs[_d].name
<<else>>and $NPCs[_d].relationship, $NPCs[_d].name have started to recover from their illness.<br><br>
<</if>>
<</for>>
<</if>>
You must remain in <<defQuarantine "quarantine">> for at least three more weeks, however, and only time will tell if the disease has spread.
<br><br>
<<health-update>>
/* Check if player was infected, send to next passage depending */
<<if $plagueInfection is 1>>[[You pray that God does have mercy on your household as you continue to nurse the sick.->Sickness]]
<<else>>[[You pray that God does have mercy on your household as you continue to nurse the sick.->Quarantine, Week 2]]
<</if>>
<<fumigant>>
<</replace>>
<</link>>
</span>
<</nobr>><<nobr>><<set $quarantine to 2>>
/* check if any family members were infected the previous week */
<<silently>>
<<set _infectedFamily = []>>
<<for _y, _household range $NPCs>>
<<if _household.health is "infected">>
<<set _infectedFamily.push(_y)>>
<</if>>
<</for>>
<</silently>>
<span id="plague-replace">
The first week was agony. The second is no better.<br><br>
/* reveal which family members are infected */
<<if _infectedFamily.length gt 0>>The illness has spread through your household and your
<<for _z, _y range _infectedFamily>>
<<if _infectedFamily.length eq 1>>$NPCs[_y].relationship $NPCs[_y].name is now infected.<br>
<<elseif _z < _infectedFamily.length - 1>>$NPCs[_y].relationship $NPCs[_y].name, <<else>>and $NPCs[_y].relationship $NPCs[_y].name are now infected.
<</if>>
<</for>>
/* call in widget showing treatment options if family members are infected */
<<hh-treatments>>
<<link "You tend to the sick and suffering.">><<replace "#plague-replace">>
<<silently>>
/* Check if player has used a helpful remedy to decrease chance of death */
<<for _s range _infectedFamily>>
<<if _remedyEffect is 1 and random(1,3) is 1>><<set $NPCs[_s].health to "deceased2">>
<<elseif _remedyEffect is 0 and random(1,2) is 1>><<set $NPCs[_s].health to "deceased2">>
<<else>><<set $NPCs[_s].health to "recovered2">>
<</if>>
<</for>>
/* Check for family members who died or recovered */
<<set _deceased = []>>
<<set _recovered = []>>
<<for _d, _household range $NPCs>>
<<if _household.health is "deceased2">><<set _deceased.push(_d)>>
<</if>>
<<if _household.health is "recovered2">><<set _recovered.push(_d)>>
<</if>>
<</for>>
/* Check for fumigants to prevent spread to household */
<<for _i = 0; _i < $NPCs.length; _i++>>
<<if $NPCs[_i].health is "healthy">>
<<if $fumes.Fancy.quantity gt 0 or $fumes.Generic.quantity gt 0 or $fumes.Incense.quantity gt 0 or $fumes.Purse.quantity gt 0>>
<<if random(1,4) is 1>><<set $NPCs[_i].health to "infected">><</if>>
<<else>>
<<if random(1,2) is 1>><<set $NPCs[_i].health to "infected">><</if>>
<</if>>
<</if>>
<</for>>
/* Check for fumigants to prevent spread to servants */
<<for _si = 0; _si < $NPCsServants.length; _si++>>
<<if $NPCsServants[_si].health is "healthy">>
<<if $fumes.Fancy.quantity gt 0 or $fumes.Generic.quantity gt 0 or $fumes.Incense.quantity gt 0 or $fumes.Purse.quantity gt 0>>
<<if random(1,4) is 1>><<set $NPCsServants[_si].health to "infected">><</if>>
<<else>>
<<if random(1,2) is 1>><<set $NPCsServants[_si].health to "infected">><</if>>
<</if>>
<</if>>
<</for>>
/* check for fumigants to prevent spread to player */
<<if $plagueInfection is 0>>
<<if $fumes.Fancy.quantity gt 0 or $fumes.Generic.quantity gt 0 or $fumes.Incense.quantity gt 0 or $fumes.Purse.quantity gt 0>>
<<if random(1,4) is 1>><<set $plagueInfection to 1>><</if>>
<<else>>
<<if random(1,2) is 1>><<set $plagueInfection to 1>><</if>>
<</if>>
<</if>>
<</silently>>
/* reveal which family members have died or survived*/
<<if _deceased.length gt 0>>Despite your care, your
<<for _x, _d range _deceased>>
<<if _deceased.length eq 1>> $NPCs[_d].relationship $NPCs[_d].name has died.<<elseif _x < _deceased.length - 1>> $NPCs[_d].relationship $NPCs[_d].name,<<else>>and $NPCs[_d].relationship $NPCs[_d].name have died.
<</if>>
<</for>>
<br><br>
<</if>>
/* show which family members recovered */
<<if _recovered.length gt 0>>
<<if _deceased.length gt 0>>There is some good news, though. <</if>>The treatments seem to be helping, and your
<<for _r, _d range _recovered>>
<<if _recovered.length eq 1>>$NPCs[_d].relationship $NPCs[_d].name has started to recover from their illness.<<elseif _r < _recovered.length - 1>>$NPCs[_d].relationship $NPCs[_d].name<<else>>and $NPCs[_d].relationship $NPCs[_d].name have started to recover from their illness.
<</if>>
<</for>>
<br><br>
<</if>>
You must remain in <<defQuarantine "quarantine">> for at least two more weeks, however, and only time will tell if the disease has spread.
/* Check if player was infected, send to next passage depending */
<<if $plagueInfection is 1>>[[You fear more of your family will die. You are even more afraid you will fall ill next.->Sickness]]
<<else>>[[You fear more of your family will die. You are even more afraid you will fall ill next.->Quarantine, Week 3]]
<</if>>
<<fumigant>>
<<health-update>>
<</replace>>
<</link>>
<<else>>
<<if _recovered.length gt 0>>Although the sick have started to recover, you<<else>>You must also remain in <<defQuarantine "quarantine">> for at least two more weeks, and [[only time will tell if the disease has spread.->Quarantine, Week 3]]<</if>>
<<health-update>>
<<fumigant>>
<</if>>
</span>
<</nobr>><<nobr>><<set $quarantine to 3>>
/* check if any family members were infected the previous week */
<<silently>>
<<set _infectedFamily = []>>
<<for _y, _household range $NPCs>>
<<if _household.health is "infected">>
<<set _infectedFamily.push(_y)>>
<</if>>
<</for>>
<</silently>>
<span id="plague-replace">
As you enter the third week of <<defQuarantine "quarantine">>, even the smallest glimmer of hope is a welcome relief.<br><br>
<<if _infectedFamily.length eq 0>>While the recovery process is slow for those who were ill, the infection does not seem to have spread any further.
You must also remain in quarantine for at least two more weeks, and [[only time will tell if the plague will claim more.->Quarantine, Week 4]]
<<health-update>>
<<else>> Unfortunately, the illness has continued to spread through your household, and your
<<for _z, _y range _infectedFamily>>
<<if _infectedFamily.length eq 1>>$NPCs[_y].relationship $NPCs[_y].name is now infected.<br>
<<elseif _z < _infectedFamily.length - 1>>$NPCs[_y].relationship $NPCs[_y].name, <<else>>and $NPCs[_y].relationship $NPCs[_y].name are now infected.
<</if>>
<</for>>
/* call in widget showing treatment options if family members are infected */
<<hh-treatments>>
<<link "You tend to the sick and suffering.">><<replace "#plague-replace">>
<<silently>>
<<fumigant-check>>
/* Check if player has used a helpful remedy to decrease chance of death */
<<for _s range _infectedFamily>>
<<if _remedyEffect is 1 and random(1,3) is 1>><<set $NPCs[_s].health to "deceased3">>
<<elseif _remedyEffect is 0 and random(1,2) is 1>><<set $NPCs[_s].health to "deceased3">>
<<else>><<set $NPCs[_s].health to "recovered3">>
<</if>>
<</for>>
/* Check for family members who died or recovered */
<<set _deceased = []>>
<<set _recovered = []>>
<<for _d, _household range $NPCs>>
<<if _household.health is "deceased3">><<set _deceased.push(_d)>>
<</if>>
<<if _household.health is "recovered3">><<set _recovered.push(_d)>>
<</if>>
<</for>>
/* Check for fumigants to prevent spread to household */
<<for _i = 0; _i < $NPCs.length; _i++>>
<<if $NPCs[_i].health is "healthy">>
<<if _fumes gt 0 and random(1,4) eq 1>><<set $NPCs[_i].health to "infected">>
<<elseif _fumes lt 1 and random(1,2) eq 1>><<set $NPCs[_i].health to "infected">>
<</if>>
<</if>>
<</for>>
/* Check for fumigants to prevent spread to servants */
<<for _si = 0; _si < $NPCsServants.length; _si++>>
<<if $NPCsServants[_si].health is "healthy">>
<<if _fumes gt 0 and random(1,4) eq 1>><<set $NPCsServants[_si].health to "infected">>
<<elseif _fumes lt 1 and random(1,2) eq 1>><<set $NPCsServants[_si].health to "infected">>
<</if>>
<</if>>
<</for>>
/* check for fumigants to prevent spread to player */
<<if $plagueInfection is 0>>
<<if _fumes gt 0 and random(1,4) is 1>><<set $plagueInfection to 1>>
<<elseif _fumes lt 1 and random(1,2) is 1>><<set $plagueInfection to 1>>
<</if>>
<</if>>
<</silently>>
/* reveal which family members have died or survived*/
<<if _deceased.length gt 0>>Despite your care, your
<<for _x, _d range _deceased>>
<<if _deceased.length eq 1>> $NPCs[_d].relationship $NPCs[_d].name has died.<<elseif _x < _deceased.length - 1>> $NPCs[_d].relationship $NPCs[_d].name,<<else>>and $NPCs[_d].relationship $NPCs[_d].name have died.
<</if>>
<</for>>
<br><br>
<</if>>
/* show which family members recovered */
<<if _recovered.length gt 0>>
<<if _deceased.length gt 0>>There is some good news, though. <</if>>The treatments seem to be helping, and your
<<for _r, _d range _recovered>>
<<if _recovered.length eq 1>>$NPCs[_d].relationship $NPCs[_d].name has started to recover from their illness.<<elseif _r < _recovered.length - 1>>$NPCs[_d].relationship $NPCs[_d].name<<else>>and $NPCs[_d].relationship $NPCs[_d].name have started to recover from their illness.
<</if>>
<</for>>
<br><br>
<</if>>
/*NTS: fix text here!*/
You wonder what has been taking place in the outside world and hope for even a small bit of news as you enter the final weeks of quarantine.
/* Check if player was infected, send to next passage depending */
<<if $plagueInfection is 1>>[[The days continue to pass with agonizing slowness.->Sickness]]
<<else>>[[The days continue to pass with agonizing slowness.->Quarantine, Week 4]]
<</if>>
<<fumigant>>
<<health-update>>
<</replace>>
<</link>>
<</if>>
</span>
<</nobr>><<nobr>><<set $quarantine to 4>>
/* check if any family members were infected the previous week */
<<silently>>
<<set _infectedFamily = []>>
<<for _y, _household range $NPCs>>
<<if _household.health is "infected">>
<<set _infectedFamily.push(_y)>>
<</if>>
<</for>>
<</silently>>
/*NTS: fix text here */
After nearly a month in <<defQuarantine "quarantine">>, you begin to believe you might survive this.
/* reveal which family members are infected */
<<if _infectedFamily.length gt 0>>Unfortunately, even more members of your household have fallen ill. Your
<<for _z, _y range _infectedFamily>>
<<if _infectedFamily.length eq 1>>$NPCs[_y].relationship $NPCs[_y].name is now infected.<br>
<<elseif _z < _infectedFamily.length - 1>>$NPCs[_y].relationship $NPCs[_y].name, <<else>>and $NPCs[_y].relationship $NPCs[_y].name are now infected.
<</if>>
<</for>>
<</if>>
/* if more family members were infected, offer treatment options & run death recovery & spread code */
<<if _infectedFamily.length gt 0>>
/* call in widget showing treatment options if family members are infected */
<<hh-treatments>>
<<linkappend "You continue to tend to the sick and suffering.">><br><br>
<<silently>>
<<fumigant-check>>
/* check if you used a remedy, determine if sick family recovers or dies */
<<for _s range _infectedFamily>>
<<if _remedyEffect is 1 and random(1,3) is 1>><<set $NPCs[_s].health to "deceased4">>
<<elseif _remedyEffect is 0 and random(1,2) is 1>><<set $NPCs[_s].health to "deceased4">>
<<else>><<set $NPCs[_s].health to "recovered4">>
<</if>>
<</for>>
/* Check for family members who died or recovered */
<<set _deceased = []>>
<<set _recovered = []>>
<<for _d, _household range $NPCs>>
<<if _household.health is "deceased4">><<set _deceased.push(_d)>>
<</if>>
<<if _household.health is "recovered4">><<set _recovered.push(_d)>>
<</if>>
<</for>>
/* Check for fumigants to prevent spread to household */
<<for _i = 0; _i < $NPCs.length; _i++>>
<<if $NPCs[_i].health is "healthy">>
<<if _fumes gt 0 and random(1,4) eq 1>><<set $NPCs[_i].health to "infected">>
<<elseif _fumes lt 1 and random(1,2) eq 1>><<set $NPCs[_i].health to "infected">>
<</if>>
<</if>>
<</for>>
/* Check for fumigants to prevent spread to servants */
<<for _si = 0; _si < $NPCsServants.length; _si++>>
<<if $NPCsServants[_si].health is "healthy">>
<<if _fumes gt 0 and random(1,4) eq 1>><<set $NPCsServants[_si].health to "infected">>
<<elseif _fumes lt 1 and random(1,2) eq 1>><<set $NPCsServants[_si].health to "infected">>
<</if>>
<</if>>
<</for>>
/* check for fumigants to prevent spread to player */
<<if $plagueInfection is 0>>
<<if _fumes gt 0 and random(1,4) is 1>><<set $plagueInfection to 1>>
<<elseif _fumes lt 1 and random(1,2) is 1>><<set $plagueInfection to 1>>
<</if>>
<</if>>
<</silently>>
/* reveal which family members have died or survived*/
/* NTS: update text here for variety from past weeks */
<<if _deceased.length gt 0>>Despite your care, your
<<for _x, _d range _deceased>>
<<if _deceased.length eq 1>>$NPCs[_d].relationship $NPCs[_d].name has died.<<elseif _x < _deceased.length - 1>>$NPCs[_d].relationship $NPCs[_d].name,<<else>>and $NPCs[_d].relationship $NPCs[_d].name have died.
<</if>>
<</for>>
<br><br>
<</if>>
/* show which family members recovered */
<<if _recovered.length gt 0>><<if _deceased.length gt 0>>There is some good news, though. <</if>>The treatments seem to be helping, and your
<<for _r, _d range _recovered>>
<<if _recovered.length eq 1>>$NPCs[_d].relationship $NPCs[_d].name has started to recover from their illness.
<<elseif _r < _recovered.length - 1>>$NPCs[_d].relationship $NPCs[_d].name
<<else>>and $NPCs[_d].name have started to recover from their illness.
<</if>>
<</for>>
<br><br>
<</if>>
/* Check if player or additional family were infected, send to next passage depending */
<<silently>><<unset _infectedFamily>><<unset _household>>
<<set _infectedFamily = []>>
<<for _y, _household range $NPCs>>
<<if _household.health is "infected">>
<<set _infectedFamily.push(_y)>>
<</if>>
<</for>><</silently>>
<<if $plagueInfection is 1>>[[You wonder what has happened while you were away from the world.->Sickness]]
<<elseif _infectedFamily.length gt 0>>[[You wonder what has been happening while you are away from the world.->Quarantine, Week 5]]
<<else>>[[You wonder what has happened while you were away from the world.->Reconnecting]]
<</if>>
<<fumigant>>
<<health-update>>
<</linkappend>>
<<else>> The infection seems to have burned itself out, and you can now focus on the recovery of those who survived.<br><br>
[[You wonder what has been happening while you were away from the world.->Reconnecting]]
<<fumigant>>
<<health-update>>
<</if>>
<</nobr>><<nobr>>
<<if $socio is "nobles">>You<<if $age is "child" or $age is "adolescent">> convince your family to<<else>> have decided to<</if>> ''flee to your country estate''.
<<elseif $socio is "servants">>
Your master flees London with you and the rest of his <<defHousehold "household">>. You have only a little time to prepare and say goodbye to your friends before you leave.<br>
<<elseif $socio is "beggars" and $fled is 2>>You<<if $age is "child" or $age is "adolescent">> convince your family <<else>> decide <</if>>to flee the city to save yourself. Unfortunately, with no money and no reputation to speak of anymore, you only have the option of illegally begging along the road to survive./*note this conditional includes servants who flee their masters*/
<<else>>You decide to flee the city<<if $origin isnot "London" and $origin isnot "somewhere else">> and return to $origin<<elseif $origin is "somewhere else">>and return to your homeland<</if>>.<br><br><</if>>
Despite being safely out of harm's way, you closely follow the news of London's <<defPlague "plague">> outbreak. As the death toll rises, you worry about the people you know back in the city but are relieved that you are out of harm's way.<br><br>
In fact, you<<if $age is "child" or $age is "adolescent">> and your family<</if>> are determined to stay away:
<ul>
<li>[[until the end of the summer, when plague death should start coming down again->Summer 1665]]</li>
<li>[[until the winter, when plague typically goes away->Winter 1665]]</li>
<li>[[until the King and his court decide it's safe to return to the city->court-return]]</li>
<li>[[until the official Day of Thanksgiving for the end of the plague outbreak->official-end]]</li>
<li>[[until there are no more plague deaths in London->no-plague]]</li>
<li>[[for good->go quietly]]</li>
</ul>
<</nobr>>/* call in this widget to give some players a chance to leave after the first appearance of plague */
<<widget "late-departure">>
<<nobr>>
/* Day Labourer Choice */
/* NTS: might need text here or elsewhere about why you'd leave/send away family: work? money? */
<<if $socio is "day labourers" and $origin isnot "London">>
It's also not too late to
<<if $hoh is 0 and $NPCs.length gt 0>>try and convince your family to [[flee the city and return to your home land.->Fled][$fled to 6]]
<<elseif $fled is 5>>[[flee the city and join your family back in your home land.->Fled][$fled to 6]]
<<elseif $fled is 4>>
<<if $NPCs.length gt 0>>[[send your family back to your home land without you->Stay][$fled to 5]], or [[flee the city with your family.->Fled][$fled to 6]]
<<else>>[[flee the city and return to your homeland.->Fled][$fled to 6]]
<</if>>
<</if>>
<<elseif $socio is "day labourers">>
<<if $hoh is 0 and $NPCs.length gt 0>>try and convince your family to [[flee to some other city where they can find work.->Fled][$fled to 6]]
<<elseif $fled is 5>>[[flee London and join your family.->Fled][$fled to 6]]
<<elseif $fled is 4>>
<<if $NPCs.length gt 0>>[[send your family to some other city where they can find work->Stay][$fled to 5]], or [[flee London with your family and find work in another city.->Fled][$fled to 6]]
<<else>>[[flee London to some other city where you can find work.->Fled][$fled to 6]]
<</if>>
<</if>>
<</if>>
/* Servant choice */
<<if $socio is "servants">>
It's also not too late to
<<if $hoh is 0 and $NPCs.length gt 0>>try to convince your family to <</if>>[[flee the city, even though your master has chosen to stay.->Fled][$fled to 2; $socio to "beggars"; $reputation to 0; $role to "unemployed"; $NPCsMaster to []; $NPCs to []; $decisions.push("Broke contract and fled the city")]]
<</if>>
/* Artisans choice */
<<if $socio is "artisans">>
It's also not too late to
<<if $reputation gt 5>>
<<if $fled is 4>>
<<if $hoh is 0 and $NPCs.length gt 0>>try to convince your family to <</if>>[[flee the city with your household and head to the countryside->Fled][$fled to 6; $reputation to Math.clamp($reputation - 1, 0, 10); $money -= 1120]], or [[send the rest of your household away while you remain behind.->Stay][$fled to 5; $money -= 560]]
<<elseif $fled is 5>>[[join the rest of your household in the countryside->Fled][$fled to 6; $money -= 560; $reputation to Math.clamp($reputation - 1, 0, 10)]]
<<elseif $fled is 7>>[[try to flee again, hoping your reputation has improved enough since your last attempt to seek help->Fled][$fled to 6; $money -= 560; $reputation to Math.clamp($reputation - 1, 0, 10)]]
<</if>>
<<else>>
<<if random(1,2) eq 1>>[[flee the city with your entire household->Fled][$reputation to Math.clamp($reputation - 1, 0, 10); $fled to 6; $money -= 1120]]<<else>>[[Flee the city with your entire household.->Failed-Flight][$reputation to Math.clamp($reputation - 1, 0, 10); $fled to 7; $money -= 1120]]
<</if>>
<</if>>
<</if>>
/* Merchant's choice */
<<if $socio is "merchants">>
It's also not too late to <<if $hoh is 0 and $NPCs.length gt 0>>try and convince your family to <</if>>[[flee to the countryside with your household->Fled][$fled to 6; $money -= 1600; $reputation to Math.clamp($reputation - 1, 0, 10)]]
<</if>>
/* Noble's choice */
<<if $socio is "nobles">>
It's also not too late to <<if $hoh is 0 and $NPCs.length gt 0>>try and convince your family to <</if>>[[flee to the countryside with your household->Fled][$fled to 6; $money -= 10000; $reputation to Math.clamp($reputation - 1, 0, 10)]]
<</if>>
<</nobr>>
<</widget>>
/* send players back to the right passage depending on when plague hits */
<<widget "first-plague-day-continue">>
<<if $location is "in another part of the western suburbs">>[[You know that plague only grows worse as the weather warms, and you dread the coming of June and the first real heat of summer.->June 1665]]
<<elseif $location is "inside the City walls">>[[Continue to August 1665->August 1665]]
<<else>>[[Continue to July 1665->July 1665]]
<</if>>
<</widget>>
You help your <<defHousehold "household">> to pack up and leave the city for safety. You promise to meet them should the situation grow worse.
<<storyline-return>><<widget "no-plague-yet">>
<<nobr>>
Luckily, there are no plague cases in your <<defParish "parish">>... yet.
/* Beggar story */
<<if $socio is "beggars">>But your neighbors are no longer willing to give you food or money when you come begging to their doors.<br>
<<highway>>
<</if>>
/*Day Labourer*/
<<if $socio is "day labourers">>Many people are beginning to remove their goods to the countryside, though, which makes extra opportunities for you to earn money. /* NTS: Navy passage options? Other options for accepting work? */
<</if>>
/* Servants */
<<if $socio is "servants">>You anxiously await your master's decision about whether the <<defHousehold "household">> will flee or stay.
<</if>>
/* Artisans */
<<if $socio is "artisans">>You will soon need to decide if you want to flee or at least send the rest of your <<defHousehold "household">> away before things get worse.
<</if>>
/* Merchants */
<<if $socio is "merchants">>You will soon need to decide if you want to flee or at least send the rest of your <<defHousehold "household">> away before things get worse.
<</if>>
/* Nobles */
<<if $socio is "nobles">>You will soon need to decide if it is worth the risk of staying in London, near enough to visit the Court regularly, or if you or your <<defHousehold "household">> should flee before things get worse.
<</if>>
<</nobr>>
<</widget>><!-- SIDEBAR -->
<div id="sidebar">
<div class="sidebar-header">
<!-- EMPTY DIV -->
<div></div>
<!-- NAME OF YOUR GAME -->
<h1 class="story-title" data-passage="gameTitle"></h1>
<!-- MENU TOGGLE ICON -->
<div class="sidebar-toggle">
<span id="sidebar-toggle-icon" class="lnr lnr-menu-circle" style="color: white;"></span>
</div>
</div>
<!-- HISTORY BUTTONS THAT ALLOW USER TO GO BACKWARDS AND FORWARDS -->
<!-- COMMENT THESE OUT IF YOU DON'T WANT THEM IN YOUR GAME -->
<div class="sidebar-history-nav">
<span id="backwards-button" class="lnr lnr-arrow-left" style="color: white;"></span>
<span id="forwards-button" class="lnr lnr-arrow-right" style="color: white;"></span>
</div>
<div id="sidebar-body">
<!-- GAME LOGO IMAGE --><br>
<div class="story-logo" data-passage="storyLogo"></div>
<!-- AUTHOR NAME -->
<h2 class="story-author" data-passage="storyAuthor"></h2>
<nav class="sidebar-nav">
<ul class="story-tools">
<li>
<span id="restart-button" class="lnr lnr-redo" style="color: white;"></span>
<span class="tooltiptext">Restart</span>
</li>
<li>
<span id="saves-button" class="lnr lnr-download" style="color: white;"></span>
<span class="tooltiptext">Saves</span>
</li>
<li>
<span id="settings-button" class="lnr lnr-cog" style="color: white;"></span>
<span class="tooltiptext">Settings</span>
</li>
</ul>
<ul class="story-menu" data-passage="storyMenu">
</ul>
</nav>
<nav id="social-media">
<!-- placeholder in case we want social media later -->
<!-- Social Media -->
<!-- <<socialMedia>> -->
</nav>
</div> <!-- SIDEBAR-BODY END TAG -->
</div> <!-- SIDEBAR END TAG -->
<div id="mystory" role="main">
<div id="passages">
<div id="passage-start" data-passage="start" class="passage">
</div>
</div>
</div><<widget "plague-work">>
<<nobr>>
<<if $socio is "beggars">>
<<if $role is "corpsebearer">>As a corpsebearer, every night, you must go round to the locked up houses of your <<defParish "parish">> and call for them to bring out their dead, while praying to God that you remain safe.
<br>
<img src="https://upload.wikimedia.org/wikipedia/commons/7/7a/Wilson_%22The_plague...%22%3B_a_corpses_bearer_Wellcome_L0016624.jpg" width="100%">
//Printed by R. Price, A corpse bearer; reproduction of an engraving from a series of London Cries, 1655. Wellcome Images//
<<elseif $role is "searcher">>As a searcher, every time you are called to someone's house to determine a cause of death, you pray to God to protect you. You are starting to have nightmares about seeing <<defBuboes "buboes">> and the tokens of <<defPlague "plague">> on your neighbors.
<br>
<img src="https://upload.wikimedia.org/wikipedia/commons/6/67/Plague_in_1665_%28BM_1875%2C0508.1513%29.jpg" width="100%">
//Nathaniel Parr, published by Thomas Astley, Plague in 1665, 1747.//
<<elseif $role is "nurse">>The <<defOverseersOfThePoor "Overseers of the Poor">> assign you to your first <<defPlague "plague">> patient to nurse.
<</if>>
<<elseif $socio is "servants">> /* NTS: work text here */
<<elseif $socio is "day labourers">>
<<if $role is "corpsebearer">>Every night, you go round to the locked up houses of your <<defParish "parish">> and call for them to bring out their dead, while praying to God that you remain safe.
<br>
<img src="https://upload.wikimedia.org/wikipedia/commons/7/7a/Wilson_%22The_plague...%22%3B_a_corpses_bearer_Wellcome_L0016624.jpg" width="100%">
//Printed by R. Price, A corpse bearer; reproduction of an engraving from a series of London Cries, 1655. Wellcome Images//
<<elseif $role is "searcher">>Every time you are called to someone's house to determine a cause of death, you pray to God to protect you. You are starting to have nightmares about seeing <<defBuboes "buboes">> and the tokens of <<defPlague "plague">> on your neighbors.
<br>
<img src="https://upload.wikimedia.org/wikipedia/commons/6/67/Plague_in_1665_%28BM_1875%2C0508.1513%29.jpg" width="100%">
//Nathaniel Parr, published by Thomas Astley, Plague in 1665, 1747.//
<<elseif $role is "nurse">><span class="def" data-def="The smallest administrative unit of the English church. An official known as the parish clerk kept local records of christenings, burials, and marriages of everyone who lived within the parish. In this period, parish officials were responsible for maintaining the local social safety net, which included supporting and licensing beggars.">Parish</span> officials tell you there is a patient for you to nurse.
<</if>>
<<elseif $socio is "artisans">> /* NTS: work text here */
<<elseif $socio is "merchants">> /* NTS: work text here */
<</if>>
<</nobr>>
<</widget>><a href="https://rrchnm.org/" target="_blank"><img src="https://avatars.githubusercontent.com/u/296531?s=280&v=4" height="50px"></a>Gaming the Great Plague<a href="https://rrchnm.org/">RRCHNM</a><<nobr>><div class="status-box"><<if $reputation gte 9>><div class="rep-best">''Reputation:'' <br> a worthy soul</div><<elseif $reputation gte 6 and $reputation lte 8>><div class="rep-good">''Reputation:''<br>of good credit and quality</div><<elseif $reputation gte 3 and $reputation lte 5>><div class="rep-poor">''Reputation:''<br>bad credit is better than none</div><<elseif $reputation lte 2>><div class="rep-worst">''Reputation:''<br>a worthless and base rogue</div><</if>></div><br>
<div class="status-box"><div class="income"><span class="def" data-def="The amount of money you have left after paying your living expenses. Converted to pounds, shilling, and pence.">Disposable Income</span>:<br> /* @@#money; <<= $money>> @@ */ @@ #conversion; <<conversion>> @@</div></div>
<!-- PLACE LINKS TO YOUR MENU BELOW, BUT REMEMBER TO WRAP IN <LI> TAGS -->
<!--removing conditional code on apothecary so it's always accessible <<if not tags().includes("quarantine")>><<if visited("First Plague Day")>><li>[[Apothecary]]</li><</if>><</if>>-->
<li>[[Apothecary]]</li>
<li><<link "Inventory">>
<<run Dialog.setup("Inventory", "inventory"); Dialog.wiki(Story.get("Inventory").text); Dialog.open()>>
<</link>></li>
<li><<link "Household Status">>
<<run Dialog.setup("Household", "household"); Dialog.wiki(Story.get("Household Status").text); Dialog.open()>>
<</link>></li>
<</nobr>>Player stats:
<ul><li>Name: $name</li>
<li>Age: $age</li>
<li>Social class: $socio</li>
<li>Location: $location</li>
</ul>
<<ListNPCs>>
<!-- IMPORTANT! INCLUDE THE CODE BELOW ON ALL STAT PAGES TO MAKE SURE THE LINK RETURNS THE USER TO THE LAST PASSAGE. IF YOU USE A NORMAL RETURN LINK IT WILL SIMPLY LOOP -->Your stats go here..
<!-- IMPORTANT! INCLUDE THE CODE BELOW ON ALL STAT PAGES TO MAKE SURE THE LINK RETURNS THE USER TO THE LAST PASSAGE. IF YOU USE A NORMAL RETURN LINK IT WILL SIMPLY LOOP -->
/*<center><<link "Return to game" $return>><</link>></center>*/
/* I think this is irrelevant so commenting out but leaving in case it causes a bug*//*Infection Program: determines rate of plague infection based on your location*/
<<widget "infection-program">>
<<if $location is "inside the City walls">><<include [[inside-city]]>>
<<elseif $location is "in another part of the western suburbs">><<include [[Western-infection]]>>
<<elseif $location is "in the western suburbs, specifically Westminster">><<include [[Westminster-infection]]>>
<<elseif $location is "in the eastern suburbs">><<include [[eastern-infection]]>>
<<elseif $location is "in the northern suburbs">><<include [[northern-infection]]>>
<<elseif $location is "across the river in the southern suburbs">><<include [[southern-infection]]>>
<</if>>
<</widget>>
<<widget "income">>
<<set _hhSize to $NPCs.length + 1>>
<<if $role is "unemployed">><<set $income to 0>>
<<elseif $socio is "beggars">><<set $income to 120>>
<<elseif $socio is "day labourers">><<set $income to 300>>
<<elseif $socio is "servants">><<set $income to 300>>
<<elseif $socio is "artisans">><<set $income to 800>>
<<elseif $socio is "merchants">><<set $income to 4000>>
<<elseif $socio is "nobles">><<set $income to 17600>>
<</if>>
<</widget>>
<<widget "expenses">>
<<set _hhSize to $NPCs.length + 1>>
<<if $socio is "beggars">><<set $expenses to 120>>
<<elseif $socio is "day labourers">><<set $expenses to 240>>
<<elseif $socio is "servants">><<set $expenses to 220>>
<<elseif $socio is "artisans">><<set $expenses to 560>>
<<elseif $socio is "merchants">><<set $expenses to 2800>>
<<elseif $socio is "nobles">><<set $expenses to 12800>>
<</if>><</widget>>
<<widget "disposable">><<nobr>><<silently>>
<<set _disposable to ($income - $expenses)>>
<<set $money to Math.clamp($money + _disposable, 0, 10000000)>>
<</silently>><</nobr>>
<</widget>>
<<widget "conversion">><<nobr>><<silently>>
<<set _convertAmt to (_args.length ? _args[0] : $money)>><<set _shillings to Math.floor(_convertAmt/12)>><<set _pence to (_convertAmt - (_shillings*12))>>
<<if _shillings gte 20>>
<<set _pounds to Math.floor(_shillings/20)>><<set _shillings to (_shillings - Math.floor(_pounds*20))>>
<<else>><<set _pounds to 0>><</if>><</silently>>
£_pounds, _shillings s., _pence p.<</nobr>><</widget>>
<<widget "money">><<nobr>>
<<set $money to Math.clamp($money + _args[0], 0, Infinity)>>
<<replace "#conversion">><<conversion>><</replace>><</nobr>>
<</widget>>
/*<<widget "buylink">>
<<set _item to _args[0]>>
<<set _amount to _args[1]>>
<<set _price to setup.prices.get(_item) || 1>>
<p @data-item="_item" class="buy-listing"><table>
<tr><th>Item</th><th>Number</th><th>Price</th><th>Buy</th></tr>
<tr><td>_item</td>
<td class="count">_amount</td>
<td>_price</td>
<td class="buy-link">
<<link "Buy">>
<<if $money < _price>>
<<run UI.alert("You don't have enough money!")>>
<<else>>
<<money `-1 * _price`>>
<<transfer $shop $player _item 1>>
<<set _amount -->>
<<if _amount > 0>>
<<replace `"p.buy-listing[data-item=\"" + _item + "\"] > .count"`>>_amount<</replace>>
<<else>>
<<remove `"p.buy-listing[data-item=\"" + _item + "\"]"`>>
<</if>>
<</if>>
<</link>>
</td></tr></table>
</p>
<</widget>>*/<<nobr>><h2>Fumigants:</h2><br>
<table width=90%><th width=70%>Item</th><th width=30%>Quantity</th><<for _key range $fumes>>
<tr><td>_key.name</td><td> _key.quantity</td></tr>
<</for>>
</table><br><br>
<h2>Remedies</h2>
<table width=90%><th width=70%>Item</th><th width=30%>Quantity</th><<for _key range $remedies>>
<tr><td>_key.name</td><td> _key.quantity</td></tr>
<</for>>
</table>
<</nobr>><<nobr>>
<<silently>>
<<set _hhSize to $NPCs.length + 1>>
<<set _celestialPrice to _hhSize*36>>
<<set _treaclePrice to _hhSize*6>>
<<set _incensePrice to _hhSize*3>>
<<set _pursePrice to _hhSize*60>>
<<set _fancyfumesPrice to 192 >>
<<set _genericfumesPrice to 24>>
<</silently>>
The <<defApothecary "apothecary">> sells items that may help your family avoid illness. For the <span class="def" data-def="
A medicine or treatment meant to promote healing or alleviate symptoms for a disease, disorder, or injury.">remedies</span> to be effective, however, you must purchase enough for all members of your <<defHousehold "household">>. The effects are also limited and must be used constantly for prevention.<br>
<table style="width:100%">
<tr><th style="width:40%">Item</th><th style="width:20%">Price</th><th style width="20%">Have (per person/month's supply)</th><th style="width:20%">Purchase </th></tr>
<tr><h3>Preventative Medicines</h3></tr>
<tr>
<td>
<<link "Celestial Water">>
<<run Dialog.setup("Celestial Water"); Dialog.wiki("Take every morning to prevent catching plague, as many drops as desired stirred into broth, posset, or half a glass of white wine. One month's dose."); Dialog.open()>>
<</link>>
</td>
<td><<conversion _celestialPrice>></td>
<td>$remedies.Celestial.quantity</td>
<td>
<<if $money gte _celestialPrice>>
<<link "Buy">><<money `-1 * _celestialPrice`>>
<<set $remedies.Celestial.quantity +=1>><<run Engine.show()>>
<</link>><<else>>You don't have enough to buy this.
<</if>>
</td>
</tr>
<tr><td><<link "London Treacle">><<run Dialog.setup("London Treacle"); Dialog.wiki("A restorative drink that may help prevent plague infection"); Dialog.open()>><</link>></td><td><<conversion _treaclePrice>></td><td>$remedies.Treacle.quantity</td>
<td id="treacle">
<<if $money gte _treaclePrice>><<link "Buy">><<money `-1 * _treaclePrice`>><<set $remedies.Treacle.quantity += 1>><<run Engine.show()>><</link>><<else>>You don't have enough to buy this.<</if>></td></tr>
<tr><h3>Fumigants</h3></tr>
<tr><td><<link "A purse of incense">><<run Dialog.setup("Incense Purse"); Dialog.wiki("A purse of incense to be worn around your neck to prevent catching plague. Must be re-incensed regularly. One month's supply."); Dialog.open()>><</link>></td><td><<conversion _pursePrice>></td><td>$fumes.Purse.quantity</td><td><<if $money gte _pursePrice>><<link "Buy">><<money `-1 * _pursePrice`>><<set $fumes.Purse.quantity +=1>><<run Engine.show()>><</link>><<else>>You don't have enough to buy this.<</if>></td></tr>
<tr><td><<link "St. Giles Powder">><<run Dialog.setup("St. Giles Powder"); Dialog.wiki("Fumigates your home with a pleasant-smelling substance. Burn 1 tsp twice each day as a preventative; burn 1 tsp 4-5 times each day in infected homes. One month's supply."); Dialog.open()>><</link>></td><td><<conversion _fancyfumesPrice>></td><td>$fumes.Fancy.quantity</td><td id="fancy"><<if $money gte _fancyfumesPrice>><<link "Buy">><<money `-1 * _fancyfumesPrice`>><<set $fumes.Fancy.quantity += 1>><<run Engine.show()>><</link>><<else>>You don't have enough to buy this.<</if>></td></tr>
<tr><td><<link "Cheap Fumigants">><<run Dialog.setup("Cheap Fumigation"); Dialog.wiki("Fumigates your home with brimstone, saltpeter, and a little myrrh. The myrrh does little to cover the sulfuric smell. Burn 1 tsp twice daily as a preventative; burn 1 tsp 4-5 times each day in infected homes. One month's supply."); Dialog.open()>><</link>></td><td><<conversion _genericfumesPrice>></td><td>$fumes.Generic.quantity</td><td><<if $money gte _genericfumesPrice>><<link "Buy">><<money `-1 * _genericfumesPrice`>><<set $fumes.Generic.quantity += 1>><<run Engine.show()>><</link>><<else>>You don't have enough to buy this.<</if>></td></tr>
</table><br>
Remaining money: <<conversion>><br>
<<return>>
<</nobr>>
<img src="https://iiif.wellcomecollection.org/image/L0064305/full/760%2C/0/default.jpg" width="100%"><<widget "preventative">><<nobr>>
<ul><li><span id="church"><<link "Go to church and pray often">><<set $reputation +=1>><<set $plagueInfection to random(1,10)>><<replace "#church">>You go to church and pray regularly through the month. Others admire your piety in the face of such a grave situation!<</replace>><</link>></span></li>
<li><span id="eat"><<link "Avoid eating berries, cabbage, cucumbers, melon, and spinach.">><<replace "#eat">>You avoid eating berries, cabbage, cucumbers, melons, and spinach. Your neighbors swear by it!<</replace>><</link>></span></li></ul>
<</nobr>>
<</widget>>
<<widget "player-treatments">>
<<nobr>>
<<if $NPCs.length gte 1>> /* NTS need to alter so household member is not-deceased */
A member of your <<defHousehold "household">>
<<else>>
<<if $money gte 12>>
<<set $money -= 12>>You pay
<<else>>
<<set $reputation -= 1>>Your <<defParishs "parish's">> <<defOverseersOfThePoor "Overseers of the Poor">> pay
<</if>>
an old woman to nurse you. She
<</if>> offers you some remedies to help ease your suffering and, hopefully, prevent your death. You:
<<set _remedyEffect to 0>>
<ul>
<li><<linkreplace "accept a purgative drink">>You are offered a <<defPurgative "purgative">> drink, which induces vomiting. It's incredibly unpleasant.<</linkreplace>></li>
<li><<if $remedies.Plaster.quantity gt 0>><<linkreplace "apply a plaster to the plague buboes for one week">><<set _remedyEffect to 1>><<set $remedies.Plaster.quantity -= 1>>Your plague <<defBuboes "buboes">> are covered with a <<defBlisteringPlaster "blistering plaster">>, especially those around the ears, armpits, and groin. The plaster is left on half the day, which can break the buboes and draw out the <<defMalignity "malignity">>. Once broken open, your nurse applies another plaster to keep the buboes draining.<</linkreplace>><<elseif $money gt $remedies.Plaster.cost*21>><<linkreplace "purchase one week's worth of a blistering plaster for your plague buboes">>Your plague <<defBuboes "buboes">> are covered with a <<defBlisteringPlaster "blistering plaster">>, especially those around the ears, armpits, and groin. The plaster is left on half the day, which can break the buboes and draw out the <<defMalignity "malignity">>. Once broken open, your nurse applies another plaster to keep the buboes draining.<<set _remedyEffect to 1>><<money `-1 * $remedies.Plaster.cost*21`>><</linkreplace>><</if>></li>
<li><<if $remedies.Cordial.quantity gt 0>><<linkreplace "drink a cordial tincture for the first two days of your illness">><<set $remedies.Cordial.quantity -= 1>>Twice a day, you are given a dose of <<defTincture "tincture">>. After each dose, you are heavily covered for 3 hours to induce sweating, then wiped down with hot napkins.<</linkreplace>><<elseif $money gt $remedies.Cordial.cost*4>><<linkreplace "purchase and drink a cordial tincture for the first two days of your illness">>Twice a day, you are given a dose of <<defTincture "tincture">>. After each dose, you are heavily covered for 3 hours to induce sweating, then wiped down with hot napkins.<<money `-1 * $remedies.Cordial.cost*4`>><</linkreplace>><</if>></li>
<li><<if $remedies.Treacle.quantity gt 0>><<linkreplace "drink a posset of London Treacle for the first few days of illness">>You are given London Treacle dissolved in spoonfulls of warm vinegar, and drink 1/4 pint of this for the first few days of your illness.<<set $remedies.Treacle.quantity -= 1>><</linkreplace>><<elseif $money gt $remedies.Treacle.cost*16>><<linkreplace "purchase and drink a posset of London Treacle for the first few days of illness">>You are given <<defLondonTreacle "London Treacle">> dissolved in spoonfulls of warm vinegar, and drink 1/4 pint of this for the first few days of your illness.<<money `-1 * $remedies.Treacle.cost*16`>><</linkreplace>><</if>></li>
<li><<linkreplace "use a suppository">>You use a homemade <<defSuppository "suppository">> of a fig filled with salt. It's unclear how this helps.<</linkreplace>></li>
<<if $remedies.Treacle.quantity gt 0>><li><<linkreplace "take an anti-diarrheal">>You drink some extra <<defPosset "posset">> mixed with herbs like plantain, sorrel, or knot grass.<</linkreplace>></li><</if>>
</ul>
<</nobr>>
<</widget>>
<<widget "hh-treatments">>
<<nobr>><<silently>><<set _plasterQuantity to _infectedFamily.length*21>><<set _treacleQuantity to _infectedFamily.length*16>><<set _cordialQuantity to _infectedFamily.length*4>><</silently>>
/* NTS: change nurse details based on family/class/rep */
You have some <span class="def" data-def="A medicine or treatment meant to promote healing or alleviate symptoms for a disease, disorder, or injury">remedies</span> on hand in your household, and may be able to purchase others from the <<defApothecary "apothecary">>, through the good charity of your neighbors.
<<set _remedyEffect to 0>>
<ul>
<li><<linkreplace "offer a purgative drink">>You offer the sick a <<defPurgative "purgative">> drink, which induces vomiting. It's incredibly unpleasant.<</linkreplace>></li>
<li><<if $remedies.Plaster.quantity gt _plasterQuantity>><<linkreplace "apply a plaster to the plague buboes for one week">><<set _remedyEffect to 1>><<set $remedies.Plaster.quantity -= _plasterQuantity>>You apply a <<defBlisteringPlaster "blistering plaster">> to the plague <<defBuboes "buboes">> on the infected, especially those around the ears, armpits, and groin. If left on half the day, the plaster can break the buboes and draw out the <<defMalignity "malignity">>. Once broken open, you can apply another plaster to keep the buboe draining. If the buboes do not break, you may need to lance them.<</linkreplace>><<elseif $money gt $remedies.Plaster.cost*_plasterQuantity>><<linkreplace "purchase one week's worth of a blistering plaster for the plague buboes">>You apply a <<defBlisteringPlaster "blistering plaster">> to the plague <<defBuboes "buboes">> on the infected, especially those around the ears, armpits, and groin. If left on half the day, the plaster can break the buboes and draw out the <<defMalignity "malignity">>. Once broken open, you can apply another plaster to keep the buboe draining. If the buboes do not break, you may need to lance them.<<set _remedyEffect to 1>><<money `-1 * $remedies.Plaster.cost*_plasterQuantity`>><</linkreplace>><</if>></li>
<li><<if $remedies.Cordial.quantity gt _cordialQuantity>><<linkreplace "give the sick a cordial tincture for the first two days of their illness">><<set $remedies.Cordial.quantity -= _cordialQuantity>>Twice a day, you give the sick a dose of <<defTincture "tincture">>. After each dose, you heavily cover their bodies for 3 hours to induce sweating, then wipe them down with hot napkins.<</linkreplace>><<elseif $money gt $remedies.Cordial.cost*_cordialQuantity>><<linkreplace "purchase and give a cordial tincture to the sick">>Twice a day, you give the sick a dose of <<defTincture "tincture">>. After each dose, you heavily cover their bodies for 3 hours to induce sweating, then wipe them down with hot napkins.<<money `-1 * $remedies.Cordial.cost*_cordialQuantity`>><</linkreplace>><</if>></li>
<li><<if $remedies.Treacle.quantity gt _treacleQuantity>><<linkreplace "drink a posset of London Treacle for the first few days of illness">>You are given <<defLondonTreacle "London Treacle">> dissolved in spoonfulls of warm vinegar, and drink 1/4 pint of this for the first few days of your illness.<<set $remedies.Treacle.quantity -= _treacleQuantity>><</linkreplace>><<elseif $money gt $remedies.Treacle.cost*_treacleQuantity>><<linkreplace "purchase and give a posset of London Treacle to the sick">>You dissolve a few spoonfuls of <<defLondonTreacle "London Treacle">> in warm vinegar, and give the sick 1/4 pint of this for the first few days of their illness.<<money `-1 * $remedies.Treacle.cost*_treacleQuantity`>><</linkreplace>><</if>></li>
<li><<linkreplace "give a suppository">>You give a homemade <<defSuppository "suppository">> of a fig filled with salt to the sick. It's unclear how this helps.<</linkreplace>></li>
<li><<linkreplace "give an anti-diarrheal">>You mix extra <<defPosset "posset">> mixed with herbs like plantain, sorrel, or knot grass and offer it to the sick.<</linkreplace>></li>
</ul>
<</nobr>>
<</widget>>
<<widget "fumigant-check">><<silently>>
<<if $fumes.Fancy.quantity gt 0 or $fumes.Generic.quantity gt 0 or $fumes.Purse.quantity gt 0 or $fumes.Incense.quantity gt 0>><<set _fumes to 1>><<else>><<set _fumes to 0>><</if>><</silently>><</widget>>
<<widget "fumigant">><<silently>>
<<if previous() isnot "Apothecary">><<if $fumes.Fancy.quantity gt 0>><<set $fumes.Fancy.quantity -= 1>><<elseif $fumes.Generic.quantity gt 0>><<set $fumes.Generic.quantity -= 1>><<elseif $fumes.Purse.quantity gt 0>><<set $fumes.Purse.quantity -= 1>><<elseif $fumes.Incense.quantity gt 0>><<set $fumes.Incense.quantity -= 1>><</if>><</if>><</silently>><</widget>><<widget "defApothecary">><<nobr>><span class="def" data-def="A person who prepares and sells drugs for medicinal purposes. Also the shop where such activities take place.">$args[0]</span><</nobr>><</widget>>
<<widget "defApothecary_Apoth">><<nobr>><span class="def" data-def="A person who prepares and sells drugs for medicinal purposes. Also the shop where such activities take place">$args[0]</span><</nobr>><</widget>>
<<widget "defAudleyEndInEssex">><<nobr>><span class="def" data-def="A 17th century country house in the county of Essex owned by the Earl of Suffolk. Charles II bought it in 1668 and used it as a home occasionally. The Suffolks regained possession of it in 1701.">$args[0]</span><</nobr>><</widget>>
<<widget "defBeggars">><<nobr>><span class="def" data-def="There are two types of beggars: itinerant beggars who roam the country illegally and members of the “deserving poor” who are embedded in their local communities and licensed to beg in their home parish. The latter usually still have a permanent place of residence, often provided by the parish, but their income depends on the charity of their neighbors. It is not legal to beg outside of your parish and itinerant beggars are both feared and often harshly punished. In 1688, statistician Gregory King estimated there were about 400,000 paupers households and 30,000 wandering beggars, which makes up ~22% of the English population.">$args[0]</span><</nobr>><</widget>>
<<widget "defBillsOfMortality">><<nobr>><span class="def" data-def="Weekly publications which recorded the number of burials and christenings in each of London’s parishes, as well as the causes of death citywide and the current government-set price of bread.">$args[0]</span><</nobr>><</widget>>
<<widget "defBlisteringPlaster">><<nobr>><span class="def" data-def="A hot, wet paste spread on leather which is then applied to infected areas of the skin such as buboes. The paste hardens and should rupture the buboes to enable them to drain. This plaster was usually made of either Mithridatium or Galene and was applied three times daily.">$args[0]</span><</nobr>><</widget>>
<<widget "defBuboes">><<nobr>><span class="def" data-def="Painful pus-filled swellings in the thighs, neck, groin, and armpits. They may turn black and rot away or rupture, spreading the infection around the body.">$args[0]</span><</nobr>><</widget>>
<<widget "defCallToService">><<nobr>><span class="def" data-def="Parish churches typically had bells, which they used to ring the hours throughout the day. These bells were also rung to indicate the time of church services and to alert people to fires or other emergencies.">$args[0]</span><</nobr>><</widget>>
<<widget "defCharity">><<nobr>><span class="def" data-def="Refers both to a gift or benevolent act given towards neighbors, particularly the poor, and to a general feeling of Christian love and kindness towards fellow Christians. In the sense used here, it means alms-giving, or the giving of small amounts of money or food to the local “deserving poor.”">$args[0]</span><</nobr>><</widget>>
<<widget "defCivilWar">><<nobr>><span class="def" data-def="A series of armed civil conflicts in the 1640s and early 1650s that culminated in the execution of King Charles I, the flight of his son King Charles II, and the installation of Oliver Cromwell as the Lord Protector of England. The period was one of significant economic, political, and religious turmoil in England, Scotland, Wales, and Ireland. Eventually Cromwell died and Charles II was reinstated as the English monarch in 1660, an act called the Restoration.">$args[0]</span><</nobr>><</widget>>
<<widget "defCivilWar_Civil">><<nobr>><span class="def" data-def="A series of armed civil conflicts in the 1640s and early 1650s that culminated in the execution of King Charles I, the flight of his son King Charles II, and the installation of Oliver Cromwell as the Lord Protector of England. The period was one of significant economic, political, and religious turmoil in England, Scotland, Wales, and Ireland. Eventually Cromwell died and Charles II was reinstated as the English monarch in 1660, an act called the Restoration.">$args[0]</span><</nobr>><</widget>>
<<widget "defCoventGarden">><<nobr>><span class="def" data-def="A large open square in London. In 1630, the Earl of Bedford commissioned the architect Inigo Jones to build a church and several nice houses around a large square. This construction attracted wealthy buyers, who quickly moved out when a market, taverns, and sex workers moved into the south side of the square. The large open space could be used for outdoor meetings.">$args[0]</span><</nobr>><</widget>>
<<widget "defDayLabourer">><<nobr>><span class="def" data-def="A person who is hired and paid on a daily basis, usually for unskilled or semi-skilled labor. Their tasks might include agricultural work like plowing, sowing, harvesting; construction work; and lifting and hauling, such as collection of the dead. Their pay is dependent on winning work each day and thus might be very irregular and low. In 1688, statistician Gregory King estimated there were about 364,000 households led by laboring people and servants in England, which makes up ~20% of the English population.">$args[0]</span><</nobr>><</widget>>
<<widget "defDeaneryAtChristChurchCollege">><<nobr>><span class="def" data-def="Christ Church is one of the many colleges at the University of Oxford. Each of the university’s colleges has its own dean, and the position often came with a residence, called a deanery. King Charles I made this deanery his palace during the English Civil War.">$args[0]</span><</nobr>><</widget>>
<<widget "defFasts">><<nobr>><span class="def" data-def="Fasting is the practice of restricting food and/or drink. During this period, Christians observed holy days such as Lent by refraining from eating red meat.">$args[0]</span><</nobr>><</widget>>
<<widget "defFleet">><<nobr>><span class="def" data-def="The English Royal Navy, which was primarily composed of heavily armed warships.">$args[0]</span><</nobr>><</widget>>
<<widget "defHamptonCourt">><<nobr>><span class="def" data-def="A palace south of London famed for its gardens. Cardinal Wolsey began construction on the palace in the early 16th century and King Henry VIII adopted it as his primary residence. King James I, King Charles I, Lord Protector Oliver Cromwell, King Charles II, and King James II also lived in the palace. After the Glorious Revolution in 1688 the co-monarchs William and Mary commissioned the architect Christopher Wren to build a new baroque-style palace on the site. Later monarchs continued to reside there until the mid-18th century. Queen Victoria opened the palace to the public in 1838 and it remains a popular tourist destination.">$args[0]</span><</nobr>><</widget>>
<<widget "defHamptonCourtPalace">><<nobr>><span class="def" data-def="A palace south of London famed for its gardens. Cardinal Wolsey began construction on the palace in the early 16th century and King Henry VIII adopted it as his primary residence. King James I, King Charles I, Lord Protector Oliver Cromwell, King Charles II, and King James II also lived in the palace. After the Glorious Revolution in 1688 the co-monarchs William and Mary commissioned the architect Christopher Wren to build a new baroque-style palace on the site. Later monarchs continued to reside there until the mid-18th century. Queen Victoria opened the palace to the public in 1838 and it remains a popular tourist destination.">$args[0]</span><</nobr>><</widget>>
<<widget "defHenriettaMaria">><<nobr>><span class="def" data-def="The mother of King Charles II. Born a French princess, she became the wife of King Charles I of England until his execution in 1649. She then served as an advisor to her son, but her Catholicism and repeated attempts to convert people at court made her unpopular among the Protestant people of England. Charles I ordered that she be referred to in public as Queen Mary, but she disliked this title and signed her name as Henriette.">$args[0]</span><</nobr>><</widget>>
<<widget "defHenriettaMarias">><<nobr>><span class="def" data-def="The mother of King Charles II. Born a French princess, she became the wife of King Charles I of England until his execution in 1649. She then served as an advisor to her son, but her Catholicism and repeated attempts to convert people at court made her unpopular among the Protestant people of England. Charles I ordered that she be referred to in public as Queen Mary, but she disliked this title and signed her name as Henriette.">$args[0]</span><</nobr>><</widget>>
<<widget "defHousehold">><<nobr>><span class="def" data-def="All the people living in a home. If there is an adult male living in the home, he is generally considered the head of the household. Widowed women with young children and single women may also be heads of the household. Members of the household then include the head of household, their spouse, and their children, as well as members of the extended family such as grandparents, siblings, aunts, uncles, nieces, nephews, and cousins. Households may additionally include apprentices, journeymen, and servants.">$args[0]</span><</nobr>><</widget>>
<<widget "defHouseholds">><<nobr>><span class="def" data-def="All the people living in a home. If there is an adult male living in the home, he is generally considered the head of the household. Widowed women with young children and single women may also be heads of the household. Members of the household then include the head of household, their spouse, and their children. They also sometimes include members of the extended family such as grandparents, siblings, aunts, uncles, nieces, nephews, and cousins. Households may additionally include apprentices, journeymen, and servants.">$args[0]</span><</nobr>><</widget>>
<<widget "defImpressed">><<nobr>><span class="def" data-def="The seventeenth-century English Navy (and other militaries) often had labor shortages and had to force men to serve in its ranks. This mostly meant kidnapping, either by force, trickery, or coercion. After being impressed, sailors who were not British could petition to be let back out, but British subjects had to serve their term. Though the Navy typically impressed merchant seamen or fishermen, they sometimes abducted non-sailors. The practice was very unpopular and provoked much protest.">$args[0]</span><</nobr>><</widget>>
<<widget "defInterregnum">><<nobr>><span class="def" data-def="The period 1649-1660 between the reigns of King Charles I and King Charles II. During this period, England was governed by the Commonwealth government, led by the Lord Protector Oliver Cromwell.">$args[0]</span><</nobr>><</widget>>
<<widget "defLondonBridge">><<nobr>><span class="def" data-def="In this period, the only bridge across the Thames connecting the two halves of London. It was preceded by several Roman and medieval bridges which were destroyed and rebuilt many times. The bridge in this period was built in 1209. The bridge had 19 piers with thick protective pilings around them. These restricted water flow so much that the water level could be up to 6 feet higher on one side of the bridge than the other. Many houses and shops stood on the bridge until they were removed in the 19th century.">$args[0]</span><</nobr>><</widget>>
<<widget "defLondonTreacle">><<nobr>><span class="def" data-def="A hot drink made of milk curdled with wine or ale, often including spices, which was often used as a remedy. After the 16th century, the milk was usually curdled using lemon juice rather than wine, and might be thickened with bread crumbs. During the plague outbreak, medical quacks sold London treacle, which could be added to the posset drink to further thicken it. London treacle was a compound of walnut, rue, salt, and fig.">$args[0]</span><</nobr>><</widget>>
<<widget "defLordMayor">><<nobr>><span class="def" data-def="The head of the city government of London">$args[0]</span><</nobr>><</widget>>
<<widget "defMalignity">><<nobr>><span class="def" data-def="A substance that is evil in nature and effects; baleful, harmful, gravely injurious">$args[0]</span><</nobr>><</widget>>
<<widget "defNewChapelChurchyard">><<nobr>><span class="def" data-def="A city burial ground, not associated with any church or parish, that was located in northeastern London and used from 1569 to 1739. In that period, it received an estimated 25,000 burials. Over time it became commonly known as Bedlam or Bethlem burial ground because it was located in the precinct of the Priory of St. Mary of Bethlehem, later Bethlem Hospital.">$args[0]</span><</nobr>><</widget>>
<<widget "defOverseersOfThePoor">><<nobr>><span class="def" data-def="Two parish officials elected to administer to the needs of the poor in their parish. These positions were created by the Poor Relief Act of 1597.">$args[0]</span><</nobr>><</widget>>
<<widget "defOxford">><<nobr>><span class="def" data-def="An English city about 60 miles north-west of London. It is home to the University of Oxford, the oldest university in England.">$args[0]</span><</nobr>><</widget>>
<<widget "defPapists">><<nobr>><span class="def" data-def="A derogatory term for Catholics.">$args[0]</span><</nobr>><</widget>>
<<widget "defParish">><<nobr>><span class="def" data-def="The smallest administrative unit of the English church. An official known as the parish clerk kept local records of christenings, burials, and marriages of everyone who lived within the parish. In this period, parish officials were responsible for maintaining the local social safety net, which included supporting and licensing beggars.">$args[0]</span><</nobr>><</widget>>
<<widget "defParishs">><<nobr>><span class="def" data-def="The smallest administrative unit of the English church. An official known as the parish clerk kept local records of christenings, burials, and marriages of everyone who lived within the parish. In this period, parish officials were responsible for maintaining the local social safety net, which included supporting and licensing beggars.">$args[0]</span><</nobr>><</widget>>
<<widget "defPlague">><<nobr>><span class="def" data-def="A deadly infection usually spread to humans by fleas infected with the bacterium yersinia pestis. It manifests in several different ways, including bubonic (lymph node), pneumonic (lungs), and septicemic (bloodstream) plague. Bubonic plague was the least deadly form, at only ~50% fatal, while pneumonic plague was 99% fatal and can be spread directly to other people by coughing and septicemic plague was 100% fatal. Plague killed hundreds of millions of people before the development of antibiotic treatments and still kills some people today. Symptoms include fever, headaches, vomiting, weakness, coughing, shortness of breath, chest pain, abdominal pain, swollen lymph nodes, gangrene, meningitis, and most famously, the appearance of large buboes, or painful pus-filled swellings in the thighs, neck, groin, and armpits. They may turn black and rot away or rupture, spreading the infection around the body.">$args[0]</span><</nobr>><</widget>>
<<widget "defPlague_Plagu">><<nobr>><span class="def" data-def="A deadly infection usually spread to humans by fleas infected with the bacterium yersinia pestis. It manifests in several different ways, including bubonic (lymph node), pneumonic (lungs), and septicemic (bloodstream) plague. Bubonic plague was the least deadly form, at only ~50% fatal, while pneumonic plague was 99% fatal and can be spread directly to other people by coughing and septicemic plague was 100% fatal. Plague killed hundreds of millions of people before the development of antibiotic treatments and still kills some people today. Symptoms include fever, headaches, vomiting, weakness, coughing, shortness of breath, chest pain, abdominal pain, swollen lymph nodes, gangrene, meningitis, and most famously, the appearance of large buboes, or painful pus-filled swellings in the thighs, neck, groin, and armpits. They may turn black and rot away or rupture, spreading the infection around the body.">$args[0]</span><</nobr>><</widget>>
<<widget "defPosset">><<nobr>><span class="def" data-def="A hot drink made of milk curdled with wine or ale, often including spices, which was often used as a remedy. After the 16th century, the milk was usually curdled using lemon juice rather than wine, and might be thickened with bread crumbs. During the plague outbreak, medical quacks sold London treacle, which could be added to the posset drink to further thicken it.">$args[0]</span><</nobr>><</widget>>
<<widget "defPresbyterians">><<nobr>><span class="def" data-def="Protestants who wanted their church to be ruled by presbyteries, or a collection of elders and ministers, rather than a hierarchical system of bishops. This system was popular in Scotland and an attempt to overturn it in favor of bishops sparked a series of uprisings in the British Isles that eventually turned into the Civil War.">$args[0]</span><</nobr>><</widget>>
<<widget "defPressGangs">><<nobr>><span class="def" data-def="An organized group of naval sailors who forcibly conscripted men of fighting age (18-55) to serve in the Royal Navy during times of war. They usually impressed merchant seamen and fishermen but sometimes abducted non-sailors from town.">$args[0]</span><</nobr>><</widget>>
<<widget "defProtestants">><<nobr>><span class="def" data-def="Dissidents from the Catholic faith. In England these were most commonly Anglicans (Church of England) or Presbyterians, but there were other smaller groups such as Quakers and Baptists.">$args[0]</span><</nobr>><</widget>>
<<widget "defPurgative">><<nobr>><span class="def" data-def="A medicine which causes emptying of the bowels, a laxative.">$args[0]</span><</nobr>><</widget>>
<<widget "defQuarantine">><<nobr>><span class="def" data-def="A method of containing disease which involves keeping potentially infected people, animals, or goods contained and away from others for a sufficient period of time for the disease to manifest. The word comes from the Italian “quaranta” meaning 40 as the quarantine period for plague was 40 days.">$args[0]</span><</nobr>><</widget>>
<<widget "defQueenCatherine">><<nobr>><span class="def" data-def="Queen Catherine of Braganza was a Portuguese princess who married King Charles II in 1662, becoming the Queen of England, Scotland, and Ireland. After the death of her husband, she returned to her homeland and served as the regent of Portugal until her death. She was unpopular in England due to her strong Catholic faith. Catherine had no children, so Charles was succeeded by his brother, King James II.">$args[0]</span><</nobr>><</widget>>
<<widget "defQueenMother">><<nobr>><span class="def" data-def="The mother of the current monarch. In 1665-7 England, this was Queen Henrietta Maria, the wife of the executed King Charles I.">$args[0]</span><</nobr>><</widget>>
<<widget "defRiverTraffic">><<nobr>><span class="def" data-def="Because there was only one bridge over the River Thames, London Bridge, Londoners often found it faster to cross the river or travel the length of the city by boat. As a result, the Thames was a busy river highway and was full of small transport boats as well as larger shipping barges.">$args[0]</span><</nobr>><</widget>>
<<widget "defSalisbury">><<nobr>><span class="def" data-def="An English city about 80 miles outside of London">$args[0]</span><</nobr>><</widget>>
<<widget "defScrivener">><<nobr>><span class="def" data-def="A person employed to copy or transcribe documents or to write documents for someone else, especially legal documents">$args[0]</span><</nobr>><</widget>>
<<widget "defSmolder">><<nobr>><span class="def" data-def="To burn slowly but without flame, produces smoke and heat">$args[0]</span><</nobr>><</widget>>
<<widget "defSomersetHouse">><<nobr>><span class="def" data-def="The traditional London residence of the Queen of England during the seventeenth century, also known as Denmark House. It was originally constructed by the Duke of Somerset in 1547 in the Tudor style and Queen Elizabeth I lived there as a young woman. Upon the ascension of King James I, he gave it to his wife, Queen Anne of Denmark, as her primary residence and renamed Denmark House in her honor. It was subsequently the primary residence of King Charles I’s wife Queen Henrietta Maria. However, King Charles II’s wife Catherine of Braganza only took up residence there after his death in 1685 and lived there until 1693. Since the 18th century, it has been rebuilt and enlarged in the Renaissance style.">$args[0]</span><</nobr>><</widget>>
<<widget "defSuppository">><<nobr>><span class="def" data-def="A type of medical application which involves inserting a small bundle of medicine into any bodily orifice other than the mouth. The medicine was intended to soften or turn liquid at body temperature, which would help with spreading it throughout the body.">$args[0]</span><</nobr>><</widget>>
<<widget "defTincture">><<nobr>><span class="def" data-def="Literally, a beneficial medicine. In this specific case, a reference to a proprietary medicinal blend advertised by John Belson, Esquire, in 1665 during the London plague outbreak.">$args[0]</span><</nobr>><</widget>>
<<widget "defTuttlefields">><<nobr>><span class="def" data-def="Also known as Tothill Fields, it was a marshy area of Westminster on the north bank of the river Thames. The area was home to the prison known as Tothill Fields Bridewell, which operated between 1618 and 1884.">$args[0]</span><</nobr>><</widget>>
<<widget "defWhitehall">><<nobr>><span class="def" data-def="A large palace which served as the official London residence of English monarchs from 1530 to 1698, when nearly the entire complex was destroyed by fire. The area where the palace sat is still called Whitehall and has remained a center for the British government.">$args[0]</span><</nobr>><</widget>><<nobr>>
/* Beggars */
The first case of <<defPlague "plague">> has appeared in your <<defParish "parish">>, <<if $socio is "beggars">><<if $agenum gte 16>><<beggar-roles>><<else>><<highway>><</if>><</if>>
/* Day Labourers */
<<if $socio is "day labourers">>and many of your neighbors have begun to flee the city.<<if $origin isnot "London">> You still have family back home in $origin and have to consider whether or not to abandon your home and whatever possessions you cannot carry to take refuge with your family.<</if>><br><br>
You hear that the local parish officials want to hire you to <<if $gender is "male" and $agenum gte 16>>remove the <<defPlague "plague">> corpses if anyone dies<<elseif $gender is "female" and $agenum gte 16 and $reputation gte 5>>look at plague corpses and determine if they died of plague or some other cause of death<<else>>nurse the sick and dying, despite the risk to your own life<</if>>.<br><br>
You decide to:
<ul>
<li><<link "accept the job" "Stay">><<set $fled to 4>><<set $decisions.push("Accepted a plague work job")>><<if $gender is "female" and $agenum gte 16 and $reputation gt 5>><<set $role to "searcher">><<elseif $agenum lte 15>><<set $role to "nurse">><<else>><<set $role to "corpsebearer">><</if>><</link>></li>
<li>[[not accept the job->Stay][$reputation -= 1; $fled to 4; $role to "unemployed"; $decisions.push("Refused the plague work job")]]</li>
<<if $origin isnot "London">>
<<if $hoh is 1>><li>[[flee the city and return to your place of origin->Fled][$fled to 6; $decisions.push("Fled back to place of origin")]]</li>
<<if $NPCs.length gt 0>><li>[[remain in the city yourself, but send your family back to your place of origin->Stay][$fled to 5; $decisions.push("Sent family home but stayed"); $plagueInfection to 0; _infectedFamily to 0]]</li><</if>>
<<else>><li>[[try to convince your family to flee London and return to your place of origin->Fled][$fled to 6; $decisions.push("Convinced family to flee London")]]</li>
<</if>>
<</if>>
</ul>
<</if>>
/* Servants */
<<if $socio is "servants">>and many of your neighbors have begun to flee the city. Your master decides to <<if random(1,2) is 1>><<set _masterflee to 1>>flee<<else>><<set _masterflee to 0>>stay<</if>>.<br><br>
As a member of your master's <<defHousehold "household">>, your only choices are to follow his lead <<if _masterflee is 0>>and remain in the city, or to run away<<else>>and flee the city, or to stay in the city<</if>> and hope you are not caught for having broken your contract.<br><br>
You decide to:
<<if _masterflee is 1>>
<ul>
<li>[[Follow your master's lead and leave the city->Fled][$fled to 1; $decisions.push("Followed master and fled the city")]]</li>
<li>[[Break your contract and remain in the city->Stay][$fled to 3; $socio to "beggars"; $reputation to 0; $role to "unemployed"; $NPCsMaster to []; $NPCs to []; $decisions.push("Broke contract and stayed in the city")]]</li>
</ul>
<<else>>
<ul>
<li>[[Remain in the city with your master->Stay][$fled to 0; $decisions.push("Stayed in the city with master")]]</li>
<li>[[Break your contract and flee the city->Fled][$fled to 2; $socio to "beggars"; $reputation to 0; $role to "unemployed"; $NPCsMaster to []; $NPCs to []; $decisions.push("Broke contract and fled the city")]]</li>
</ul>
<</if>>
<</if>>
/* Artisans */
<<if $socio is "artisans">>and many of your neighbors have begun to flee the city.
<<if $origin is "London" and $reputation lte 5>>Your reputation is so bad that you're not sure if anyone will take you in if you decide to leave London.
<<else>>
<<if $origin isnot "London">>You still have family back home in $origin
<<else>>You have friends in the countryside
<</if>> who would take in you and your household if you decide to leave, too.
<</if>><br><br>
<<if $hoh is 0>>You convince your family to<<else>>You decide to:<</if>>
<ul>
<li>[[Remain in the city with your entire household->Stay][$fled to 4; $decisions.push("Remained in the city with household")]]</li>
<<if $hoh is 1 and $NPCs.length gt 0>><li>[[Remain in the city, but send the rest of your household away.->Stay][$fled to 5; $money -= 560; $decisions.push("Sent household away but stayed"); $plagueInfection to 0; _infectedFamily to 0]]</li><</if>>
<li><<if $reputation gt 5>>[[Flee the city with your entire household.->Fled][$reputation to Math.clamp($reputation - 3, 0, 10); $fled to 6; $money -= 1120]]
<<else>>
<<if random(1,2) eq 1>>[[Flee the city with your entire household.->Fled][$reputation to Math.clamp($reputation - 3, 0, 10); $fled to 6; $money -= 1120]]<<else>>[[Flee the city with your entire household.->Stay][$reputation to Math.clamp($reputation - 3, 0, 10); $fled to 7; $money -= 1120]]
<</if>>
<</if>>
</li>
</ul>
<</if>>
/* Merchants */
<<if $socio is "merchants">>and your neighbors have begun to flee the city. Many are renting houses in the countryside and small towns surrounding London, either for themselves or for their <<defHouseholds "households">>.<br><br>
You decide to:
<ul>
<li>[[Remain in the city with your entire household->Stay][$fled to 4; $decisions.push("Remained in the city with household")]]</li>
<li>[[Remain in the city, but send the rest of your household away->Stay][$fled to 5; $money -= 800; $decisions.push("Sent household away but stayed"); $plagueInfection to 0; _infectedFamily to 0]]</li>
<li>[[Flee the city with your entire household.->Fled][$fled to 6; $money -= 1600; $reputation to Math.clamp($reputation - 2, 0, 10); $decisions.push("Fled the city with household")]]</li>
</ul>
<</if>>
/* Nobles */
/*NTS: need more text about how the nobles decide to flee? */
<<if $socio is "nobles">>and many members of the Court have begun to flee the city.<br><br>
You decide to:
<ul>
<li>[[Remain in the city with your entire household->Stay][$fled to 4; $decisions.push("Remained in the city with household")]]</li>
<li>[[Remain in the city, but send most of your household away to the countryside->Stay][$fled to 5; $money -= 5000; $decisions.push("Sent most of household to the countryside")]]</li>
<li>[[Flee the city with your entire household.->Fled][$reputation to Math.clamp($reputation - 1, 0, 10); $fled to 6; $money -= 10000; $decisions.push("Fled the city with household")]]</li>
</ul>
<</if>>
<</nobr>><<nobr>>
<<check-NPCs>>
<<if _infectedFamily.length gt 0>>Unfortunately, you're going to be here a while longer. Your <<defHousehold "household">> is still infected.
<<if $quarantine is 1>>
[[You continue to tend to the sick->Quarantine, Week 2]]
<<elseif $quarantine is 2>>
[[You continue to tend to the sick->Quarantine, Week 3]]
<<elseif $quarantine is 3>>
[[You continue to tend to the sick->Quarantine, Week 4]]
<<elseif $quarantine is 4>>
[[You continue to tend to the sick->Quarantine, Week 5]]
<<else>>
[[You continue to tend to the sick->Quarantine, Week ?]]
<</if>>
<<else>>
Lord be praised, your <<defHousehold "household">> has survived the <<defPlague "plague">>. You still need to finish <<defQuarantine "quarantine">>, but begin reconnecting with the outside world.
/* In the time you were away.... nts: add updates based on what big events have happened */
<<orphan-check>>
<<storyline-return>>
<<health-update>>
<</if>>
<</nobr>>
<<if $socio is "beggars">>You lose money every day that you're away from the city, as no one wants to give charity to a beggar from the city<<set $money to Math.clamp($money - 120, 0, 1000000)>><<elseif $socio is "day labourers">>You lose money every day that you're away from the city and the people who normally would be willing to employ you for a day's labor<<set $money to Math.clamp($money - 300, 0, 1000000)>><<elseif $socio is "servants">>You dislike being so far from the city<<elseif $socio is "artisans">><<set $money to Math.clamp($money - 800, 0, 1000000)>>You lose money every day that you're away from the city and unable to practice your trade<<elseif $socio is "merchants">><<set $money to Math.clamp($money - 2800, 0, 1000000)>>It's deeply irritating to have to pay rent on a country house as well as your home back in the city<<elseif $socio is "nobles">>It's to your great disadvantage to be so far from Court and the centers of power<</if>>, but luckily it's a price that you're able to pay for at least a little while to ensure your safety.
When the death tolls top 7,000 a week in August and September, you're sure you made the right call. By the beginning of October, death tolls have fallen to half that and you decide to [[return to the city->October 1665]].<<nobr>><<if $socio is "beggars">>You<<if $age is "child" or $age is "adolescent">> and your family<</if>> lose money every day that you're away from the city, as no one wants to give charity to a beggar from the city<<set $money to Math.clamp($money - 120, 0, 1000000)>><<elseif $socio is "day labourers">>You<<if $age is "child" or $age is "adolescent">> and your family<</if>> lose money every day that you're away from the city and the people who normally would be willing to employ you for a day's labor<<set $money to Math.clamp($money - 300, 0, 1000000)>><<elseif $socio is "servants">>You dislike being so far from the city<<elseif $socio is "artisans">><<set $money to Math.clamp($money - 800, 0, 1000000)>>You<<if $age is "child" or $age is "adolescent">> and your family<</if>> lose money every day that you're away from the city and unable to practice your trade<<elseif $socio is "merchants">><<set $money to Math.clamp($money - 2800, 0, 1000000)>>It's deeply irritating to have to pay rent on a country house as well as your home back in the city<<elseif $socio is "nobles">>It's to your great disadvantage to be so far from Court and the centers of power<</if>>, but luckily it's a price that you're able to pay for at least a little while to ensure your safety.
When the death tolls top 7,000 a week in August and September, you're sure you<<if $age is "child" or $age is "adolescent">> and your family<</if>> made the right call.
<<if $socio is "beggars">><<set $money to Math.clamp($money - 120, 0, 1000000)>><<elseif $socio is "day labourers">><<set $money to Math.clamp($money - 300, 0, 1000000)>><<elseif $socio is "artisans">><<set $money to Math.clamp($money - 800, 0, 1000000)>><<elseif $socio is "merchants">><<set $money to Math.clamp($money - 2800, 0, 1000000)>><</if>>
By the beginning of October, death tolls have fallen to half that but there are still a horrifying number of people dying every week.<<if $money lte 0>> Unfortunately, you<<if $age is "child" or $age is "adolescent">> and your family<</if>> have run out of money and are forced to [[return to the city->October 1665]] to avoid starving.<<else>>
<<if $socio is "beggars">><<set $money to Math.clamp($money - 120, 0, 1000000)>><<elseif $socio is "day labourers">><<set $money to Math.clamp($money - 300, 0, 1000000)>><<elseif $socio is "artisans">><<set $money to Math.clamp($money - 800, 0, 1000000)>><<elseif $socio is "merchants">><<set $money to Math.clamp($money - 2800, 0, 1000000)>><</if>>
You anxiously watch the fall in the number of deaths each week, thanking God when only a thousand people a week are dying at the beginning of November. <<if $money lte 0>> Unfortunately, you<<if $age is "child" or $age is "adolescent">> and your family<</if>> have run out of money and are forced to [[return to the city->November 1665]] to avoid starving.<<else>>
By the start of Advent, there are barely 200 or 300 odd people dying each week and you<<if $age is "child" or $age is "adolescent">> and your family<</if>> decide it's finally safe to [[return to the city->December 1665]] just in time for the Christmas feasting and merrymaking.<</if>><</if>>
<</nobr>><<nobr>><<if $socio is "beggars">>You lose money every day that you're away from the city, as no one wants to give charity to a beggar from the city<<set $money to Math.clamp($money - 120, 0, 1000000)>><<elseif $socio is "day labourers">>You<<if $age is "child" or $age is "adolescent">> and your family<</if>> lose money every day that you're away from the city and the people who normally would be willing to employ you for a day's labor<<set $money to Math.clamp($money - 300, 0, 1000000)>><<elseif $socio is "servants">>You dislike being so far from the city<<elseif $socio is "artisans">><<set $money to Math.clamp($money - 800, 0, 1000000)>>You<<if $age is "child" or $age is "adolescent">> and your family<</if>> lose money every day that you're away from the city and unable to practice your trade<<elseif $socio is "merchants">><<set $money to Math.clamp($money - 2800, 0, 1000000)>>It's deeply irritating to have to pay rent on a country house as well as your home back in the city<<elseif $socio is "nobles">>It's to your great disadvantage to be so far from Court and the centers of power<</if>>, but luckily it's a price that you're able to pay for at least a little while to ensure your safety.
When the death tolls top 7,000 a week in August and September, you're sure you made the right call.
<<if $socio is "beggars">><<set $money to Math.clamp($money - 120, 0, 1000000)>><<elseif $socio is "day labourers">><<set $money to Math.clamp($money - 300, 0, 1000000)>><<elseif $socio is "artisans">><<set $money to Math.clamp($money - 800, 0, 1000000)>><<elseif $socio is "merchants">><<set $money to Math.clamp($money - 2800, 0, 1000000)>><</if>>
By the beginning of October, death tolls have fallen to half that but there are still a horrifying number of people dying every week.<<if $money lte 0>> Unfortunately, you<<if $age is "child" or $age is "adolescent">> and your family<</if>> have run out of money and are forced to [[return to the city->October 1665]] to avoid starving.<<else>>
<<if $socio is "beggars">><<set $money to Math.clamp($money - 120, 0, 1000000)>><<elseif $socio is "day labourers">><<set $money to Math.clamp($money - 300, 0, 1000000)>><<elseif $socio is "artisans">><<set $money to Math.clamp($money - 800, 0, 1000000)>><<elseif $socio is "merchants">><<set $money to Math.clamp($money - 2800, 0, 1000000)>><</if>>
You anxiously watch the fall in the number of deaths each week, thanking God when only a thousand people a week are dying at the beginning of November. <<if $money lte 0>> Unfortunately, you<<if $age is "child" or $age is "adolescent">> and your family<</if>> have run out of money and are forced to [[return to the city->November 1665]] to avoid starving.<<else>>
<<if $socio is "beggars">><<set $money to Math.clamp($money - 120, 0, 1000000)>><<elseif $socio is "day labourers">><<set $money to Math.clamp($money - 300, 0, 1000000)>><<elseif $socio is "artisans">><<set $money to Math.clamp($money - 800, 0, 1000000)>><<elseif $socio is "merchants">><<set $money to Math.clamp($money - 2800, 0, 1000000)>><</if>>
At the start of Advent, there are still 200 or 300 odd people dying each week <<if $money lte 0>>but unfortunately, you<<if $age is "child" or $age is "adolescent">> and your family<</if>> have run out of money and are forced to [[return to the city->December 1665]] to avoid starving.<<else>>and you reconcile yourself with a Christmas spent away from the City.<br><br>
<<if $socio is "beggars">><<set $money to Math.clamp($money - 120, 0, 1000000)>><<elseif $socio is "day labourers">><<set $money to Math.clamp($money - 300, 0, 1000000)>><<elseif $socio is "artisans">><<set $money to Math.clamp($money - 800, 0, 1000000)>><<elseif $socio is "merchants">><<set $money to Math.clamp($money - 2800, 0, 1000000)>><</if>>
When the New Year dawns, you<<if $age is "child" or $age is "adolescent">> and your family<</if>> are desperately homesick and renew your resolve to return to London as soon as the court does. You hear the King and court have returned to <<defHamptonCourtPalace "Hampton Court Palace">>, near to the city, and eagerly await news of his return. <<if $money lte 0>>While you are waiting, you<<if $age is "child" or $age is "adolescent">> and your family<</if>> realize you've run out of money and are forced to [[return early to avoid starving->January 1666]].<<else>>
<<if $socio is "beggars">><<set $money to Math.clamp($money - 120, 0, 1000000)>><<elseif $socio is "day labourers">><<set $money to Math.clamp($money - 300, 0, 1000000)>><<elseif $socio is "artisans">><<set $money to Math.clamp($money - 800, 0, 1000000)>><<elseif $socio is "merchants">><<set $money to Math.clamp($money - 2800, 0, 1000000)>><</if>>
As soon as the first rumors fly of the king's entrance into London, you<<if $age is "child" or $age is "adolescent">> and your family<</if>> hastily make your way [[back to the city->February 1666]].<</if>><</if>><</if>><</if>>
<</nobr>><<nobr>><<if $socio is "beggars">>You lose money every day that you're away from the city, as no one wants to give <<defCharity "charity">> to a beggar from the city<<set $money to Math.clamp($money - 120, 0, 1000000)>><<elseif $socio is "day labourers">>You<<if $age is "child" or $age is "adolescent">> and your family<</if>> lose money every day that you're away from the city and the people who normally would be willing to employ you for a day's labor<<set $money to Math.clamp($money - 300, 0, 1000000)>><<elseif $socio is "servants">>You dislike being so far from the city<<elseif $socio is "artisans">><<set $money to Math.clamp($money - 800, 0, 1000000)>>You<<if $age is "child" or $age is "adolescent">> and your family<</if>> lose money every day that you're away from the city and unable to practice your trade<<elseif $socio is "merchants">><<set $money to Math.clamp($money - 2800, 0, 1000000)>>It's deeply irritating to have to pay rent on a country house as well as your home back in the city<<elseif $socio is "nobles">>It's to your great disadvantage to be so far from Court and the centers of power<</if>>, but luckily it's a price that you're able to pay for at least a little while to ensure your safety.
<<if $socio is "nobles">><<set $reputation to 0>><</if>>
When the death tolls top 7,000 a week in August and September, you're sure you made the right call.<br><br>
<<if $socio is "beggars">><<set $money to Math.clamp($money - 120, 0, 1000000)>><<elseif $socio is "day labourers">><<set $money to Math.clamp($money - 300, 0, 1000000)>><<elseif $socio is "artisans">><<set $money to Math.clamp($money - 800, 0, 1000000)>><<elseif $socio is "merchants">><<set $money to Math.clamp($money - 2800, 0, 1000000)>><</if>>
By the beginning of October, death tolls have fallen to half that but there are still a horrifying number of people dying every week.<<if $money lte 0>> Unfortunately, you<<if $age is "child" or $age is "adolescent">> and your family<</if>> have run out of money and are forced to [[return to the city->October 1665]] to avoid starving.<<else>><br><br>
<<if $socio is "beggars">><<set $money to Math.clamp($money - 120, 0, 1000000)>><<elseif $socio is "day labourers">><<set $money to Math.clamp($money - 300, 0, 1000000)>><<elseif $socio is "artisans">><<set $money to Math.clamp($money - 800, 0, 1000000)>><<elseif $socio is "merchants">><<set $money to Math.clamp($money - 2800, 0, 1000000)>><</if>>
You anxiously watch the fall in the number of deaths each week, thanking God when only a thousand people a week are dying at the beginning of November. <<if $money lte 0>> Unfortunately, you<<if $age is "child" or $age is "adolescent">> and your family<</if>> have run out of money and are forced to [[return to the city->November 1665]] to avoid starving.<<else>>
<<if $socio is "beggars">><<set $money to Math.clamp($money - 120, 0, 1000000)>><<elseif $socio is "day labourers">><<set $money to Math.clamp($money - 300, 0, 1000000)>><<elseif $socio is "artisans">><<set $money to Math.clamp($money - 800, 0, 1000000)>><<elseif $socio is "merchants">><<set $money to Math.clamp($money - 2800, 0, 1000000)>><</if>>
At the start of Advent, there are still 200 or 300 odd people dying each week <<if $money lte 0>>but unfortunately, you<<if $age is "child" or $age is "adolescent">> and your family<</if>> have run out of money and are forced to [[return to the city->December 1665]] to avoid starving.<<else>>and you reconcile yourself with a Christmas spent away from the City.<br><br>
<<if $socio is "beggars">><<set $money to Math.clamp($money - 120, 0, 1000000)>><<elseif $socio is "day labourers">><<set $money to Math.clamp($money - 300, 0, 1000000)>><<elseif $socio is "artisans">><<set $money to Math.clamp($money - 800, 0, 1000000)>><<elseif $socio is "merchants">><<set $money to Math.clamp($money - 2800, 0, 1000000)>><</if>>
When the New Year dawns, you<<if $age is "child" or $age is "adolescent">> and your family<</if>> are desperately homesick but renew your resolve not to return to London until the <span class="def" data-def="A deadly infection usually spread to humans by fleas infected with the bacterium yersinia pestis. It manifests in several different ways, including bubonic (lymph node), pneumonic (lungs), and septicemic (bloodstream) plague. Bubonic plague was the least deadly form, at only ~50% fatal, while pneumonic plague was 99% fatal and can be spread directly to other people by coughing and septicemic plague was 100% fatal. Plague killed hundreds of millions of people before the development of antibiotic treatments and still kills some people today. Symptoms include fever, headaches, vomiting, weakness, coughing, shortness of breath, chest pain, abdominal pain, swollen lymph nodes, gangrene, meningitis, and most famously, the appearance of large buboes, or painful pus-filled swellings in the thighs, neck, groin, and armpits. They may turn black and rot away or rupture, spreading the infection around the body.
">plague</span> is officially over. You hear the King and court have returned to <<defHamptonCourtPalace "Hampton Court Palace">>, near to the city, and eagerly anticipate the end of the plague.<<if $money lte 0>>While you are waiting, you realize you've run out of money and are forced to return early to avoid starving.<<else>><br><br>
<<if $socio is "beggars">><<set $money to Math.clamp($money - 120, 0, 1000000)>><<elseif $socio is "day labourers">><<set $money to Math.clamp($money - 300, 0, 1000000)>><<elseif $socio is "artisans">><<set $money to Math.clamp($money - 800, 0, 1000000)>><<elseif $socio is "merchants">><<set $money to Math.clamp($money - 2800, 0, 1000000)>><</if>>
In February, you hear that the King has reentered the city and people begin asking you why you<<if $age is "child" or $age is "adolescent">> and your family<</if>> have not returned when the danger has clearly passed. Your reputation plummets <<set $reputation to 0>> and people begin accusing you of cowardice. <<if $money lte 0>>It is therefore a mixed blessing that you<<if $age is "child" or $age is "adolescent">> and your family<</if>> realize you've run out of money and are forced to [[return early to avoid starving->January 1666]].<<else>>
<<if $socio is "beggars">><<set $money to Math.clamp($money - 120, 0, 1000000)>><<elseif $socio is "day labourers">><<set $money to Math.clamp($money - 300, 0, 1000000)>><<elseif $socio is "artisans">><<set $money to Math.clamp($money - 800, 0, 1000000)>><<elseif $socio is "merchants">><<set $money to Math.clamp($money - 2800, 0, 1000000)>><</if>>
But by March, the <<defBillsOfMortality "bills of mortality">> show plague deaths creeping back up again and you <<if $age is "child" or $age is "adolescent">> and your family<</if>><<if $money lte 0>>are terrified to realize you've run out of money and must [[return early to the city->April 1666]]<<else>>hold your course.<br><br>
<<if $socio is "beggars">><<set $money to Math.clamp($money - 120, 0, 1000000)>><<elseif $socio is "day labourers">><<set $money to Math.clamp($money - 300, 0, 1000000)>><<elseif $socio is "artisans">><<set $money to Math.clamp($money - 800, 0, 1000000)>><<elseif $socio is "merchants">><<set $money to Math.clamp($money - 2800, 0, 1000000)>><</if>>
<<if $money lte 0>>Unfortunately, you<<if $age is "child" or $age is "adolescent">> and your family<</if>> run out of money in April and are forced to [[return to the city->April 1666]] to avoid starving<<else>>
<<if $socio is "beggars">><<set $money to Math.clamp($money - 120, 0, 1000000)>><<elseif $socio is "day labourers">><<set $money to Math.clamp($money - 300, 0, 1000000)>><<elseif $socio is "artisans">><<set $money to Math.clamp($money - 800, 0, 1000000)>><<elseif $socio is "merchants">><<set $money to Math.clamp($money - 2800, 0, 1000000)>><</if>>
<<if $money lte 0>>Unfortunately, you<<if $age is "child" or $age is "adolescent">> and your family<</if>> run out of money in May and are forced to [[return to the city->May 1666]] to avoid starving<<else>>
<<if $socio is "beggars">><<set $money to Math.clamp($money - 120, 0, 1000000)>><<elseif $socio is "day labourers">><<set $money to Math.clamp($money - 300, 0, 1000000)>><<elseif $socio is "artisans">><<set $money to Math.clamp($money - 800, 0, 1000000)>><<elseif $socio is "merchants">><<set $money to Math.clamp($money - 2800, 0, 1000000)>><</if>>
As summer dawns over the city, plague deaths reach a height of /* NTS: check numbers */ a week. It's nothing compared to 1665, but the risk of death is still high and you are frustrated with all the people who demand your return.<<if $money lte 0>>It is therefore a mixed blessing that you<<if $age is "child" or $age is "adolescent">> and your family<</if>> realize you've run out of money and are forced to [[return early to avoid starving->June 1666]].<<else>><br><br>
<<if $socio is "beggars">><<set $money to Math.clamp($money - 120, 0, 1000000)>><<elseif $socio is "day labourers">><<set $money to Math.clamp($money - 300, 0, 1000000)>><<elseif $socio is "artisans">><<set $money to Math.clamp($money - 800, 0, 1000000)>><<elseif $socio is "merchants">><<set $money to Math.clamp($money - 2800, 0, 1000000)>><</if>>
<<if $money lte 0>>Unfortunately, you<<if $age is "child" or $age is "adolescent">> and your family<</if>> run out of money in July and are forced to [[return to the city->July 1666]] to avoid starving<<else>>
<<if $socio is "beggars">><<set $money to Math.clamp($money - 120, 0, 1000000)>><<elseif $socio is "day labourers">><<set $money to Math.clamp($money - 300, 0, 1000000)>><<elseif $socio is "artisans">><<set $money to Math.clamp($money - 800, 0, 1000000)>><<elseif $socio is "merchants">><<set $money to Math.clamp($money - 2800, 0, 1000000)>><</if>>
<<if $money lte 0>>Unfortunately, you<<if $age is "child" or $age is "adolescent">> and your family<</if>> run out of money in August and are forced to [[return to the city->August 1666]] to avoid starving<<else>>
<<if $socio is "beggars">><<set $money to Math.clamp($money - 120, 0, 1000000)>><<elseif $socio is "day labourers">><<set $money to Math.clamp($money - 300, 0, 1000000)>><<elseif $socio is "artisans">><<set $money to Math.clamp($money - 800, 0, 1000000)>><<elseif $socio is "merchants">><<set $money to Math.clamp($money - 2800, 0, 1000000)>><</if>>
Then, in September, disaster strikes. Your first hint is a dark cloud rising into the air, just barely visible in the distance, but news soon arrives that the city is burning. You pray to God for the salvation of the city - and your home and everything you left behind in it - as the fire burns for days.<<if $money lte 0>> Disaster heaps upon disaster as you<<if $age is "child" or $age is "adolescent">> and your family<</if>> realize you've run out of money and are forced to [[return to the ruined city to avoid starving->October 1666]].<<else>><br><br>
<<if $socio is "beggars">><<set $money to Math.clamp($money - 120, 0, 1000000)>><<elseif $socio is "day labourers">><<set $money to Math.clamp($money - 300, 0, 1000000)>><<elseif $socio is "artisans">><<set $money to Math.clamp($money - 800, 0, 1000000)>><<elseif $socio is "merchants">><<set $money to Math.clamp($money - 2800, 0, 1000000)>><</if>>
Finally, you receive word that /* NTS: put in results here based on where you live, if your house burned you're in the countryside for the rest of the game, go straight to the end. */<br><br>
<<if $socio is "beggars">><<set $money to Math.clamp($money - 120, 0, 1000000)>><<elseif $socio is "day labourers">><<set $money to Math.clamp($money - 300, 0, 1000000)>><<elseif $socio is "artisans">><<set $money to Math.clamp($money - 800, 0, 1000000)>><<elseif $socio is "merchants">><<set $money to Math.clamp($money - 2800, 0, 1000000)>><</if>>
While you<<if $age is "child" or $age is "adolescent">> and your family<</if>> consider making a profit from renting out your residence to those who have been made homeless, you feel like your house being spared is God's way of encouraging you to return to the city. Luckily, the official Thanksgiving Day for the end of the plague is proclaimed, and so you<<if $age is "child" or $age is "adolescent">> and your family<</if>> make your way [[back to the city->November 1666]].<</if>><</if>><</if>><</if>><</if>><</if>><</if>><</if>><</if>><</if>><</if>><</if>><</nobr>><<nobr>><<if $socio is "beggars">>You lose money every day that you're away from the city, as no one wants to give <<defCharity "charity">> to a beggar from the city<<set $money to Math.clamp($money - 120, 0, 1000000)>><<elseif $socio is "day labourers">>You<<if $age is "child" or $age is "adolescent">> and your family<</if>> lose money every day that you're away from the city and the people who normally would be willing to employ you for a day's labor<<set $money to Math.clamp($money - 300, 0, 1000000)>><<elseif $socio is "servants">>You dislike being so far from the city<<elseif $socio is "artisans">><<set $money to Math.clamp($money - 800, 0, 1000000)>>You<<if $age is "child" or $age is "adolescent">> and your family<</if>> lose money every day that you're away from the city and unable to practice your trade<<elseif $socio is "merchants">><<set $money to Math.clamp($money - 2800, 0, 1000000)>>It's deeply irritating to have to pay rent on a country house as well as your home back in the city<<elseif $socio is "nobles">>It's to your great disadvantage to be so far from Court and the centers of power<</if>>, but luckily it's a price that you're able to pay for at least a little while to ensure your safety.
When the death tolls top 7,000 a week in August and September, you're sure you<<if $age is "child" or $age is "adolescent">> and your family<</if>> made the right call.<br><br>
<<if $socio is "beggars">><<set $money to Math.clamp($money - 120, 0, 1000000)>><<elseif $socio is "day labourers">><<set $money to Math.clamp($money - 300, 0, 1000000)>><<elseif $socio is "artisans">><<set $money to Math.clamp($money - 800, 0, 1000000)>><<elseif $socio is "merchants">><<set $money to Math.clamp($money - 2800, 0, 1000000)>><</if>>
By the beginning of October, death tolls have fallen to half that but there are still a horrifying number of people dying every week.<<if $money lte 0>> Unfortunately, you<<if $age is "child" or $age is "adolescent">> and your family<</if>> have run out of money and are forced to [[return to the city->October 1665]] to avoid starving.<<else>><br><br>
<<if $socio is "beggars">><<set $money to Math.clamp($money - 120, 0, 1000000)>><<elseif $socio is "day labourers">><<set $money to Math.clamp($money - 300, 0, 1000000)>><<elseif $socio is "artisans">><<set $money to Math.clamp($money - 800, 0, 1000000)>><<elseif $socio is "merchants">><<set $money to Math.clamp($money - 2800, 0, 1000000)>><</if>>
You anxiously watch the fall in the number of deaths each week, thanking God when only a thousand people a week are dying at the beginning of November. <<if $money lte 0>> Unfortunately, you<<if $age is "child" or $age is "adolescent">> and your family<</if>> have run out of money and are forced to [[return to the city->November 1665]] to avoid starving.<<else>>
<<if $socio is "beggars">><<set $money to Math.clamp($money - 120, 0, 1000000)>><<elseif $socio is "day labourers">><<set $money to Math.clamp($money - 300, 0, 1000000)>><<elseif $socio is "artisans">><<set $money to Math.clamp($money - 800, 0, 1000000)>><<elseif $socio is "merchants">><<set $money to Math.clamp($money - 2800, 0, 1000000)>><</if>>
At the start of Advent, there are still 200 or 300 odd people dying each week <<if $money lte 0>>but unfortunately, you<<if $age is "child" or $age is "adolescent">> and your family<</if>> have run out of money and are forced to [[return to the city->December 1665]] to avoid starving.<<else>>and you reconcile yourself with a Christmas spent away from the City.<br><br>
<<if $socio is "beggars">><<set $money to Math.clamp($money - 120, 0, 1000000)>><<elseif $socio is "day labourers">><<set $money to Math.clamp($money - 300, 0, 1000000)>><<elseif $socio is "artisans">><<set $money to Math.clamp($money - 800, 0, 1000000)>><<elseif $socio is "merchants">><<set $money to Math.clamp($money - 2800, 0, 1000000)>><</if>>
When the New Year dawns, you<<if $age is "child" or $age is "adolescent">> and your family<</if>> are desperately homesick but renew your resolve not to return to London until the <<defPlague "plague">> is officially over. You hear the King and court have returned to <span class="def" data-def="A palace south of London famed for its gardens. Cardinal Wolsey began construction on the palace in the early 16th century and King Henry VIII adopted it as his primary residence. King James I, King Charles I, Lord Protector Oliver Cromwell, King Charles II, and King James II also lived in the palace. After the Glorious Revolution in 1688 the co-monarchs William and Mary commissioned the architect Christopher Wren to build a new baroque-style palace on the site. Later monarchs continued to reside there until the mid-18th century. Queen Victoria opened the palace to the public in 1838 and it remains a popular tourist destination.">Hampton Court Palace</span>, near to the city, and eagerly anticipate the end of the plague.<<if $money lte 0>>While you<<if $age is "child" or $age is "adolescent">> and your family<</if>> are waiting, you realize you've run out of money and are forced to return early to avoid starving.<<else>><br><br>
<<if $socio is "beggars">><<set $money to Math.clamp($money - 120, 0, 1000000)>><<elseif $socio is "day labourers">><<set $money to Math.clamp($money - 300, 0, 1000000)>><<elseif $socio is "artisans">><<set $money to Math.clamp($money - 800, 0, 1000000)>><<elseif $socio is "merchants">><<set $money to Math.clamp($money - 2800, 0, 1000000)>><</if>>
In February, you hear that the King has reentered the city and people begin asking you why you<<if $age is "child" or $age is "adolescent">> and your family<</if>> have not returned when the danger has clearly passed. Your reputation plummets <<set $reputation to 0>> and people begin accusing you of cowardice. <<if $money lte 0>>It is therefore a mixed blessing that you<<if $age is "child" or $age is "adolescent">> and your family<</if>> realize you've run out of money and are forced to [[return early to avoid starving->January 1666]].<<else>>
<<if $socio is "beggars">><<set $money to Math.clamp($money - 120, 0, 1000000)>><<elseif $socio is "day labourers">><<set $money to Math.clamp($money - 300, 0, 1000000)>><<elseif $socio is "artisans">><<set $money to Math.clamp($money - 800, 0, 1000000)>><<elseif $socio is "merchants">><<set $money to Math.clamp($money - 2800, 0, 1000000)>><</if>>
But by March, the <<defBillsOfMortality "bills of mortality">> show plague deaths creeping back up again and you<<if $age is "child" or $age is "adolescent">> and your family<</if>> <<if $money lte 0>>are terrified to realize you've run out of money and must [[return early to the city->April 1666]]<<else>>hold your course.<br><br>
<<if $socio is "beggars">><<set $money to Math.clamp($money - 120, 0, 1000000)>><<elseif $socio is "day labourers">><<set $money to Math.clamp($money - 300, 0, 1000000)>><<elseif $socio is "artisans">><<set $money to Math.clamp($money - 800, 0, 1000000)>><<elseif $socio is "merchants">><<set $money to Math.clamp($money - 2800, 0, 1000000)>><</if>>
<<if $money lte 0>>Unfortunately, you<<if $age is "child" or $age is "adolescent">> and your family<</if>> run out of money in April and are forced to [[return to the city->April 1666]] to avoid starving<<else>>
<<if $socio is "beggars">><<set $money to Math.clamp($money - 120, 0, 1000000)>><<elseif $socio is "day labourers">><<set $money to Math.clamp($money - 300, 0, 1000000)>><<elseif $socio is "artisans">><<set $money to Math.clamp($money - 800, 0, 1000000)>><<elseif $socio is "merchants">><<set $money to Math.clamp($money - 2800, 0, 1000000)>><</if>>
<<if $money lte 0>>Unfortunately, you<<if $age is "child" or $age is "adolescent">> and your family<</if>> run out of money in May and are forced to [[return to the city->May 1666]] to avoid starving<<else>>
<<if $socio is "beggars">><<set $money to Math.clamp($money - 120, 0, 1000000)>><<elseif $socio is "day labourers">><<set $money to Math.clamp($money - 300, 0, 1000000)>><<elseif $socio is "artisans">><<set $money to Math.clamp($money - 800, 0, 1000000)>><<elseif $socio is "merchants">><<set $money to Math.clamp($money - 2800, 0, 1000000)>><</if>>
As summer dawns over the city, plague deaths reach a height of /* NTS: check numbers */ a week. It's nothing compared to 1665, but the risk of death is still high and you are frustrated with all the people who demand your return.<<if $money lte 0>>It is therefore a mixed blessing that you<<if $age is "child" or $age is "adolescent">> and your family<</if>> realize you've run out of money and are forced to [[return early to avoid starving->June 1666]].<<else>><br><br>
<<if $socio is "beggars">><<set $money to Math.clamp($money - 120, 0, 1000000)>><<elseif $socio is "day labourers">><<set $money to Math.clamp($money - 300, 0, 1000000)>><<elseif $socio is "artisans">><<set $money to Math.clamp($money - 800, 0, 1000000)>><<elseif $socio is "merchants">><<set $money to Math.clamp($money - 2800, 0, 1000000)>><</if>>
<<if $money lte 0>>Unfortunately, you<<if $age is "child" or $age is "adolescent">> and your family<</if>> run out of money in July and are forced to [[return to the city->July 1666]] to avoid starving<<else>>
<<if $socio is "beggars">><<set $money to Math.clamp($money - 120, 0, 1000000)>><<elseif $socio is "day labourers">><<set $money to Math.clamp($money - 300, 0, 1000000)>><<elseif $socio is "artisans">><<set $money to Math.clamp($money - 800, 0, 1000000)>><<elseif $socio is "merchants">><<set $money to Math.clamp($money - 2800, 0, 1000000)>><</if>>
<<if $money lte 0>>Unfortunately, you<<if $age is "child" or $age is "adolescent">> and your family<</if>> run out of money in August and are forced to [[return to the city->August 1666]] to avoid starving<<else>>
<<if $socio is "beggars">><<set $money to Math.clamp($money - 120, 0, 1000000)>><<elseif $socio is "day labourers">><<set $money to Math.clamp($money - 300, 0, 1000000)>><<elseif $socio is "artisans">><<set $money to Math.clamp($money - 800, 0, 1000000)>><<elseif $socio is "merchants">><<set $money to Math.clamp($money - 2800, 0, 1000000)>><</if>>
Then, in September, disaster strikes. Your first hint is a dark cloud rising into the air, just barely visible in the distance, but news soon arrives that the city is burning. You pray to God for the salvation of the city - and your home and everything you left behind in it - as the fire burns for days.<<if $money lte 0>> Disaster heaps upon disaster as you<<if $age is "child" or $age is "adolescent">> and your family<</if>> realize you've run out of money and are forced to [[return to the ruined city to avoid starving->October 1666]].<<else>><br><br>
<<if $socio is "beggars">><<set $money to Math.clamp($money - 120, 0, 1000000)>><<elseif $socio is "day labourers">><<set $money to Math.clamp($money - 300, 0, 1000000)>><<elseif $socio is "artisans">><<set $money to Math.clamp($money - 800, 0, 1000000)>><<elseif $socio is "merchants">><<set $money to Math.clamp($money - 2800, 0, 1000000)>><</if>>
Finally, you receive word that /* NTS: put in results here based on where you live, if your house burned you're in the countryside for the rest of the game, go straight to the end. */<br><br>
<<if $socio is "beggars">><<set $money to Math.clamp($money - 120, 0, 1000000)>><<elseif $socio is "day labourers">><<set $money to Math.clamp($money - 300, 0, 1000000)>><<elseif $socio is "artisans">><<set $money to Math.clamp($money - 800, 0, 1000000)>><<elseif $socio is "merchants">><<set $money to Math.clamp($money - 2800, 0, 1000000)>><</if>>
While you<<if $age is "child" or $age is "adolescent">> and your family<</if>> consider making a profit from renting out your residence to those who have been made homeless, you are uncomfortable doing so when you aren't around to make sure to make sure the tenant is taking proper care of your belongings. There is still plague about and who knows what other pestilence they could bring into your home?<<if $money lte 0>> Besides, you<<if $age is "child" or $age is "adolescent">> and your family<</if>> are running out of money and realize you're going to have to return to the city soon to avoid starving->November 1666]]<<else>><br><br>
<<if $socio is "beggars">><<set $money to Math.clamp($money - 120, 0, 1000000)>><<elseif $socio is "day labourers">><<set $money to Math.clamp($money - 300, 0, 1000000)>><<elseif $socio is "artisans">><<set $money to Math.clamp($money - 800, 0, 1000000)>><<elseif $socio is "merchants">><<set $money to Math.clamp($money - 2800, 0, 1000000)>><</if>>
The official Thanksgiving Day for the end of the plague is proclaimed in November, but there are still people dying each week<<if $money lte 0>>. Unfortunately, you<<if $age is "child" or $age is "adolescent">> and your family<</if>> are out of money and so are forced to [[return to the city->December 1666]]<<else>> so you<<if $age is "child" or $age is "adolescent">> and your family<</if>> hold off returning and resign yourself to another winter in exile.<br><br>
<<if $socio is "beggars">><<set $money to Math.clamp($money - 120, 0, 1000000)>><<elseif $socio is "day labourers">><<set $money to Math.clamp($money - 300, 0, 1000000)>><<elseif $socio is "artisans">><<set $money to Math.clamp($money - 800, 0, 1000000)>><<elseif $socio is "merchants">><<set $money to Math.clamp($money - 2800, 0, 1000000)>><</if>>
Life may go on for the reckless, but it will not be until 1667 that you<<if $age is "child" or $age is "adolescent">> and your family<</if>> finally make your way [[back to the city->December 1666]].
<</if>><</if>><</if>><</if>><</if>><</if>><</if>><</if>><</if>><</if>><</if>><</if>><</if>><</if>><</nobr>><<nobr>>
<<set _fleeBlocked to false>><<if $fled is 5>><<silently>><<for _npc range $NPCs>><<if _npc.health is "infected">><<set _fleeBlocked to true>><</if>><</for>><</silently>><<if _fleeBlocked>><<set $fled to 4>>You prepare your household to flee the city. It takes some time to sort out the travel logistics, but finally everything is in order. They will leave tomorrow.<br><br>
<<sickFam>><<else>><<fled-family>><</if>><</if>>
<<if not _fleeBlocked>>
/* Beggars */
<<if $socio is "beggars">>
<<if $fled is 3>>
<<if $hoh is 1 or $NPCs.length lt 1>>You decide to break your contract with your master<<elseif $hoh is 0>>You successfully convince your family to break their contract with your master<</if>> and remain in the city, despite the danger<<if $NPCs.length gt 0>> to yourself and your family<</if>>.<br><br>
Unfortunately, with no income and no reputation to speak of anymore, you <<if $NPCs.length gt 0>>and your family <</if>> only have the option of begging to survive. You sell all your worldly goods and throw yourself on the mercy of your neighbors.
<<else>>You decide to remain in the city and fend for yourself. With so many people fleeing, surely there will be extra chances to earn some coin.
<</if>>
<</if>>
/* Day Labourers */
<<if $socio is "day labourers">>
<<if $role is "searcher" or $role is "nurse" or $role is "corpsebearer">>You accept the job from the <<defParish "parish">> officials, which at least provides you with a little income while other work has dwindled.<<else>>You decide not to accept the job from <<defParish "parish">> officials. Unfortunately, without any steady work, it may soon be difficult to survive as other work around the city dwindles.<</if>>
/* Servants Stay*/
<<if $socio is "servants">>
You<<if $hoh is 0 and $NPCs.length gt 0>> convince your family<<else>>decide<</if>> to remain in the city with your master and his household, despite the danger.
<</if>>
/* Artisans */
/* NTS: [household fleeing is one time money hit; if character flees, take a money hit each turn until go broke (go down to day laborer timeline) or return] */
/* NTS: add text about what artisans do immediately after choosing to stay. */
<<if $socio is "artisans">>
<<if $fled is 7>>Despite your efforts to flee the city, your reputation is so poor that no one would take you in elsewhere. You have lost at least two months' of wages for your effort, and are considered in even lower esteem than before.
<<else>>
You decide to remain in the city <<if $fled is 4>>with your <<defHousehold "household">>, despite the danger<<else>>by yourself, and send your family to the countryside away from the danger.<</if>>
<</if>>
<</if>>
/* Merchants */
/* NTS: if either character or household flees, money hit each turn but shouldn’t be so bad as to force them back to the city; if character flees, take a one time reputation hit then do further reputation hits if stay fled after court returns in February; if character stays, small rep bonus for each turn stays in city */
<<if $socio is "merchants">>
/* NTS: add text about what merchants do immediately after choosing to stay. */
<</if>>
/* Nobles */
<<if $socio is "nobles">>
/* NTS: add text about what nobles do immediately after choosing to stay. */
You help your <<defHousehold "household">> to pack up and leave the city for safety in $hhlocation. You send your family with most of the servants, keeping only $NPCsServants.length for yourself. You promise to meet them should the situation grow worse.<</if>>
<</if>>
<br><br>
While you remain in the city, you can take measures to protect yourself<<if $NPCs.length gt 1>> and your household<</if>> from the plague. You can:
<<preventative>>
You can also visit the ''<<defApothecary_Apoth "Apothecary">>'', who sells remedies to prevent you from getting sick or to treat those who have fallen ill.
<<first-plague-day-continue>>
<</if>>
<</nobr>>You have attempted to flee the city! Unfortunately, your reputation precedes you, and no one will take you in. You are forced to return to London, shamed, and many shillings poorer.
<<first-plague-day-continue>><<nobr>><<set $quarantine to 5>>
/* check if any family members were infected the previous week */
<<silently>>
<<set _infectedFamily = []>>
<<for _y, _household range $NPCs>>
<<if _household.health is "infected">>
<<set _infectedFamily.push(_y)>>
<</if>>
<</for>>
<</silently>>
/*NTS: fix text here */
You have now been in <<defQuarantine "quarantine">> for over a month, and there is no sign that the plague's spread is slowing. <<if $plagueInfection is 0>>It seems a miracle that you have not fallen ill yourself.<</if>>
/* reveal which family members are infected */
<<if _infectedFamily.length gt 0>>Even more members of your household have fallen ill. Your
<<for _z, _y range _infectedFamily>>
<<if _infectedFamily.length eq 1>>$NPCs[_y].relationship $NPCs[_y].name is now infected.<br>
<<elseif _z < _infectedFamily.length - 1>>$NPCs[_y].relationship $NPCs[_y].name, <<else>>and $NPCs[_y].relationship $NPCs[_y].name are now infected.
<</if>>
<</for>>
<</if>>
/* if more family members were infected, offer treatment options & run death recovery & spread code */
<<if _infectedFamily.length gt 0>>
/* call in widget showing treatment options if family members are infected */
<<hh-treatments>>
<<linkappend "You continue to tend to the sick and suffering.">><br><br>
<<silently>>
<<fumigant-check>>
/* check if you used a remedy, determine if sick family recovers or dies */
<<for _s range _infectedFamily>>
<<if _remedyEffect is 1 and random(1,3) is 1>><<set $NPCs[_s].health to "deceased5">>
<<elseif _remedyEffect is 0 and random(1,2) is 1>><<set $NPCs[_s].health to "deceased5">>
<<else>><<set $NPCs[_s].health to "recovered5">>
<</if>>
<</for>>
/* Check for family members who died or recovered */
<<set _deceased = []>>
<<set _recovered = []>>
<<for _d, _household range $NPCs>>
<<if _household.health is "deceased5">><<set _deceased.push(_d)>>
<</if>>
<<if _household.health is "recovered5">><<set _recovered.push(_d)>>
<</if>>
<</for>>
/* Check for fumigants to prevent spread to household */
<<for _i = 0; _i < $NPCs.length; _i++>>
<<if $NPCs[_i].health is "healthy">>
<<if _fumes gt 0 and random(1,4) eq 1>><<set $NPCs[_i].health to "infected">>
<<elseif _fumes lt 1 and random(1,2) eq 1>><<set $NPCs[_i].health to "infected">>
<</if>>
<</if>>
<</for>>
/* Check for fumigants to prevent spread to servants */
<<for _si = 0; _si < $NPCsServants.length; _si++>>
<<if $NPCsServants[_si].health is "healthy">>
<<if _fumes gt 0 and random(1,4) eq 1>><<set $NPCsServants[_si].health to "infected">>
<<elseif _fumes lt 1 and random(1,2) eq 1>><<set $NPCsServants[_si].health to "infected">>
<</if>>
<</if>>
<</for>>
/* check for fumigants to prevent spread to player */
<<if $plagueInfection is 0>>
<<if _fumes gt 0 and random(1,4) is 1>><<set $plagueInfection to 1>>
<<elseif _fumes lt 1 and random(1,2) is 1>><<set $plagueInfection to 1>>
<</if>>
<</if>>
<</silently>>
/* reveal which family members have died or survived*/
/* NTS: update text here for variety from past weeks */
<<if _deceased.length gt 0>>Despite your care, your
<<for _x, _d range _deceased>>
<<if _deceased.length eq 1>>$NPCs[_d].relationship $NPCs[_d].name has died.<<elseif _x < _deceased.length - 1>>$NPCs[_d].relationship $NPCs[_d].name,<<else>>and $NPCs[_d].relationship $NPCs[_d].name have died.
<</if>>
<</for>>
<br><br>
<</if>>
/* show which family members recovered */
<<if _recovered.length gt 0>><<if _deceased.length gt 0>>There is some good news, though. <</if>>The treatments seem to be helping, and your
<<for _r, _d range _recovered>>
<<if _recovered.length eq 1>>$NPCs[_d].relationship $NPCs[_d].name has started to recover from their illness.
<<elseif _r < _recovered.length - 1>>$NPCs[_d].relationship $NPCs[_d].name
<<else>>and $NPCs[_d].name have started to recover from their illness.
<</if>>
<</for>>
<br><br>
<</if>>
/* Check if player or additional family were infected, send to next passage depending */
<<silently>><<unset _infectedFamily>><<unset _household>>
<<set _infectedFamily = []>>
<<for _y, _household range $NPCs>>
<<if _household.health is "infected">>
<<set _infectedFamily.push(_y)>>
<</if>>
<</for>><</silently>>
<<if $plagueInfection is 1>>[[You wonder what has happened while you were away from the world.->Sickness]]
<<elseif _infectedFamily.length gt 0>>[[You wonder what has been happening while you are away from the world.->Quarantine, Week ?]]
<<else>>[[You wonder what has happened while you were away from the world.->Reconnecting]]
<</if>>
<<fumigant>>
<<health-update>>
<</linkappend>>
<<else>> The infection seems to have burned itself out, and you can now focus on the recovery of those who survived.<br><br>
[[You wonder what has been happening while you were away from the world.->Reconnecting]]
<<fumigant>>
<<health-update>>
<</if>>
<</nobr>><<nobr>><<set $quarantine to 6>>
/* check if any family members were infected the previous week */
<<silently>>
<<set _infectedFamily = []>>
<<for _y, _household range $NPCs>>
<<if _household.health is "infected">>
<<set _infectedFamily.push(_y)>>
<</if>>
<</for>>
<</silently>>
/*NTS: fix text here. Something about going out after plague curfew? */
You have been in <<defQuarantine "quarantine">> so long, you've lost track of time. The days are interminable.
/* reveal which family members are infected */
<<if _infectedFamily.length gt 0>>Unfortunately, even more members of your household have fallen ill. Your
<<for _z, _y range _infectedFamily>>
<<if _infectedFamily.length eq 1>>$NPCs[_y].relationship $NPCs[_y].name is now infected.<br>
<<elseif _z < _infectedFamily.length - 1>>$NPCs[_y].relationship $NPCs[_y].name, <<else>>and $NPCs[_y].relationship $NPCs[_y].name are now infected.
<</if>>
<</for>>
<</if>>
/* if more family members were infected, offer treatment options & run death recovery & spread code */
<<if _infectedFamily.length gt 0>>
/* call in widget showing treatment options if family members are infected */
<<hh-treatments>>
<<linkappend "You continue to tend to the sick and suffering.">><br><br>
<<silently>>
<<fumigant-check>>
/* check if you used a remedy, determine if sick family recovers or dies */
<<for _s range _infectedFamily>>
<<if _remedyEffect is 1 and random(1,3) is 1>><<set $NPCs[_s].health to "deceased">>
<<elseif _remedyEffect is 0 and random(1,2) is 1>><<set $NPCs[_s].health to "deceased">>
<<else>><<set $NPCs[_s].health to "recovered">>
<</if>>
<</for>>
/* Check for family members who died or recovered */
<<set _deceased = []>>
<<set _recovered = []>>
<<for _d, _household range $NPCs>>
<<if _household.health is "deceased">><<set _deceased.push(_d)>>
<</if>>
<<if _household.health is "recovered">><<set _recovered.push(_d)>>
<</if>>
<</for>>
/* Check for fumigants to prevent spread to household */
<<for _i = 0; _i < $NPCs.length; _i++>>
<<if $NPCs[_i].health is "healthy">>
<<if _fumes gt 0 and random(1,4) eq 1>><<set $NPCs[_i].health to "infected">>
<<elseif _fumes lt 1 and random(1,2) eq 1>><<set $NPCs[_i].health to "infected">>
<</if>>
<</if>>
<</for>>
/* Check for fumigants to prevent spread to servants */
<<for _si = 0; _si < $NPCsServants.length; _si++>>
<<if $NPCsServants[_si].health is "healthy">>
<<if _fumes gt 0 and random(1,4) eq 1>><<set $NPCsServants[_si].health to "infected">>
<<elseif _fumes lt 1 and random(1,2) eq 1>><<set $NPCsServants[_si].health to "infected">>
<</if>>
<</if>>
<</for>>
/* check for fumigants to prevent spread to player */
<<if $plagueInfection is 0>>
<<if _fumes gt 0 and random(1,4) is 1>><<set $plagueInfection to 1>>
<<elseif _fumes lt 1 and random(1,2) is 1>><<set $plagueInfection to 1>>
<</if>>
<</if>>
<</silently>>
/* reveal which family members have died or survived*/
/* NTS: update text here for variety from past weeks */
<<if _deceased.length gt 0>>Despite your care, your
<<for _x, _d range _deceased>>
<<if _deceased.length eq 1>>$NPCs[_d].relationship $NPCs[_d].name has died.<<elseif _x < _deceased.length - 1>>$NPCs[_d].relationship $NPCs[_d].name,<<else>>and $NPCs[_d].relationship $NPCs[_d].name have died.
<</if>>
<</for>>
<br><br>
<</if>>
/* show which family members recovered */
<<if _recovered.length gt 0>>
<<if _deceased.length gt 0>>There is some good news, though.
<</if>>The treatments seem to be helping, and your
<<for _r, _d range _recovered>>
<<if _recovered.length eq 1>>$NPCs[_d].relationship $NPCs[_d].name has started to recover from their illness.
<<elseif _r < _recovered.length - 1>>$NPCs[_d].relationship $NPCs[_d].name
<<else>>and $NPCs[_d].name have started to recover from their illness.
<</if>>
<</for>>
<br><br>
<</if>>
/*NTS: change link text below*/
/* Check if player was infected, send to next passage depending */
<<if $plagueInfection is 1>>[[You wonder what has happened while you were away from the world.->Sickness]]
<<else>>[[You wonder what has happened while you were away from the world.->Reconnecting]]
<</if>>
<<fumigant>>
<</linkappend>>
<<else>> The infection seems to have burned itself out, and you can now focus on the recovery of those who survived.
/* Check if player was infected, send to next passage depending */
/* NTS: change link text below */
<<if $plagueInfection is 1>>[[You wonder what has happened while you were away from the world.->Sickness]]
<<else>>[[You wonder what has happened while you were away from the world.->Reconnecting]]
<</if>>
<<fumigant>>
<<health-update>>
<</if>>
<</nobr>><<nobr>><<silently>><<set $plagueInfection to 1>>
<<set $quarantine to 1>>
<<set $money to 10000>>
<<set $age to "young adult">>
<<set $socio to "merchants">>
<<set $reputation to 8>>
<<set $gender to "female">>
<<set $NPCs.push({ name: weightedEither($fNames), age: "child", relationship: weightedEither($fRelationships), health: "healthy"})>>
<<set $NPCs.push({ name: weightedEither($fNames), age: "infant", relationship: weightedEither($fRelationships), health: "healthy"})>>
<<set $NPCs.push({ name: weightedEither($fNames), age: either("child", "adolescent", "young adult"), relationship: weightedEither($fRelationships), health: "infected"})>>
<<set $NPCs.push({ name: weightedEither($fNames), age: "infant", relationship: weightedEither($fRelationships), health: "infected"})>>
<<set $NPCs.push({ name: weightedEither($fNames), age: either("child", "adolescent", "young adult"), relationship: weightedEither($fRelationships), health: "infected"})>>
<<set $NPCs.push({ name: weightedEither($fNames), age: "infant", relationship: weightedEither($fRelationships), health: "healthy"})>>
<<set $NPCs.push({ name: weightedEither($fNames), age: "infant", relationship: weightedEither($fRelationships), health: "healthy"})>>
<<set $NPCs.push({ name: weightedEither($fNames), age: "infant", relationship: weightedEither($fRelationships), health: "healthy"})>>
<</silently>>[[You have fallen ill.->Sickness]]
<</nobr>><<widget "steward">>
<<nobr>>
Zounds! The steward of <<if $age is "child" or $age is "adolescent">>you and <</if>>your<<if $age is "child" or $age is "adolescent">> family's<</if>> country estate has died and you must return home to manage affairs yourself.
<br><br>
<span id="fondness">Were you fond of your steward? <<link "Yes">><<replace "#fondness">>You were fond of your steward so you <<if $age is "child" or $age is "adolescent">>and your family<</if>> are sad he is now dead, and even sadder that he can no longer manage your estate. It will be hard to replace him. You decide to hold a good funeral to honor his contributions to your family.<<set $money -=2>><<set $reputation +=2>>
<br><br>
How long do you stay?<ul>
<li>[[One month->steward-1][$money +=1; $reputation -=1]]</li>
<li>[[Two months->steward-2][$money +=2; $reputation -=2]]</li>
<li>[[Three months->steward-3][$money +=3; $reputation -=3]]</li>
</ul>
<</replace>><</link>> | <<link "No">><<replace "#fondness">>You weren't fond of your steward and are looking forward to the opportunity to replace him, but it will still require a great deal of work to find someone capable soon.
<br><br>
How long do you stay?<ul>
<li>[[One month->steward-1][$money +=1; $reputation -=1]]</li>
<li>[[Two months->steward-2][$money +=2; $reputation -=2]]</li>
<li>[[Three months->steward-3][$money +=3; $reputation -=3]]</li>
</ul><</replace>><</link>></span>
<</nobr>>
<</widget>>
<<nobr>>
<<if hasVisited("November 1666")>>[[Return from the country.->December 1666]]
<<elseif hasVisited("October 1666")>>[[Return from the country.->December 1666]]
<<elseif hasVisited("September 1666")>>[[Return from the country.->November 1666]]
<<elseif hasVisited("August 1666")>>[[Return from the country.->October 1666]]
<<elseif hasVisited("July 1666")>>[[Return from the country.->September 1666]]
<<elseif hasVisited("June 1666")>>[[Return from the country.->August 1666]]
<<elseif hasVisited("May 1666")>>[[Return from the country.->July 1666]]
<<elseif hasVisited("April 1666")>>[[Return from the country.->June 1666]]
<<elseif hasVisited("March 1666")>>[[Return from the country.->May 1666]]
<<elseif hasVisited("February 1666")>>[[Return from the country.->April 1666]]
<<elseif hasVisited("January 1666")>>[[Return from the country.->March 1666]]
<<elseif hasVisited("December 1665")>>[[Return from the country.->February 1666]]
<<elseif hasVisited("November 1665")>>[[Return from the country.->January 1666]]
<<elseif hasVisited("October 1665")>>[[Return from the country.->December 1665]]
<<elseif hasVisited("September 1665")>>[[Return from the country.->November 1665]]
<<elseif hasVisited("August 1665")>>[[Return from the country.->October 1665]]
<<elseif hasVisited("July 1665")>>[[Return from the country.->September 1665]]
<<elseif hasVisited("June 1665")>>[[Return from the country.->August 1665]]
<<elseif hasVisited("May 1665")>>[[Return from the country.->July 1665]]
<<elseif hasVisited("January 1665")>>[[Return from the country.->May 1665]]
<<elseif hasVisited("December 1664")>>[[Return from the country.->January 1665]]
<</if>>
<</nobr>>
<<nobr>>
<<if hasVisited("November 1666")>>[[Return from the country.->December 1666]]
<<elseif hasVisited("October 1666")>>[[Return from the country.->December 1666]]
<<elseif hasVisited("September 1666")>>[[Return from the country.->December 1666]]
<<elseif hasVisited("August 1666")>>[[Return from the country.->November 1666]]
<<elseif hasVisited("July 1666")>>[[Return from the country.->October 1666]]
<<elseif hasVisited("June 1666")>>[[Return from the country.->September 1666]]
<<elseif hasVisited("May 1666")>>[[Return from the country.->August 1666]]
<<elseif hasVisited("April 1666")>>[[Return from the country.->July 1666]]
<<elseif hasVisited("March 1666")>>[[Return from the country.->June 1666]]
<<elseif hasVisited("February 1666")>>[[Return from the country.->May 1666]]
<<elseif hasVisited("January 1666")>>[[Return from the country.->April 1666]]
<<elseif hasVisited("December 1665")>>[[Return from the country.->March 1666]]
<<elseif hasVisited("November 1665")>>[[Return from the country.->February 1666]]
<<elseif hasVisited("October 1665")>>[[Return from the country.->January 1666]]
<<elseif hasVisited("September 1665")>>[[Return from the country.->December 1665]]
<<elseif hasVisited("August 1665")>>[[Return from the country.->November 1665]]
<<elseif hasVisited("July 1665")>>[[Return from the country.->October 1665]]
<<elseif hasVisited("June 1665")>>[[Return from the country.->September 1665]]
<<elseif hasVisited("May 1665")>>[[Return from the country.->August 1665]]
<<elseif hasVisited("January 1665")>>[[Return from the country.->May 1665]]
<<elseif hasVisited("December 1664")>>[[Return from the country.->January 1665]]
<</if>>
<</nobr>>
<<nobr>>
/* NTS if you were imprisoned or impressed, show a bit of text here that says what happened while you were away. Add code that moves you forward a play equivalent to your imprisonment time. */
<<if hasVisited("November 1666")>>[[Return from the country.->December 1666]]
<<elseif hasVisited("October 1666")>>[[Return from the country.->November 1666]]
<<elseif hasVisited("September 1666")>>[[Return from the country.->October 1666]]
<<elseif hasVisited("August 1666")>>[[Return from the country.->September 1666]]
<<elseif hasVisited("July 1666")>>[[Return from the country.->August 1666]]
<<elseif hasVisited("June 1666")>>[[Return from the country.->July 1666]]
<<elseif hasVisited("May 1666")>>[[Return from the country.->June 1666]]
<<elseif hasVisited("April 1666")>>[[Return from the country.->May 1666]]
<<elseif hasVisited("March 1666")>>[[Return from the country.->April 1666]]
<<elseif hasVisited("February 1666")>>[[Return from the country.->March 1666]]
<<elseif hasVisited("January 1666")>>[[Return from the country.->February 1666]]
<<elseif hasVisited("December 1665")>>[[Return from the country.->January 1666]]
<<elseif hasVisited("November 1665")>>[[Return from the country.->December 1665]]
<<elseif hasVisited("October 1665")>>[[Return from the country.->November 1665]]
<<elseif hasVisited("September 1665")>>[[Return from the country.->October 1665]]
<<elseif hasVisited("August 1665")>>[[Return from the country.->September 1665]]
<<elseif hasVisited("July 1665")>>[[Return from the country.->August 1665]]
<<elseif hasVisited("June 1665")>>[[Return from the country.->July 1665]]
<<elseif hasVisited("May 1665")>>[[Return from the country.->June 1665]]
<<elseif hasVisited("January 1665")>>[[Return from the country.->May 1665]]
<<elseif hasVisited("December 1664")>>[[Return from the country.->January 1665]]
<</if>>
<</nobr>>
<<widget "accident">>
<<nobr>>
<<set $accident to random(0,5)>><<if $accident is 1>>Send not to know for whom the church bells toll. They toll for you.
<br><br>Unfortunately you have suffered from a fatal accident <<if $socio is "day labourers">>while out on a job<</if>>. <<set $death to random(1,5)>><<if $death is 1>>You drowned in <<if $socio is "day labourers">>a brewer's mash<<else>>a well<</if>>. <<elseif $death is 2>>You were bitten by a dog. <<elseif $death is 3>>You fell from <<if $socio is "day labourers">>scaffolding<<else>>a window<</if>>. <<elseif $death is 4>>You were run over by a cart. <<else>>You fell down a flight of stairs.<</if>><br><br><<if $reputation lte 0>>You died with such a poor reputation that most of your neighbors didn't care. The rest of them probably cursed your name and hoped you were suffering in hell. Luckily,
<<else>>You died with a good enough reputation that your neighbors say prayers for your soul. Because of the plague ordinances, none of your neighbors could attend your funeral but your body was at least put into the communal plague pits, instead of being left out to rot.
<</if>>
<br><br>
<<if $religion is "Catholic">>As a God-fearing Catholic, you know you are destined to spend time in purgatory before you can ascend to heaven but you hope that will not take too long<<if $reputation lte 0>>, despite your poor reputation on earth.<</if>><<else>>As a good Protestant, you know that Christ the Redeemer has died for you and your admittance to heaven is guaranteed.<</if>>
<br><br>
[[At least you didn't die of the plague->stats]].
<<else>>
You have suffered an accident while<<if $socio is "day labourers">>out on a job<<else>>running errands<</if>>, but thanks to God you are still alive. <<set $accident to random (1,5)>><<if $accident is 1>>You fell from a window. <<elseif $accident is 2>>You were kicked by a horse. <<elseif $accident is 3>>You broke your arm. <<elseif $accident is 4>>You were hit by a wagon wheel. <<else>>You fell in the Thames and a cut on your arm was infected. <</if>> Fortunately, this is something you can recover from with rest and care. <<if $reputation lte 0>>Unfortunately your reputation is too low for anyone to offer you assistance so you must recover on your own and <<else>>Your <<if $NPCs.length gt 0>>family<<else>>neighbors<</if>> take good care of you, but <</if>>you lose money every day you aren't working.<<set $money -=3>><br><br>Soon you are ready to rejoin <<if $socio is "day labourers">>the other day labourers in their [[search for work->healing]].<<else>>[[your master's household->healing]].<</if>>
<</if>>
<</nobr>>
<</widget>><<nobr>>
<<if hasVisited("December 1666")>>[[Get back out there.->December 1666]]
<<elseif hasVisited("November 1666")>>[[Get back out there.->December 1666]]
<<elseif hasVisited("October 1666")>>[[Get back out there.->November 1666]]
<<elseif hasVisited("September 1666")>>[[Get back out there.->October 1666]]
<<elseif hasVisited("August 1666")>>[[Get back out there.->September 1666]]
<<elseif hasVisited("July 1666")>>[[Get back out there.->August 1666]]
<<elseif hasVisited("June 1666")>>[[Get back out there.->July 1666]]
<<elseif hasVisited("May 1666")>>[[Get back out there.->June 1666]]
<<elseif hasVisited("April 1666")>>[[Get back out there.->May 1666]]
<<elseif hasVisited("March 1666")>>[[Get back out there.->April 1666]]
<<elseif hasVisited("February 1666")>>[[Get back out there.->March 1666]]
<<elseif hasVisited("January 1666")>>[[Get back out there.->February 1666]]
<<elseif hasVisited("December 1665")>>[[Get back out there.->January 1666]]
<<elseif hasVisited("November 1665")>>[[Get back out there.->December 1665]]
<<elseif hasVisited("October 1665")>>[[Get back out there.->November 1665]]
<<elseif hasVisited("September 1665")>>[[Get back out there.->October 1665]]
<<elseif hasVisited("August 1665")>>[[Get back out there.->September 1665]]
<<elseif hasVisited("July 1665")>>[[Get back out there.->August 1665]]
<<elseif hasVisited("June 1665")>>[[Get back out there.->July 1665]]
<<elseif hasVisited("May 1665")>>[[Get back out there.->June 1665]]
<<elseif hasVisited("January 1665")>>[[Get back out there.->May 1665]]
<<elseif hasVisited("December 1664")>>[[Get back out there.->January 1665]]
<</if>>
<</nobr>>
<<widget "elderly">>
<<nobr>>
Send not to know for whom the church bells toll. They toll for you. Unfortunately your old age has caught up with you. You have managed not to die of a wide range of diseases and other ailments, but at long last you have died of natural causes.
<br><br>
<<if hasVisited("May 1666")>>
<<if $reputation lte 0>>You died with such a poor reputation that most of your neighbors didn't care. The rest of them probably cursed your name and hoped you were suffering in hell. Luckily,
<<else>>You died with a good enough reputation that your neighbors say prayers for your soul. Because of the plague ordinances, none of your neighbors could attend your funeral but
<<if $socio is "nobles">>as a member of the nobility, you were interred in a position of honor in a vault within your family's private chapel.
<<elseif $socio is "merchants">>you were rich enough to be buried within the walls of your <<defParish "parish">> churchyard. Your heirs, of course, paid extremely well for that privilege.
<<elseif $socio is "artisans">>your body was at least carefully wrapped in a burial shroud before being put into the communal plague pits, late at night with no one to witness your burial.
<<else>>your body was at least put into the communal plague pits, instead of being left out to rot.<</if>>
<</if>>
<<else>>
<<if $reputation gte 0>>
You died with a good enough reputation that your neighbors say prayers for your soul.
<<if $socio is "nobles">>As a member of the nobility, you were interred in a position of honor in a vault within your family's private chapel.
<<elseif $socio is "merchants">>You were rich enough to be buried within the walls of your <<defParish "parish">> churchyard. Your heirs, of course, paid extremely well for that privilege.
<<elseif $socio is "artisans">>Your body was carefully wrapped in a burial shroud and buried on the ground of your <<defParish "parish">> churchyard.
<<else>>Your body was buried in your <<defParish "parish">> churchyard.
<</if>>
<</if>>
<</if>>
<br><br>
<<if $religion is "Catholic">>As a God-fearing Catholic, you know you are destined to spend time in purgatory before you can ascend to heaven but you hope that will not take too long<<if $reputation lte 0>>, despite your poor reputation on earth.<</if>><<else>>As a good Protestant, you know that Christ the Redeemer has died for you and your admittance to heaven is guaranteed.<</if>><br><br>
[[At least you didn't die of plague->stats]]
<</nobr>>
<</widget>><<widget "runover">>
<<nobr>>
<<set $runover to random (0,5)>>
<<if $runover is 1>>
Send not to know for whom the church bells toll. They toll for you.
<br><br>
<<if passage() is "September 1666">>
<<if $location is "inside the City walls">>Early one Sunday morning, you wake to the frantic ringing of church bells. This isn't the ordinary <<defCallToService "call to service">>—<<if $religion is "member of the Church of England">>something you were looking forward to attending after you slept in<<else>>as if you'd ever attend a service in the Church of England!<</if>>—but rather a call to arms.
<br><br>
Unfortunately, there are dangers other than the fire. As you stumble through the streets to flee the conflagration, you are run over by a cart, an accident from which you will not recover.
<br><br>
<<else>>One Sunday morning, you awaken and getting ready for church when you look out the window and realize there is a great fire in the distance. After dressing, you go out to find a neighbor who tells you that over 300 houses have burnt down in the night, by <<defLondonBridge "London Bridge">>.
<br><br>
Unfortunately, there are dangers even outside the city walls. As you walk out to get a closer look at the conflagration, you are run over by a cart fleeing the flames, an accident from which you will not recover.
<</if>>
<<else>>
Unfortunately, begging in the street comes with risks in a bustling city like London, and you have been run over by a cart, an accident from which you will not recover.
<</if>>
<<if hasVisited("May 1666")>>
<<if $reputation lte 0>>You died with such a poor reputation that most of your neighbors didn't care. The rest of them probably cursed your name and hoped you were suffering in hell.
<<else>>You died with a good enough reputation that your neighbors say prayers for your soul. Because of the plague ordinances, none of your neighbors could attend your funeral but your body was at least put into the communal plague pits, instead of being left out to rot.
<</if>>
<<else>>
<<if $reputation gte 0>>
You died with a good enough reputation that your neighbors say prayers for your soul. Your body was buried in your <<defParish "parish">> churchyard.
<<else>>You died with such a poor reputation that most of your neighbors didn't care. The rest of them probably cursed your name and hoped you were suffering in hell.
<</if>>
<br><br>
<<if $religion is "Catholic">>As a God-fearing Catholic, you know you are destined to spend time in purgatory before you can ascend to heaven but you hope that will not take too long<<if $reputation lte 0>>, despite your poor reputation on earth.<</if>><<else>>As a good Protestant, you know that Christ the Redeemer has died for you and your admittance to heaven is guaranteed.
<</if>>
<</if>><br><br>
[[At least you didn't die of plague->stats]].
<<else>>
<<if passage() is "September 1666">>
<<if $location is "inside the City walls">>Early one Sunday morning, you wake to the frantic ringing of church bells. This isn't the ordinary <<defCallToService "call to service">>—<<if $religion is "member of the Church of England">>something you were looking forward to attending after you slept in<<else>>as if you'd ever attend a service in the Church of England!<</if>>—but rather a call to arms.
<br><br>
Unfortunately, there are dangers other than the fire. As you stumble through the streets to flee the conflagration, you are run over by a cart and suffer a serious injury.
<<else>>One Sunday morning, you awaken and getting ready for church when you look out the window and realize there is a great fire in the distance. After dressing, you go out to find a neighbor who tells you that over 300 houses have burnt down in the night, by <<defLondonBridge "London Bridge">>.
<br><br>
Unfortunately, there are dangers even outside the city walls. As you walk out to get a closer look at the conflagration, you are run over by a cart fleeing the flames and suffer a serious injury.
<</if>>
<br><br>
You thank God that you have survived his wrath! <<if $reputation lte 1>><<set $money -=1>> Unfortunately, your reputation is so low that your neighbors take no more pity on you and you earn very few spare coins [[while you recover.->healing]]<<else>><<set $money +=2>>Fortunately, your reputation is so high among your neighbors that the sight of you after your injury invokes great pity (and a few extra coins). Nevertheless, you are glad that [[you will soon heal->healing]].<</if>>
<<else>>
Alack! Begging in the streets in a city as bustling as London comes with its dangers. You have been run over by a cart and suffered a serious injury. <<if $reputation lte 1>>Unfortunately, your reputation is so low that your neighbors take no more pity on you and you earn very few spare coins while you recover. <<set $money -=1>><<else>><<set $money +=2>>Fortunately, your reputation is so high among your neighbors that the sight of you after your injury invokes great pity (and a few extra coins). Nevertheless, you are glad that you will soon heal.<</if>> You hear that in some areas of the city they are installing a new innovation–the sidewalk–which will help to keep people off the street and prevent more [[accidents like yours->healing]].
<</if>>
<</if>>
<</nobr>>
<</widget>><<widget "fever">>
<<nobr>>
<<if random(0,10) is 1>>Send not to know for whom the church bells toll. They toll for you. You have come down with a mysterious fever. <<if $reputation gt 0>>Despite the care of your friends and family,<<else>>Your reputation is so low that no one will lend you aid in your sickness and<</if>> you die.
<<if hasVisited("May 1666")>>
<<if $reputation lt 0>> You died with such a poor reputation that most of your neighbors didn't care. The rest of them probably cursed your name and hoped you were suffering in hell. Luckily,
<<else>> You died with a good enough reputation that your neighbors say prayers for your soul. Because of the plague ordinances, none of your neighbors could attend your funeral but
<<if $socio is "nobles">>as a member of the nobility, you were interred in a position of honor in a vault within your family's private chapel.
<<elseif $socio is "merchants">>you were rich enough to be buried within the walls of your <<defParish "parish">> churchyard. Your heirs, of course, paid extremely well for that privilege.
<<elseif $socio is "artisans">>your body was at least carefully wrapped in a burial shroud before being put into the communal plague pits, late at night with no one to witness your burial.
<<else>>your body was at least put into the communal plague pits, instead of being left out to rot.<</if>>
<</if>>
<<else>>
<<if $reputation gt 0>>
You died with a good enough reputation that your neighbors say prayers for your soul.
<<if $socio is "nobles">>As a member of the nobility, you were interred in a position of honor in a vault within your family's private chapel.
<<elseif $socio is "merchants">>You were rich enough to be buried within the walls of your <<defParish "parish">> churchyard. Your heirs, of course, paid extremely well for that privilege.
<<elseif $socio is "artisans">>Your body was carefully wrapped in a burial shroud and buried on the ground of your <<defParish "parish">> churchyard.
<<else>>Your body was buried in your <<defParish "parish">> churchyard.
<</if>>
<</if>>
<</if>>
<br><br>
<<if $religion is "Catholic">>As a God-fearing Catholic, you know you are destined to spend time in purgatory before you can ascend to heaven but you hope that will not take too long<<if $reputation lte 0>>, despite your poor reputation on earth.<</if>><<else>>As a good Protestant, you know that Christ the Redeemer has died for you and your admittance to heaven is guaranteed.<</if>><br><br>
[[At least you didn't die of plague->stats]]
<<else>>
<<set $money -=2>>Alack! You have come down with a mysterious fever.<<if $reputation gt 0>> Your reputation is high enough that your friends and family take diligent care of you in your sickness and<<else>> Your reputation is so low that no one lends you aid in your sickness but<</if>> you slowly [[recover.->healing]]
<br><br>
<</if>>
<</nobr>>
<</widget>><<nobr>>
<<set $death to random(1,10)>>
<<set $discovery to random(1,10)>>
<<if $discovery is 1>>
<<if $age is "child">>When you show up to board your ship, the captain instantly realizes you are too young to volunteer. You are scolded and [[sent home to your parents->storyline-return again][$reputation to Math.clamp($reputation - 1, 0, 10)]]
<<elseif $age is "elderly adult">>When you show up to board your ship, the captain instantly realizes you are too old to volunteer. He thanks you for volunteering but firmly refuses to let you board and [[sails away without you->storyline-return again][$reputation to Math.clamp($reputation + 1, 0, 10)]]
<<elseif $gender is "female">>When you show up to board your ship, the captain instantly realizes you are female and has you cast back onto the dock while everyone [[stops to watch and gossip about you->storyline-return again][$reputation to Math.clamp($reputation - 3, 0, 10)]].
<</if>>
<<else>>
<<if $death is 1>>
Send not for whom the bell tolls, it tolls for you. Unfortunately, you die in the fighting when <<set $type to random(1,5)>><<if $type is 1>>you are knocked off deck and into the sea where you drown<<elseif $type is 2>>a cannon ball splinters the deck beneath your feet and the shrapnel cuts open your neck<<elseif $type is 3>>your ship is boarded and a Dutch soldier stabs you in the stomach<<elseif $type is 4>>a keg of gunpowder explodes next to you<<else>>a cannon splits the mast of your ship and the falling rigging crushes you<</if>>.
<<if $gender is "female">>At your death, your crewmates discovered that you were a woman.<</if>>
<<if $reputation lte 0>>You died with such a poor reputation that most of your fellow sailors didn't care. The rest of them probably cursed your name and hoped you were suffering in hell.
<<else>>You died with a good enough reputation that your fellow sailors say prayers for your soul.
<</if>>
But regardless, your body meets the same fate of the hundreds of other soldiers who died in this battle. Your body is wrapped in your hammock and dropped over board.
<<if $religion is "Catholic">>As a God-fearing Catholic, you know you are destined to spend time in purgatory before you can ascend to heaven but you hope that will not take too long<<if $reputation lte 0>>, despite your poor reputation on earth.<</if>><<else>>As a good Protestant, you know that Christ the Redeemer has died for you and your admittance to heaven is guaranteed.<</if>><br><br>
[[At least you didn't die of plague->stats]].
<<elseif $death is 2>>
Unfortunately, you are taken prisoner and spend the rest of the war in a Dutch prison. It's not pleasant, but [[at least you didn't die of plague->stats]].
<<elseif $death is 3 or 4>>
You serve in the Navy through the war against the Dutch, leaving service in 1667. Your ship saw a lot of action and you are left <<set $disability to random(1,5)>><<if $disability is 1>>with a disfiguring scar across your back which pains you occasionally for the rest of your life<<elseif $disability is 2>>with a gangrenous leg that will later need to be amputated<<elseif $disability is 3>>without the use of your right eye, which was lost to a musket ball<<elseif $disability is 4>>without your right arm, which was crushed by falling rigging and had to be amputated<<else>>without your left hand, which was cut off by a Dutch soldier in battle.<</if>>. <<if $socio is "day labourers" or "artisans" or "servants">>Your disability will affect your ability to work when you return home<<elseif $socio is "beggars">>your disability might make your neighbors pity you and earn you more charity when you return home<<else>>It's not pleasant<</if>>, but [[at least you didn't die of plague->stats]].
<<else>>
You serve in the Navy through the war against the Dutch, leaving service in 1667. It was hard work, and not rewarding, but [[at least you didn't die of plague->stats]].
<</if>>
<</if>>
<</nobr>>
<<widget "apprentice">>
<<nobr>>
Despite everything, business continues. A friend from the countryside writes to you<<if $age is "child" or $age is "adolescent" or "young adult">>r family<</if>> and asks if you will take in their son as your apprentice.
<br><br>
<span id="apprentice">Will you accept him into your home? <<link "Yes">><<replace "#apprentice">>You accept him into your home. It's another mouth to feed, but you could use the help and are glad to [[do a friend a favor->storyline-return again]].<<addApprenticeNPC>><<set $apprentice to 0>><</replace>><</link>> | <<link "No">><<replace "#apprentice">>You don't accept him into your home. Things are too hard right now. You can't afford another mouth to feed and you don't have the time to teach someone else [[your trade->storyline-return again]].<</replace>><</link>></span>
<</nobr>>
<</widget>>
<<if hasVisited("November 1666")>>[[Continue.->December 1666]]
<<elseif hasVisited("October 1666")>>[[Continue.->November 1666]]
<<elseif hasVisited("September 1666")>>[[Continue.->October 1666]]
<<elseif hasVisited("August 1666")>>[[Continue.->September 1666]]
<<elseif hasVisited("July 1666")>>[[Continue.->August 1666]]
<<elseif hasVisited("June 1666")>>[[Continue.->July 1666]]
<<elseif hasVisited("May 1666")>>[[Continue.->June 1666]]
<<elseif hasVisited("April 1666")>>[[Continue.->May 1666]]
<<elseif hasVisited("March 1666")>>[[Continue.->April 1666]]
<<elseif hasVisited("February 1666")>>[[Continue.->March 1666]]
<<elseif hasVisited("January 1666")>>[[Continue.->February 1666]]
<<elseif hasVisited("December 1665")>>[[Continue.->January 1666]]
<<elseif hasVisited("November 1665")>>[[Continue.->December 1665]]
<<elseif hasVisited("October 1665")>>[[Continue.->November 1665]]
<<elseif hasVisited("September 1665")>>[[Continue.->October 1665]]
<<elseif hasVisited("August 1665")>>[[Continue.->September 1665]]
<<elseif hasVisited("July 1665")>>[[Continue.->August 1665]]
<<elseif hasVisited("June 1665")>>[[Continue.->July 1665]]
<<elseif hasVisited("May 1665")>>[[Continue.->June 1665]]
<<elseif hasVisited("January 1665")>>[[Continue.->May 1665]]
<<elseif hasVisited("December 1664")>>[[Continue.->January 1665]]
<</if>><<widget "worker-kid">>
<<nobr>>
Despite everything, you <<if $socio is "day labourers">>keep finding opportunities for work<<else>>know you are lucky to be steadily employed as a servant<</if>>. A friend from the countryside writes to you<<if $age is "child" or $age is "adolescent">>r family<</if>> and asks if you will take in their child so they can also seek work in London.
<br><br>
<span id="worker">Will you accept them into your home? <<link "Yes">><<replace "#worker">>You accept them into your home. It's another mouth to feed, but you are glad to [[do a friend a favor->storyline-return again]].<<addWorkerKidNPC>><<set $worker to 0>><</replace>><</link>> | <<link "No">><<replace "#worker">>You don't accept them into your home. Things are too hard right now. You can't afford another mouth to feed and you don't have the time to teach someone else [[the lay of the city->storyline-return again]].<</replace>><</link>></span>
<</nobr>>
<</widget>><<widget "ward">>
<<nobr>>
Despite everything, court life proceeds as usual. A friend living the countryside writes to you<<if $age is "child" or $age is "adolescent" or "young adult">>r family<</if>> and asks if you will take in their child as your ward and help them get a place at court - and maybe even an advantageous marriage.
<br><br>
<span id="ward">Will you accept them into your home? <<link "Yes">><<replace "#ward">>You accept them into your home. It will cost a small fortune to outfit a newcomer to court and provide the king the necessary gifts but you will control their purse strings and are glad to [[do a friend a favor->storyline-return again]].<<addWardNPC>><<set $ward to 0>><<set $money -=5600>><</replace>><</link>> | <<link "No">><<replace "#ward">>You don't accept them into your home. Your own affairs are not quite in order and you need to focus on setting them right before adding another person to the household. You don't have the time to teach someone else [[the ways of court->storyline-return again]].<</replace>><</link>></span>
<</nobr>>
<</widget>>
<<widget "marriage-market">>
<<nobr>>
As an unmarried adult, you may wish to get married. Marriage brings with it lots of advantages, including a life partner, social connections through their family, (probably) children, and <<if $socio is "nobles" or $socio is "merchants">>wealth from your <<if $gender is "female">>husband's income<<else>>wife's dowry<</if>><<else>>additional income that will help protect you from <<if $socio is "beggars">>starvation<<else>>poverty<</if>><</if>>.<<if $gender is "female">> The downside is all your property will become your husband's and you will be legally dependent on him until he dies... or you do.<</if>>
<br><br>
<span id="marriage">You are
<ul>
<li><<link "looking to be married soon">><<set $seeking to 1>><<replace "#marriage">>You are looking to be married soon and will be seeking out a spouse.
<</replace>><</link>></li>
<li><<link "are content to remain single for now">><<set $seeking to 0>><<replace "#marriage">>You are content to remain single for now.
<</replace>><</link>></li></ul>
</span>
<</nobr>>
<</widget>><<widget "wedding">>
<<nobr>>
You have found a <<if $gender is "female">>husband<<elseif $gender is "male">>wife<<else>>spouse<</if>>!
<span id="format">Do you want to
<ul>
<li><<link "be married formally">><<set $money -=30>><<set $reputation +=2>><<unset $seeking>><<unset $wedding>><<set $relationship to "married">><<addPartnerNPC>><<replace "#format">>For the three weeks before the wedding, your parish priest reads the banns and then soon you are married in a nice ceremony.
After the dancing and feasting, you go home with your new spouse [[at your side.->storyline-return again]]<</replace>><</link>></li>
<li><<link "elope">><<set $reputation -=1>><<unset $seeking>><<unset $wedding>><<set $plagueInfection to random(1,30)>><<set $relationship to "married">><<addPartnerNPC>><<replace "#format">>Rather than going through the fuss of a formal wedding, you elope down to the <<if random(1,2) is 1>>debtors' prison<<else>>Fleet prison<</if>> where you find a priest willing to marry you without asking [[too many questions.->storyline-return again]]<</replace>><</link>></li></ul></span>
<</nobr>>
<</widget>>/* this widget seems to never be called
<<widget "seeking">>
<<nobr>>
<<wedding>>
<</nobr>>
<</widget>>
*/
<<widget "return1">>
<<nobr>>
<<if hasVisited("November 1666")>>[[Return from the country.->December 1666]]
<<elseif hasVisited("October 1666")>>[[Return from the country.->November 1666]]
<<elseif hasVisited("September 1666")>>[[Return from the country.->October 1666]]
<<elseif hasVisited("August 1666")>>[[Return from the country.->September 1666]]
<<elseif hasVisited("July 1666")>>[[Return from the country.->August 1666]]
<<elseif hasVisited("June 1666")>>[[Return from the country.->July 1666]]
<<elseif hasVisited("May 1666")>>[[Return from the country.->June 1666]]
<<elseif hasVisited("April 1666")>>[[Return from the country.->May 1666]]
<<elseif hasVisited("March 1666")>>[[Return from the country.->April 1666]]
<<elseif hasVisited("February 1666")>>[[Return from the country.->March 1666]]
<<elseif hasVisited("January 1666")>>[[Return from the country.->February 1666]]
<<elseif hasVisited("December 1665")>>[[Return from the country.->January 1666]]
<<elseif hasVisited("November 1665")>>[[Return from the country.->December 1665]]
<<elseif hasVisited("October 1665")>>[[Return from the country.->November 1665]]
<<elseif hasVisited("September 1665")>>[[Return from the country.->October 1665]]
<<elseif hasVisited("August 1665")>>[[Return from the country.->September 1665]]
<<elseif hasVisited("July 1665")>>[[Return from the country.->August 1665]]
<<elseif hasVisited("June 1665")>>[[Return from the country.->July 1665]]
<<elseif hasVisited("May 1665")>>[[Return from the country.->June 1665]]
<<elseif hasVisited("January 1665")>>[[Return from the country.->May 1665]]
<<elseif hasVisited("December 1664")>>[[Return from the country.->January 1665]]
<</if>>
<</nobr>>
<</widget>>
<<widget "return2">>
<<nobr>>
<<if hasVisited("November 1666")>>[[Return from the country.->December 1666]]
<<elseif hasVisited("October 1666")>>[[Return from the country.->December 1666]]
<<elseif hasVisited("September 1666")>>[[Return from the country.->November 1666]]
<<elseif hasVisited("August 1666")>>[[Return from the country.->October 1666]]
<<elseif hasVisited("July 1666")>>[[Return from the country.->September 1666]]
<<elseif hasVisited("June 1666")>>[[Return from the country.->August 1666]]
<<elseif hasVisited("May 1666")>>[[Return from the country.->July 1666]]
<<elseif hasVisited("April 1666")>>[[Return from the country.->June 1666]]
<<elseif hasVisited("March 1666")>>[[Return from the country.->May 1666]]
<<elseif hasVisited("February 1666")>>[[Return from the country.->April 1666]]
<<elseif hasVisited("January 1666")>>[[Return from the country.->March 1666]]
<<elseif hasVisited("December 1665")>>[[Return from the country.->February 1666]]
<<elseif hasVisited("November 1665")>>[[Return from the country.->January 1666]]
<<elseif hasVisited("October 1665")>>[[Return from the country.->December 1665]]
<<elseif hasVisited("September 1665")>>[[Return from the country.->November 1665]]
<<elseif hasVisited("August 1665")>>[[Return from the country.->October 1665]]
<<elseif hasVisited("July 1665")>>[[Return from the country.->September 1665]]
<<elseif hasVisited("June 1665")>>[[Return from the country.->August 1665]]
<<elseif hasVisited("May 1665")>>[[Return from the country.->July 1665]]
<<elseif hasVisited("January 1665")>>[[Return from the country.->May 1665]]
<<elseif hasVisited("December 1664")>>[[Return from the country.->January 1665]]
<</if>>
<</nobr>>
<</widget>>
<<widget "return3">>
<<nobr>>
<<if hasVisited("November 1666")>>[[Return from the country.->December 1666]]
<<elseif hasVisited("October 1666")>>[[Return from the country.->December 1666]]
<<elseif hasVisited("September 1666")>>[[Return from the country.->December 1666]]
<<elseif hasVisited("August 1666")>>[[Return from the country.->November 1666]]
<<elseif hasVisited("July 1666")>>[[Return from the country.->October 1666]]
<<elseif hasVisited("June 1666")>>[[Return from the country.->September 1666]]
<<elseif hasVisited("May 1666")>>[[Return from the country.->August 1666]]
<<elseif hasVisited("April 1666")>>[[Return from the country.->July 1666]]
<<elseif hasVisited("March 1666")>>[[Return from the country.->June 1666]]
<<elseif hasVisited("February 1666")>>[[Return from the country.->May 1666]]
<<elseif hasVisited("January 1666")>>[[Return from the country.->April 1666]]
<<elseif hasVisited("December 1665")>>[[Return from the country.->March 1666]]
<<elseif hasVisited("November 1665")>>[[Return from the country.->February 1666]]
<<elseif hasVisited("October 1665")>>[[Return from the country.->January 1666]]
<<elseif hasVisited("September 1665")>>[[Return from the country.->December 1665]]
<<elseif hasVisited("August 1665")>>[[Return from the country.->November 1665]]
<<elseif hasVisited("July 1665")>>[[Return from the country.->October 1665]]
<<elseif hasVisited("June 1665")>>[[Return from the country.->September 1665]]
<<elseif hasVisited("May 1665")>>[[Return from the country.->August 1665]]
<<elseif hasVisited("January 1665")>>[[Return from the country.->May 1665]]
<<elseif hasVisited("December 1664")>>[[Return from the country.->January 1665]]
<</if>>
<</nobr>>
<</widget>><<widget "pregnant">>
<<nobr>>
<<set $pregnant to 4>>
You have realized you are pregnant! You look forward to adding a new member to the family<<if $socio is "beggars" or $socio is "day labourers">> even if it means another mouth to feed<</if>>. In a few months you'll have a new baby, but until then life continues [[as usual.->healing]]
<</nobr>>
<</widget>><<widget "birth">>
<<nobr>>
<<if random(1,30) is 1>>Send not to know for whom the church bells toll. They toll for you. You died in childbirth.
<<if $reputation lt 0>> You died with such a poor reputation that most of your neighbors didn't care. The rest of them probably cursed your name and hoped you were suffering in hell. Luckily,
<<else>> You died with a good enough reputation that your neighbors say prayers for your soul. Because of the plague ordinances, none of your neighbors could attend your funeral but
<<if $socio is "nobles">>as a member of the nobility, you were interred in a position of honor in a vault within your family's private chapel.
<<elseif $socio is "merchants">>you were rich enough to be buried within the walls of your <<defParish "parish">> churchyard. Your heirs, of course, paid extremely well for that privilege.
<<elseif $socio is "artisans">>your body was at least carefully wrapped in a burial shroud before being put into the communal plague pits, late at night with no one to witness your burial.
<<else>>your body was at least put into the communal plague pits, instead of being left out to rot.<</if>>
<</if>>
<<if $religion is "Catholic">>As a God-fearing Catholic, you know you are destined to spend time in purgatory before you can ascend to heaven but you hope that will not take too long<<if $reputation lte 0>>, despite your poor reputation on earth.<</if>><<else>>As a good Protestant, you know that Christ the Redeemer has died for you and your admittance to heaven is guaranteed.<</if>><br><br>
[[At least you didn't die of plague->stats]]
<<else>>
<<if random(1,4) is 1>>Unfortunately, your baby was [[stillborn.->healing]]
<<else>>
<<addNewbornNPC>>You have a new [[baby!->healing]]
<</if>>
<</if>>
<</nobr>>
<</widget>>
<<widget "miscarriage">>
<<nobr>>
<<unset $pregnant>><<unset $miscarriage>>
Unfortunately, you have suffered a miscarriage and are no [[longer pregnant.->healing]]
<</nobr>>
<</widget>><<widget "random-events">><<nobr>>
<<set _randomEventFired to true>>
/* Pregnancy tracking for married women of childbearing age */
<<if $gender is "female">>
<<if $age is "young adult" or $age is "middle-aged adult">>
<<if $relationship is "married">>
<<if $pregnant is 0>>
<<set _tempPregnant to random(1,10)>>
<<if _tempPregnant is 1>>
<<set $pregnant to 1>>
<</if>>
<<else>>
<<set $pregnant +=1>>
<<set $miscarriage to random(1,10)>>
<</if>>
<</if>>
<</if>>
<</if>>
/* Priority cascade: first matching event fires */
/* Plague checks */
<<if $plagueInfection is 1>>
<<if $pregnant is 4>>
<<set $pregnant to 0>> /* silent miscarriage */
<</if>>
<<sickPC>>
<<elseif _infectedFamily.length gte 1>>
<<if $pregnant is 4>>
<<set $pregnant to 0>> /* silent miscarriage */
<</if>>
<<sickFam>>
<<else>> /* Begin by Initializing Randomizers */
<<set $elderly to random(1,30)>>
<<set $wedding to random(1,10)>>
<<set $fever to random(1,20)>>
<<if $age is "elderly adult" and $elderly is 1>> /* Old Age */
<<elderly>>
<<elseif $seeking is 1 and $wedding is 1>>
<<wedding>>
<<elseif $pregnant is 4>> /* Pregnancy and Marriage */
<<pregnant>>
<<elseif $pregnant isnot 3 and $pregnant isnot 2 and $pregnant isnot 1 and $pregnant isnot 0 and $miscarriage is 1>>
<<miscarriage>>
<<elseif $pregnant is 9>>
<<birth>>
<<elseif $fever is 1>> /* Random Fevers and Socio dependent events */
<<fever>>
<<elseif $socio is "nobles">>
<<set $steward to random(1,40)>>
<<if $ward isnot 0>>
<<set $ward to random(1,10)>>
<</if>>
<<if $steward is 1>>
<<steward>>
<<elseif $ward is 1 and hasVisited("March 1666")>> /* household additions only occur after height of plague */
<<ward>>
<<else>>
<<set _randomEventFired to false>>
<</if>>
<<elseif $socio is "day labourers" or $socio is "servants">>
<<set $accident to random(1,20)>>
<<if $worker isnot 0>>
<<set $worker to random(1,10)>>
<</if>>
<<if $accident is 1>>
<<accident>>
<<elseif $worker is 1 and hasVisited("March 1666")>>
<<worker-kid>>
<<else>>
<<set _randomEventFired to false>>
<</if>>
<<elseif $socio is "beggars">>
<<set $runover to random(1,30)>>
<<if $runover is 1>>
<<runover>>
<<else>>
<<set _randomEventFired to false>>
<</if>>
<<elseif $socio is "merchants" or $socio is "artisans">>
<<if $apprentice isnot 0>>
<<set $apprentice to random(1,10)>>
<<if $apprentice is 1 and hasVisited("March 1666")>>
<<apprentice>>
<<else>>
<<set _randomEventFired to false>>
<</if>>
<</if>>
<<else>> /* it should not be possible to reach this point but putting in as safeguard */
<<set _randomEventFired to false>>
<</if>>
<</if>>
<</nobr>>
<</widget>>/* all widgets generated via Claude should be temporarily placed here then manually moved to new locations as needed */
/* Orphan-check widget: called at the end of plague/sickness/quarantine sequences.
If the player is a child or adolescent and no living adult (young adult,
middle-aged adult, or elderly adult) remains in $NPCs, regenerate their
household according to their socio status. */
<<widget "orphan-check">><<nobr>>
<<if $age is "child" or $age is "adolescent">>
<<set _hasLivingAdult to false>>
<<for _oi = 0; _oi < $NPCs.length; _oi++>>
<<if ($NPCs[_oi].age is "young adult" or $NPCs[_oi].age is "middle-aged adult" or $NPCs[_oi].age is "elderly adult") and $NPCs[_oi].health isnot "deceased">>
<<set _hasLivingAdult to true>>
<</if>>
<</for>>
<<if not _hasLivingAdult>>
<<if $socio is "servants">>
/* Servant: find a new master's household */
<<set $NPCs to []>>
<<set $NPCsMaster to []>>
<<addMasterHousehold>>
<<set $NPCs to $NPCsMaster.slice()>>
<<set $NPCsMaster to []>>
<<NPCpronouns>>
<br><br>Because your master died, you have found a new position in another household.<br><br>
<<elseif $socio is "beggars" or $socio is "day labourers">>
/* Beggar/Day Labourer: become a servant in an artisan household */
/* Move surviving child/adolescent NPCs to extended family */
<<set _survivingKids to []>>
<<for _oi = 0; _oi < $NPCs.length; _oi++>>
<<if ($NPCs[_oi].age is "child" or $NPCs[_oi].age is "adolescent") and $NPCs[_oi].health isnot "deceased">>
<<set _survivingKids.push($NPCs[_oi])>>
<</if>>
<</for>>
<<set $NPCsExtended to $NPCsExtended.concat(_survivingKids)>>
<<set $NPCs to []>>
<<set $NPCsMaster to []>>
<<addMasterHousehold>>
<<set $NPCs to $NPCsMaster.slice()>>
<<set $NPCsMaster to []>>
<<NPCpronouns>>
<<set $socio to "servants">> /* set last so can differentiate in addMasterHousehold widget */
<<set _MasterTrade to either("baker", "chandler", "grocer", "tailor", "weaver")>>
<br><br>Because you have been orphaned, your Parish Overseers of the Poor have found you a position as a servant in a local _MasterTrade's household.<br><br>
<<else>>
/* Artisan/Merchant/Noble: move to new household of same socio status */
<<set _newGuardian to either("uncle", "widowed aunt", "cousin", "family friend")>>
/* Collect surviving child/adolescent NPCs from original household */
<<set _survivingKids to []>>
<<for _oi = 0; _oi < $NPCs.length; _oi++>>
<<if ($NPCs[_oi].age is "child" or $NPCs[_oi].age is "adolescent") and $NPCs[_oi].health isnot "deceased">>
<<set _survivingKids.push($NPCs[_oi])>>
<</if>>
<</for>>
<<set $NPCs to []>>
/* Build the new household starting with the guardian and their family */
<<if _newGuardian isnot "widowed aunt">>
<<set _newGuardianAgenum to random(30,76)>>
<<if _newGuardianAgenum gte 50>><<set _newGuardianAge to "elderly adult">>
<<else>><<set _newGuardianAge to "middle-aged adult">>
<</if>>
<<if _newGuardian is "uncle">>
<<set $NPCs.push({name: weightedEither($mNames), agenum: _newGuardianAgenum, age: _newGuardianAge, relationship: "uncle", health: "healthy", location: $location})>>
<<elseif _newGuardian is "cousin">>
<<set $NPCs.push({name: weightedEither($mNames), agenum: _newGuardianAgenum, age: _newGuardianAge, relationship: "cousin", health: "healthy", location: $location})>>
<<else>>
<<set $NPCs.push({name: weightedEither($mNames), agenum: _newGuardianAgenum, age: _newGuardianAge, relationship: "guardian", health: "healthy", location: $location})>>
<</if>>
<<if random (1,2) eq 1>>
<<set _fRel to "aunt">>
<<set $minAge to _newGuardianAgenum-20>>
<<if $minAge lte 15>>
<<set $minAge to 16>>
<</if>>
<<set $maxAge to _newGuardianAgenum+30>>
<<if $maxAge gte 101>>
<<set $maxAge to 100>>
<</if>>
<<setAge>>
<<if _newGuardian is "uncle">>
<<set $NPCs.push({name: weightedEither($fNames), agenum: $NPCAgeNum, age: $NPCAge, relationship: "aunt", health: "healthy", location: $location})>>
<<elseif _newGuardian is "cousin">>
<<set $NPCs.push({name: weightedEither($fNames), agenum: $NPCAgeNum, age: $NPCAge, relationship: "cousin's wife", health: "healthy", location: $location})>>
<<else>>
<<set $NPCs.push({name: weightedEither($fNames), agenum: $NPCAgeNum, age: $NPCAge, relationship: "guardian's wife", health: "healthy", location: $location})>>
<</if>>
<<set _auntAgenum to $NPCAgeNum>>
<<else>>
<<set _auntAgenum to _newGuardianAgenum>>
<</if>>
<<else>>
<<set _auntAgenum to random(30,76)>>
<<if _auntAgenum gte 50>>
<<set _newGuardianAge to "elderly adult">>
<<else>><<set _newGuardianAge to "middle-aged adult">>
<</if>>
<<set $NPCs.push({name: weightedEither($fNames), agenum: _auntAgenum, age: _newGuardianAge, relationship: "widowed aunt", health: "healthy", location: $location})>>
<</if>>
<<if $socio is "artisans">>
<<set _newHHKids to random(1,2)>>
<<elseif $socio is "merchants">>
<<set _newHHKids to random(1,4)>>
<<else>>
<<set _newHHKids to random(2,6)>>
<</if>>
<<for _k to 0; _k lt _newHHKids; _k++>>
<<set $minAge to _auntAgenum-40>>
<<if $minAge lte 0>>
<<set $minAge to 0>>
<</if>>
<<set $maxAge to _auntAgenum-20>>
<<setAge>>
<<if _newGuardian is "family friend">>
<<set $mkidRel to "friend's son">>
<<set $fkidRel to "friend's daughter">>
<<elseif _newGuardian is "cousin">>
<<set $mkidRel to "cousin's son">>
<<set $fkidRel to "cousin's daughter">>
<<else>>
<<set $mkidRel to "cousin">>
<<set $fkidRel to "cousin">>
<</if>>
<<if random(1,2) is 1>>
<<set $NPCs.push({name: weightedEither($fNames), agenum: $NPCAgeNum, age: $NPCAge, relationship: $fkidRel, health: "healthy", location: $location})>>
<<else>>
<<set $NPCs.push({name: weightedEither($mNames), agenum: $NPCAgeNum, age: $NPCAge, relationship: $mkidRel, health: "healthy", location: $location})>>
<</if>>
<</for>>
/* Move surviving child/adolescent NPCs from original household into new household */
<<set $NPCs to $NPCs.concat(_survivingKids)>>
<<NPCpronouns>>
<br><br>Because you have been orphaned, you have moved in with <<if _newGuardian is "family friend">>a family friend<<else>>your _newGuardian<</if>>.<br><br>
<</if>>
<</if>>
<</if>>
<</nobr>><</widget>><<widget "june-1665-helper">>
<<nobr>>
The <<defPlague "plague">> grows worse and the streets are soon filled with coaches and wagons full of people fleeing with their goods to the countryside. The <<defQueenMother "Queen Mother">> <<defHenriettaMaria "Henrietta Maria">> moves back to France<<if $religion is "Catholic">>, much to your dismay, and that of your fellow Catholics who flock to her chapel each week<<else>>, much to your relief, and that of all your fellow God-fearing <<defProtestants "Protestants">><</if>>. On June 29th, the King packs up his entire <<defHousehold "household">> in 148 carriages and moves 12 miles away, to his palace at <<defHamptonCourt "Hampton Court">>.
<br><br>
<img src="https://upload.wikimedia.org/wikipedia/commons/4/41/Wilson_%22The_plague...%22%3B_people_fleeing_from_plague_Wellcome_L0016623.jpg" width="100%">
//Runaways fleeing from the plague, a woodcut from 'A Looking-glasse for City and Countrey', printed by H. Gosson in 1630 and sold by E. Wright, c. 1630. Wellcome Images//
<br><br>
<<if $location is "inside the City walls">> There are still no plague cases in your <<defParish "parish">>, but everyone knows that it is only a matter of time
/* Beggars */
<<if $socio is "beggars">> and your neighbors are no longer willing to give you food or money when you come begging to their doors.<br>
<<highway>>
/* Day Labourers, Artisans, Merchants */
<<else>>
<<if $socio is "day labourers" or $socio is "artisans" or $socio is "merchants">>. You<<if $age is "child" or $age is "adolescent">>r family<</if>> will soon need to decide if you want to flee<<if $gender isnot "female">> or at least send the rest of your household away<</if>> before things get worse.
/* Servants */
<<elseif $socio is "servants">>. You anxiously await your master's decision about whether the household will flee or stay.
/* Nobles */
<<elseif $socio is "nobles">>. Unfortunately, you are not important enough to merit lodgings at <<defHamptonCourt "Hampton Court">> and the surrounding village is already full to bursting. You<<if $age is "child" or $age is "adolescent">>r family<</if>> will soon need to decide if it's worth the risk of staying in London, near enough to visit the Court regularly, or if you <<if $gender isnot "female">>or your household<</if>>should flee before things get worse.
<</if>><br>
[[Continue to July 1665->July 1665]]
<</if>>
/* If not in city walls or western suburbs */
<<elseif $location isnot "in another part of the western suburbs">>[[Worse, the first case of plague has appeared in your parish.->First Plague Day]]
<</if>>
/* If location is western suburbs */
<<if $location is "in another part of the western suburbs">>
<<if $socio is "beggars">>
<<if $role is "corpsebearer" or $role is "searcher" or $role is "nurse">>
<<plague-work>>
<br><br>Do you:
<ul><li>
<<if _fumes gt 0>>
<<if random(1,6) is 1>>[[swallow your fears and go to do your Christian duty.->July 1665][$plagueInfection to 1]]<<else>>[[swallow your fears and go to do your Christian duty.->July 1665]]<</if>>
<<else>>
<<if random(1,3) eq 1>>[[swallow your fears and go to do your Christian duty.->July 1665][$plagueInfection to 1]]<<else>>[[swallow your fears and go to do your Christian duty.->July 1665]]<</if>>
<</if>></li>
<li>[[refuse to do as you've been tasked.->work-refusal][$reputation to 0]]</li>
</ul>
<<else>>No one has any charity right now for a healthy beggar, but somehow you manage to scrape together enough food to last you to [[July 1665]].
<</if>>
<<elseif $socio is "day labourers">>
<<if $role is "corpsebearer" or $role is "searcher" or $role is "nurse">>
<<plague-work>>
<br><br>Do you:
<ul><li>
<<if _fumes gt 0>>
<<if random(1,6) is 1>>[[swallow your fears and go to do your Christian duty.->July 1665][$plagueInfection to 1]]<<else>>[[swallow your fears and go to do your Christian duty->July 1665]]<</if>>
<<else>>
<<if random(1,3) is 1>>[[swallow your fears and go to do your Christian duty.->July 1665][$plagueInfection to 1]]<<else>>[[swallow your fears and go to do your Christian duty->July 1665]] <</if>>
<</if>></li>
<li>[[decide to quit and look for other work.->July 1665][$reputation to Math.clamp($reputation - 3, 0, 10); $role to "quit"]]</li>
</ul>
<<else>>So many people are fleeing the city, there's plenty of work hauling their belongings to and fro... for now anyway. It's enough to get you through to [[July 1665]].
<</if>>
<<elseif $socio is "servants">><br>
/* NTS: include text about option to flee? */
<<late-departure>>
Otherwise, you can [[remain in the city with your entire household.->July 1665]]<br><br>
/* Artisans */
<<elseif $socio is "artisans">><br>
<<late-departure>>
Otherwise, you can [[remain in the city with your entire household.->July 1665]]<br><br>
/* Merchants */
<<elseif $socio is "merchants">>
<<late-departure>>
Otherwise, you can [[remain in the city with your entire household.->July 1665]]<br><br>
/* Nobles */
<<elseif $socio is "nobles">>Do you:
<<late-departure>>
Otherwise, you can [[remain in the city with your entire household.->July 1665]]<br><br>
<</if>>
<</if>>
<</nobr>>
<</widget>>