:: Backwards Compatibility [nobr]

<<set $nextButton to "Continue", $nextLink to "Main", $returnTo to "Main">>

<<if ndef $summaryStats>>
	<<set $summaryStats = 0>>
<</if>>
<<if ndef $positionMainLinks>>
	<<set $positionMainLinks to -1>>
<</if>>
<<if ndef $seeImages>>
	<<set $seeImages = 0>>
<</if>>
<<if ndef $imageChoice>>
	<<set $imageChoice = 0>>
<</if>>
<<if ndef $seeMainFetishes>>
	<<set $seeMainFetishes = 0>>
<</if>>
<<if ndef $seeSummaryImages>>
	<<set $seeSummaryImages to 1>>
<</if>>
<<if ndef $universalRulesBirthing>>
	<<set $universalRulesBirthing = 0>>
<</if>>
<<if ndef $HGSeverity>>
	<<set $HGSeverity = 0>>
<</if>>
<<if def $recruiters>>
	<<unset $recruiters>>
<</if>>
<<if ndef $foodCost>>
	<<set $foodCost to 25>>
<</if>>
<<if ndef $fixedNationality>>
	<<set $fixedNationality = 0>>
<</if>>
<<if ndef $fixedRace>>
	<<set $fixedRace = 0>>
<</if>>

<<if ndef $RulesID>>
	<<set $RulesID to 3>>
	<<include "Init Rules">>
<<else>>
	<<for _i to 0; _i < $defaultRules.length; _i++>>
		<<if ndef $defaultRules[_i].standardReward>>
			<<set $defaultRules[_i].standardReward to "no default setting">>
		<</if>>
		<<if ndef $defaultRules[_i].standardPunishment>>
			<<set $defaultRules[_i].standardPunishment to "no default setting">>
		<</if>>
		<<if ndef $defaultRules[_i].aVirginAccessory>>
			<<set $defaultRules[_i].aVirginAccessory to "no default setting">>
		<</if>>
		<<if ndef $defaultRules[_i].aVirginDickAccessory>>
			<<set $defaultRules[_i].aVirginDickAccessory to "no default setting">>
		<</if>>
		<<if ndef $defaultRules[_i].aVirginButtplug>>
			<<set $defaultRules[_i].aVirginButtplug to "no default setting">>
		<</if>>
		<<if ndef $defaultRules[_i].surgery>>
			<<set $defaultRules[_i].surgery to {lactation: "no default setting", cosmetic: 0, accent: "no default setting", shoulders: "no default setting", shouldersImplant: "no default setting", boobs: "no default setting", hips: "no default setting", hipsImplant: "no default setting", butt: "no default setting", faceShape: "no default setting", lips: "no default setting", holes: 0}>>
		<</if>>
		<<if ndef $defaultRules[_i].dietMilk>>
			<<set $defaultRules[_i].dietMilk = 0>>
		<</if>>
		<<if ndef $defaultRules[_i].dietCum>>
			<<set $defaultRules[_i].dietCum = 0>>
		<</if>>
		<<if ndef $defaultRules[_i].clitSettingXY>>
			<<set $defaultRules[_i].clitSettingXY = "no default setting">>
		<</if>>
		<<if ndef $defaultRules[_i].clitSettingXX>>
			<<set $defaultRules[_i].clitSettingXX = "no default setting">>
		<</if>>
		<<if ndef $defaultRules[_i].clitSettingEnergy>>
			<<set $defaultRules[_i].clitSettingEnergy = "no default setting">>
		<</if>>
		<<switch $defaultRules[_i].clitSetting>>
		<<case "all">>
			<<set $defaultRules[_i].clitSetting = "no default setting", $defaultRules[_i].clitSettingXY = 100, $defaultRules[_i].clitSettingXX = 100, $defaultRules[_i].clitSettingEnergy = 100>>
		<<case "none">>
			<<set $defaultRules[_i].clitSetting = "no default setting", $defaultRules[_i].clitSettingXY = 0, $defaultRules[_i].clitSettingXX = 0, $defaultRules[_i].clitSettingEnergy = 0>>
		<<case "men">>
			<<set $defaultRules[_i].clitSetting = "no default setting", $defaultRules[_i].clitSettingXY = 100>>
		<<case "women">>
			<<set $defaultRules[_i].clitSetting = "no default setting", $defaultRules[_i].clitSettingXX = 100>>
		<</switch>>
	<</for>>
<</if>>

<<if ndef $month>>
<<set $month to either("January","February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December")>>
<</if>>
<<if ndef $day>>
<<set $day to random(1,28)>>
<</if>>
<<if ndef $year>>
	<<set $year to (2037+Math.floor($week/52))>>
<</if>>

<<if ndef $arcologies>>
<<set $arcologies to []>>

<<set $arcologies[0] to {name: "Arcology X-", direction: 0, government: 1, honeymoon: 0, prosperity: 50, FSSupremacist: "unset", FSSupremacistRace: 0, FSSubjugationist: "unset", FSSubjugationistRace: 0, FSGenderRadicalist: "unset", FSGenderFundamentalist: "unset", FSPaternalist: "unset", FSDegradationist: "unset", FSBodyPurist: "unset", FSTransformationFetishist: "unset", FSYouthPreferentialist: "unset", FSMaturityPreferentialist: "unset", FSSlimnessEnthusiast: "unset", FSAssetExpansionist: "unset", FSPastoralist: "unset", FSPhysicalIdealist: "unset", FSChattelReligionist: "unset", FSRomanRevivalist: "unset", FSEgyptianRevivalist: "unset", FSEdoRevivalist: "unset", FSArabianRevivalist: "unset", FSChineseRevivalist: "unset", FSNull: "unset", embargo: 1, embargoTarget: -1, influenceTarget: -1, influenceBonus: 0, rival: 0}>>
<</if>>

<<if def $arcologyName>>
	<<set $arcologies[0].name to $arcologyName>>
	<<unset $arcologyName>>
<<elseif ndef $arcologies[0].name>>
	<<set $arcologies[0].name = "Arcology X-4">>
<</if>>

<<if ndef $arcologies[0].ownership>>
	<<set $arcologies[0].ownership to 50>>
<</if>>
<<if ndef $arcologies[0].minority>>
	<<set $arcologies[0].minority to 20>>
<</if>>
<<if ndef $arcologies[0].embargo>>
	<<set $arcologies[0].embargo to 1>>
<</if>>
<<if ndef $arcologies[0].embargoTarget>>
	<<set $arcologies[0].embargoTarget to -1>>
<</if>>
<<if ndef $arcologies[0].influenceTarget>>
	<<set $arcologies[0].influenceTarget to -1>>
<</if>>
<<if ndef $arcologies[0].influenceBonus>>
	<<set $arcologies[0].influenceBonus to -1>>
<</if>>
<<if ndef $arcologies[0].rival>>
	<<set $arcologies[0].rival to 0>>
<</if>>
<<if ndef $arcologies[0].FSNull>>
	<<set $arcologies[0].FSNull to "unset">>
<</if>>
<<if ndef $arcologies[0].PCminority>>
	<<set $arcologies[0].PCminority to 0>>
<</if>>
<<if ndef $arcologies[0].demandFactor>>
	<<set $arcologies[0].demandFactor to 250>>
<</if>>
<<if ndef $arcologies[0].leaderID>>
	<<set $arcologies[0].leaderID to 0>>
<</if>>

<<if def $FSSupremacist and $FSSupremacist != "unset">>
	<<set $arcologies[0].FSSupremacist to $FSSupremacist>>
	<<set $arcologies[0].FSSupremacistRace to $FSSupremacistRace>>
	<<unset $FSSupremacist>>
	<<unset $FSSupremacistRace>>
<<elseif ndef $arcologies[0].FSSupremacist>>
	<<set $arcologies[0].FSSupremacist to "unset">>
<</if>>

<<if def $FSSupremacistLawME and $FSSupremacistLawME != 0>>
	<<set $arcologies[0].FSSupremacistLawME to $FSSupremacistLawME>>
	<<unset $FSSupremacistLawME>>
<<elseif ndef $arcologies[0].FSSupremacistLawME>>
	<<set $arcologies[0].FSSupremacistLawME to 0>>
<</if>>

<<if def $FSSubjugationist and $FSSubjugationist != "unset">>
	<<set $arcologies[0].FSSubjugationist to $FSSubjugationist>>
	<<set $arcologies[0].FSSubjugationistRace to $FSSubjugationistRace>>
	<<unset $FSSubjugationist>>
	<<unset $FSSubjugationistRace>>
<<elseif ndef $arcologies[0].FSSubjugationist>>
	<<set $arcologies[0].FSSubjugationist to "unset">>
<</if>>

<<if def $FSSubjugationistLawME and $FSSubjugationistLawME != 0>>
	<<set $arcologies[0].FSSubjugationistLawME to $FSSubjugationistLawME>>
	<<unset $FSSubjugationistLawME>>
<<elseif ndef $arcologies[0].FSSubjugationistLawME>>
	<<set $arcologies[0].FSSubjugationistLawME to 0>>
<</if>>

<<if def $FSDegradationist and $FSDegradationist != "unset">>
	<<set $arcologies[0].FSDegradationist to $FSDegradationist>>
	<<unset $FSDegradationist>>
<<elseif ndef $arcologies[0].FSDegradationist>>
	<<set $arcologies[0].FSDegradationist to "unset">>
<</if>>

<<if def $FSDegradationistLaw and $FSDegradationistLaw != 0>>
	<<set $arcologies[0].FSDegradationistLaw to $FSDegradationistLaw>>
	<<unset $FSDegradationistLaw>>
<<elseif ndef $arcologies[0].FSDegradationistLaw>>
	<<set $arcologies[0].FSDegradationistLaw to 0>>
<</if>>

<<if def $FSPaternalist and $FSPaternalist != "unset">>
	<<set $arcologies[0].FSPaternalist to $FSPaternalist>>
	<<unset $FSPaternalist>>
<<elseif ndef $arcologies[0].FSPaternalist>>
	<<set $arcologies[0].FSPaternalist to "unset">>
<</if>>

<<if def $FSPaternalistLaw and $FSPaternalistLaw != 0>>
	<<set $arcologies[0].FSPaternalistLaw to $FSPaternalistLaw>>
	<<unset $FSPaternalistLaw>>
<<elseif ndef $arcologies[0].FSPaternalistLaw>>
	<<set $arcologies[0].FSPaternalistLaw to 0>>
<</if>>

<<if def $FSGenderFundamentalist and $FSGenderFundamentalist != "unset">>
	<<set $arcologies[0].FSGenderFundamentalist to $FSGenderFundamentalist>>
	<<unset $FSGenderFundamentalist>>
<<elseif ndef $arcologies[0].FSGenderFundamentalist>>
	<<set $arcologies[0].FSGenderFundamentalist to "unset">>
<</if>>

<<if def $FSGenderFundamentalistSMR and $FSGenderFundamentalistSMR != 0>>
	<<set $arcologies[0].FSGenderFundamentalistSMR to $FSGenderFundamentalistSMR>>
	<<unset $FSGenderFundamentalistSMR>>
<<elseif ndef $arcologies[0].FSGenderFundamentalistSMR>>
	<<set $arcologies[0].FSGenderFundamentalistSMR to 0>>
<</if>>

<<if def $FSGenderRadicalist and $FSGenderRadicalist != "unset">>
	<<set $arcologies[0].FSGenderRadicalist to $FSGenderRadicalist>>
	<<unset $FSGenderRadicalist>>
<<elseif ndef $arcologies[0].FSGenderRadicalist>>
	<<set $arcologies[0].FSGenderRadicalist to "unset">>
<</if>>

<<if def $FSGenderRadicalistLaw and $FSGenderRadicalistLaw != 0>>
	<<set $arcologies[0].FSGenderRadicalistLaw to $FSGenderRadicalistLaw>>
	<<unset $FSGenderRadicalistLaw>>
<<elseif ndef $arcologies[0].FSGenderRadicalistLaw>>
	<<set $arcologies[0].FSGenderRadicalistLaw to 0>>
<</if>>

<<if def $FSBodyPurist and $FSBodyPurist != "unset">>
	<<set $arcologies[0].FSBodyPurist to $FSBodyPurist>>
	<<unset $FSBodyPurist>>
<<elseif ndef $arcologies[0].FSBodyPurist>>
	<<set $arcologies[0].FSBodyPurist to "unset">>
<</if>>

<<if def $FSBodyPuristLaw and $FSBodyPuristLaw != 0>>
	<<set $arcologies[0].FSBodyPuristLaw to $FSBodyPuristLaw>>
	<<unset $FSBodyPuristLaw>>
<<elseif ndef $arcologies[0].FSBodyPuristLaw>>
	<<set $arcologies[0].FSBodyPuristLaw to 0>>
<</if>>

<<if def $FSPhysicalIdealist and $FSPhysicalIdealist != "unset">>
	<<set $arcologies[0].FSPhysicalIdealist to $FSPhysicalIdealist>>
	<<unset $FSPhysicalIdealist>>
<<elseif ndef $arcologies[0].FSPhysicalIdealist>>
	<<set $arcologies[0].FSPhysicalIdealist to "unset">>
<</if>>

<<if def $FSPhysicalIdealistSMR and $FSPhysicalIdealistSMR != 0>>
	<<set $arcologies[0].FSPhysicalIdealistSMR to $FSPhysicalIdealistSMR>>
	<<unset $FSPhysicalIdealistSMR>>
<<elseif ndef $arcologies[0].FSPhysicalIdealistSMR>>
	<<set $arcologies[0].FSPhysicalIdealistSMR to 0>>
<</if>>

<<if def $FSTransformationFetishist and $FSTransformationFetishist != "unset">>
	<<set $arcologies[0].FSTransformationFetishist to $FSTransformationFetishist>>
	<<unset $FSTransformationFetishist>>
<<elseif ndef $arcologies[0].FSTransformationFetishist>>
	<<set $arcologies[0].FSTransformationFetishist to "unset">>
<</if>>

<<if def $FSTransformationFetishistLaw and $FSTransformationFetishistLaw != 0>>
	<<set $arcologies[0].FSTransformationFetishistLaw to $FSTransformationFetishistLaw>>
	<<unset $FSTransformationFetishistLaw>>
<<elseif ndef $arcologies[0].FSTransformationFetishistLaw>>
	<<set $arcologies[0].FSTransformationFetishistLaw to 0>>
<</if>>

<<if def $FSAssetExpansionist and $FSAssetExpansionist != "unset">>
	<<set $arcologies[0].FSAssetExpansionist to $FSAssetExpansionist>>
	<<unset $FSAssetExpansionist>>
<<elseif ndef $arcologies[0].FSAssetExpansionist>>
	<<set $arcologies[0].FSAssetExpansionist to "unset">>
<</if>>

<<if def $FSAssetExpansionistSMR and $FSAssetExpansionistSMR != 0>>
	<<set $arcologies[0].FSAssetExpansionistSMR to $FSAssetExpansionistSMR>>
	<<unset $FSAssetExpansionistSMR>>
<<elseif ndef $arcologies[0].FSAssetExpansionistSMR>>
	<<set $arcologies[0].FSAssetExpansionistSMR to 0>>
<</if>>

<<if def $FSSlimnessEnthusiast and $FSSlimnessEnthusiast != "unset">>
	<<set $arcologies[0].FSSlimnessEnthusiast to $FSSlimnessEnthusiast>>
	<<unset $FSSlimnessEnthusiast>>
<<elseif ndef $arcologies[0].FSSlimnessEnthusiast>>
	<<set $arcologies[0].FSSlimnessEnthusiast to "unset">>
<</if>>

<<if def $FSSlimnessEnthusiastSMR and $FSSlimnessEnthusiastSMR != 0>>
	<<set $arcologies[0].FSSlimnessEnthusiastSMR to $FSSlimnessEnthusiastSMR>>
	<<unset $FSSlimnessEnthusiastSMR>>
<<elseif ndef $arcologies[0].FSSlimnessEnthusiastSMR>>
	<<set $arcologies[0].FSSlimnessEnthusiastSMR to 0>>
<</if>>

<<if def $FSMaturityPreferentialist and $FSMaturityPreferentialist != "unset">>
	<<set $arcologies[0].FSMaturityPreferentialist to $FSMaturityPreferentialist>>
	<<unset $FSMaturityPreferentialist>>
<<elseif ndef $arcologies[0].FSMaturityPreferentialist>>
	<<set $arcologies[0].FSMaturityPreferentialist to "unset">>
<</if>>

<<if def $FSMaturityPreferentialistLaw and $FSMaturityPreferentialistLaw != 0>>
	<<set $arcologies[0].FSMaturityPreferentialistLaw to $FSMaturityPreferentialistLaw>>
	<<unset $FSMaturityPreferentialistLaw>>
<<elseif ndef $arcologies[0].FSMaturityPreferentialistLaw>>
	<<set $arcologies[0].FSMaturityPreferentialistLaw to 0>>
<</if>>

<<if def $FSYouthPreferentialist and $FSYouthPreferentialist != "unset">>
	<<set $arcologies[0].FSYouthPreferentialist to $FSYouthPreferentialist>>
	<<unset $FSYouthPreferentialist>>
<<elseif ndef $arcologies[0].FSYouthPreferentialist>>
	<<set $arcologies[0].FSYouthPreferentialist to "unset">>
<</if>>

<<if def $FSYouthPreferentialistLaw and $FSYouthPreferentialistLaw != 0>>
	<<set $arcologies[0].FSYouthPreferentialistLaw to $FSYouthPreferentialistLaw>>
	<<unset $FSYouthPreferentialistLaw>>
<<elseif ndef $arcologies[0].FSYouthPreferentialistLaw>>
	<<set $arcologies[0].FSYouthPreferentialistLaw to 0>>
<</if>>

<<if def $FSPastoralist and $FSPastoralist != "unset">>
	<<set $arcologies[0].FSPastoralist to $FSPastoralist>>
	<<unset $FSPastoralist>>
<<elseif ndef $arcologies[0].FSPastoralist>>
	<<set $arcologies[0].FSPastoralist to "unset">>
<</if>>

<<if def $FSPastoralistLaw and $FSPastoralistLaw != 0>>
	<<set $arcologies[0].FSPastoralistLaw to $FSPastoralistLaw>>
	<<unset $FSPastoralistLaw>>
<<elseif ndef $arcologies[0].FSPastoralistLaw>>
	<<set $arcologies[0].FSPastoralistLaw to 0>>
<</if>>

<<if def $FSChattelReligionist and $FSChattelReligionist != "unset">>
	<<set $arcologies[0].FSChattelReligionist to $FSChattelReligionist>>
	<<unset $FSChattelReligionist>>
<<elseif ndef $arcologies[0].FSChattelReligionist>>
	<<set $arcologies[0].FSChattelReligionist to "unset">>
<</if>>

<<if def $FSChattelReligionistLaw and $FSChattelReligionistLaw != 0>>
	<<set $arcologies[0].FSChattelReligionistLaw to $FSChattelReligionistLaw>>
	<<unset $FSChattelReligionistLaw>>
<<elseif ndef $arcologies[0].FSChattelReligionistLaw>>
	<<set $arcologies[0].FSChattelReligionistLaw to 0>>
<</if>>

<<if def $FSRomanRevivalist and $FSRomanRevivalist != "unset">>
	<<set $arcologies[0].FSRomanRevivalist to $FSRomanRevivalist>>
	<<unset $FSRomanRevivalist>>
<<elseif ndef $arcologies[0].FSRomanRevivalist>>
	<<set $arcologies[0].FSRomanRevivalist to "unset">>
<</if>>

<<if def $FSRomanRevivalistLaw and $FSRomanRevivalistLaw != 0>>
	<<set $arcologies[0].FSRomanRevivalistLaw to $FSRomanRevivalistLaw>>
	<<unset $FSRomanRevivalistLaw>>
<<elseif ndef $arcologies[0].FSRomanRevivalistLaw>>
	<<set $arcologies[0].FSRomanRevivalistLaw to 0>>
<</if>>

<<if def $FSEgyptianRevivalist and $FSEgyptianRevivalist != "unset">>
	<<set $arcologies[0].FSEgyptianRevivalist to $FSEgyptianRevivalist>>
	<<unset $FSEgyptianRevivalist>>
<<elseif ndef $arcologies[0].FSEgyptianRevivalist>>
	<<set $arcologies[0].FSEgyptianRevivalist to "unset">>
<</if>>

<<if def $FSEgyptianRevivalistLaw and $FSEgyptianRevivalistLaw != 0>>
	<<set $arcologies[0].FSEgyptianRevivalistLaw to $FSEgyptianRevivalistLaw>>
	<<unset $FSEgyptianRevivalistLaw>>
<<elseif ndef $arcologies[0].FSEgyptianRevivalistLaw>>
	<<set $arcologies[0].FSEgyptianRevivalistLaw to 0>>
<</if>>

<<if def $FSEdoRevivalist and $FSEdoRevivalist != "unset">>
	<<set $arcologies[0].FSEdoRevivalist to $FSEdoRevivalist>>
	<<unset $FSEdoRevivalist>>
<<elseif ndef $arcologies[0].FSEdoRevivalist>>
	<<set $arcologies[0].FSEdoRevivalist to "unset">>
<</if>>

<<if def $FSEdoRevivalistLaw and $FSEdoRevivalistLaw != 0>>
	<<set $arcologies[0].FSEdoRevivalistLaw to $FSEdoRevivalistLaw>>
	<<unset $FSEdoRevivalistLaw>>
<<elseif ndef $arcologies[0].FSEdoRevivalistLaw>>
	<<set $arcologies[0].FSEdoRevivalistLaw to 0>>
<</if>>

<<if def $FSArabianRevivalist and $FSArabianRevivalist != "unset">>
	<<set $arcologies[0].FSArabianRevivalist to $FSArabianRevivalist>>
	<<unset $FSArabianRevivalist>>
<<elseif ndef $arcologies[0].FSArabianRevivalist>>
	<<set $arcologies[0].FSArabianRevivalist to "unset">>
<</if>>

<<if def $FSArabianRevivalistLaw and $FSArabianRevivalistLaw != 0>>
	<<set $arcologies[0].FSArabianRevivalistLaw to $FSArabianRevivalistLaw>>
	<<unset $FSArabianRevivalistLaw>>
<<elseif ndef $arcologies[0].FSArabianRevivalistLaw>>
	<<set $arcologies[0].FSArabianRevivalistLaw to 0>>
<</if>>

<<if def $FSChineseRevivalist and $FSChineseRevivalist != "unset">>
	<<set $arcologies[0].FSChineseRevivalist to $FSChineseRevivalist>>
	<<unset $FSChineseRevivalist>>
<<elseif ndef $arcologies[0].FSChineseRevivalist>>
	<<set $arcologies[0].FSChineseRevivalist to "unset">>
<</if>>

<<if def $FSChineseRevivalistLaw and $FSChineseRevivalistLaw != 0>>
	<<set $arcologies[0].FSChineseRevivalistLaw to $FSChineseRevivalistLaw>>
	<<unset $FSChineseRevivalistLaw>>
<<elseif ndef $arcologies[0].FSChineseRevivalistLaw>>
	<<set $arcologies[0].FSChineseRevivalistLaw to 0>>
<</if>>

<<for _i to 1; _i < $arcologies.length; _i++>>
	<<if ndef $arcologies[_i].FSNull>>
		<<set $arcologies[_i].FSNull to "unset">>
	<</if>>
<</for>>

Setting missing global variables:
<<if ndef $assistantPower>>
	<<set $assistantPower to 0>>
<</if>>

<<if ndef $CulturalOpenness>>
	<<set $CulturalOpenness to 0>>
<</if>>

<<if ndef $displayAssignments>>
	<<set $displayAssignments to 1>>
<</if>>

<<if ndef $universalRulesImpregnation>>
	<<set $universalRulesImpregnation to "none">>
<</if>>

<<if ndef $abbreviateNationality>>
	<<set $abbreviateNationality to 0>>
<</if>>

<<if ndef $language>>
	<<set $language to "English">>
<</if>>

<<if ndef $terrain>>
	<<set $terrain to "rural">>
<</if>>

<<if ndef $menialDemandFactor>>
	<<set $menialDemandFactor = 0>>
<</if>>
<<if ndef nicaeaAnnounceable>>
	<<set $nicaeaAnnounceable = 0>>
<</if>>
<<if ndef $nicaeaAnnounced>>
	<<set $nicaeaAnnounced = 0>>
<</if>>
<<if ndef $nicaeaPreparation>>
	<<set $nicaeaPreparation = 0>>
<</if>>
<<if ndef $nicaeaInvolvement>>
	<<set $nicaeaInvolvement = -1>>
<</if>>
<<if ndef $nicaeaPower>>
	<<set $nicaeaPower = 0>>
<</if>>
<<if ndef $nicaeaHeld>>
	<<set $nicaeaHeld = 0>>
<</if>>

<<if ndef $AProsperityCap>>
	<<set $AProsperityCap to 60>>
<</if>>
<<if ndef $ACitizens>>
	<<set $ACitizens to ($AProsperityCap+200)*16>>
<</if>>
<<if ndef $ASlaves>>
	<<set $ASlaves to ($AProsperityCap+200)*4>>
<</if>>
<<if ndef $AHelots>>
	<<set $AHelots to $ASlaves*2>>
<</if>>
<<if ndef $helots>>
	<<set $helots to 0>>
<</if>>

<<if ndef $facilityCost>>
<<set $facilityCost to 500>>
<</if>>
<<if ndef $policyCost>>
	<<set $policyCost to 5000>>
<</if>>

<<if ndef $REFeminizationCheckinIDs>>
	<<set $REFeminizationCheckinIDs to []>>
<</if>>
<<if ndef $REMILFCheckinIDs>>
	<<set $REMILFCheckinIDs to []>>
<</if>>
<<if ndef $REOrientationCheckinIDs>>
	<<set $REOrientationCheckinIDs to []>>
<</if>>
<<if ndef $REUglyCheckinIDs>>
	<<set $REUglyCheckinIDs to []>>
<</if>>
<<if ndef $REButtholeCheckinIDs>>
	<<set $REButtholeCheckinIDs to []>>
<</if>>
<<if ndef $REFutaSisterCheckinIDs>>
	<<set $REFutaSisterCheckinIDs to []>>
<</if>>
<<if ndef $REReductionCheckinIDs>>
	<<set $REReductionCheckinIDs to []>>
<</if>>
<<if ndef $dormitory>>
	<<set $dormitory = 20>>
<</if>>
<<if ndef $dormitoryPopulation>>
	<<set $dormitoryPopulation = 0>>
<</if>>
<<if ndef $rooms>>
	<<set $rooms = 5>>
<</if>>
<<if ndef $roomsPopulation>>
	<<set $roomsPopulation = 0>>
<</if>>

<<if ndef $BrothiIDs>>
	<<set $BrothiIDs to []>>
<</if>>
<<if ndef $brothelName>>
	<<set $brothelName = "the Brothel">>
<</if>>
<<if ndef $brothelNameCaps>>
	<<set $brothelNameCaps = "The Brothel">>
<</if>>
<<if ndef $brothelDecoration>>
	<<set $brothelDecoration = "standard">>
<</if>>

<<if ndef $DairyiIDs>>
	<<set $DairyiIDs to []>>
<</if>>
<<if ndef $dairyName>>
	<<set $dairyName = "the Dairy">>
<</if>>
<<if ndef $dairyNameCaps>>
	<<set $dairyNameCaps = "The Dairy">>
<</if>>
<<if ndef $dairyDecoration>>
	<<set $dairyDecoration = "standard">>
<</if>>
<<if ndef $dairyFeedersUpgrade>>
	<<set $dairyFeedersUpgrade to 0>>
<</if>>
<<if ndef $dairyStimulatorsUpgrade>>
	<<set $dairyStimulatorsUpgrade to 0>>
<</if>>
<<if ndef $dairyPregUpgrade>>
	<<set $dairyPregUpgrade to 0>>
<</if>>

<<if ndef $createBioreactors>>
	<<set $createBioreactors = 0>>
<</if>>
<<if ndef $bioreactorsAnnounced>>
	<<set $bioreactorsAnnounced = 0>>
<</if>>
<<if ndef $bioreactorsHerm>>
	<<set $bioreactorsHerm = 0>>
<</if>>
<<if ndef $bioreactorsXX>>
	<<set $bioreactorsXX = 0>>
<</if>>
<<if ndef $bioreactorsXY>>
	<<set $bioreactorsXY = 0>>
<</if>>
<<if ndef $bioreactorsBarren>>
	<<set $bioreactorsBarren = 0>>
<</if>>

<<if ndef $ClubiIDs>>
	<<set $ClubiIDs to []>>
<</if>>
<<if ndef $clubName>>
	<<set $clubName = "the Club">>
<</if>>
<<if ndef $clubNameCaps>>
	<<set $clubNameCaps = "The Club">>
<</if>>
<<if ndef $clubDecoration>>
	<<set $clubDecoration = "standard">>
<</if>>

<<if ndef $ServQiIDs>>
	<<set $ServQiIDs to []>>
<</if>>
<<if ndef $servantsQuartersName>>
	<<set $servantsQuartersName = "the Servants' Quarters">>
<</if>>
<<if ndef $servantsQuartersNameCaps>>
	<<set $servantsQuartersNameCaps = "The Servants' Quarters">>
<</if>>
<<if ndef $servantsQuartersDecoration >>
	<<set $servantsQuartersDecoration = "standard">>
<</if>>

<<if ndef $SchlRiIDs>>
	<<set $SchlRiIDs to []>>
<</if>>
<<if ndef $schoolroomName>>
	<<set $schoolroomName = "the Schoolroom">>
<</if>>
<<if ndef $schoolroomNameCaps>>
	<<set $schoolroomNameCaps = "The Schoolroom">>
<</if>>
<<if ndef $schoolroomUpgradeSkills>>
	<<set $schoolroomUpgradeSkills = 0>>
<</if>>
<<if ndef $schoolroomUpgradeLanguage>>
	<<set $schoolroomUpgradeLanguage = 0>>
<</if>>
<<if ndef $schoolroomDecoration>>
	<<set $schoolroomDecoration = "standard">>
<</if>>

<<if ndef $SpaiIDs>>
	<<set $SpaiIDs to []>>
<</if>>
<<if ndef $spaName>>
	<<set $spaName = "the Spa">>
<</if>>
<<if ndef $spaNameCaps>>
	<<set $spaNameCaps = "The Spa">>
<</if>>
<<if ndef $spaDecoration>>
	<<set $spaDecoration = "standard">>
<</if>>

<<if ndef $CliniciIDs>>
	<<set $CliniciIDs to []>>
<</if>>
<<if ndef $clinicName>>
	<<set $clinicName = "the Clinic">>
<</if>>
<<if ndef $clinicNameCaps>>
	<<set $clinicNameCaps = "The Clinic">>
<</if>>
<<if ndef $clinicSlaves>>
	<<set $clinicSlaves = 0>>
<</if>>
<<if ndef $clinic>>
	<<set $clinic = 0>>
<</if>>
<<if ndef $clinicUpgradeFilters>>
	<<set $clinicUpgradeFilters = 0>>
<</if>>
<<if ndef $clinicUpgradeScanner>>
	<<set $clinicUpgradeScanner = 0>>
<</if>>
<<if ndef $clinicDecoration>>
	<<set $clinicDecoration = "standard">>
<</if>>

<<if ndef $ArcadeiIDs>>
	<<set $ArcadeiIDs to []>>
<</if>>
<<if ndef $arcadeName>>
	<<set $arcadeName = "the Arcade">>
<</if>>
<<if ndef $arcadeNameCaps>>
	<<set $arcadeNameCaps = "The Arcade">>
<</if>>
<<if ndef $arcadeDecoration>>
	<<set $arcadeDecoration = "standard">>
<</if>>

<<if ndef $CellBiIDs>>
	<<set $CellBiIDs to []>>
<</if>>
<<if ndef $cellblockName>>
	<<set $cellblockName = "the Cellblock">>
<</if>>
<<if ndef $cellblockNameCaps>>
	<<set $cellblockNameCaps = "The Cellblock">>
<</if>>
<<if ndef $cellblockDecoration>>
	<<set $cellblockDecoration = "standard">>
<</if>>

<<if ndef $MastSiIDs>>
	<<set $MastSiIDs to []>>
<</if>>
<<if ndef $masterSuiteName>>
	<<set $masterSuiteName = "the Master Suite">>
<</if>>
<<if ndef $masterSuiteNameCaps>>
	<<set $masterSuiteNameCaps = "The Master Suite">>
<</if>>
<<if ndef $masterSuiteUpgradePregnancy>>
	<<set $masterSuiteUpgradePregnancy to 0>>
<</if>>
<<if ndef $masterSuitePregnancyFertilityDrugs>>
	<<set $masterSuitePregnancyFertilityDrugs to 0>>
<</if>>
<<if ndef $masterSuitePregnancyFertilitySupplements>>
	<<set $masterSuitePregnancyFertilitySupplements to 0>>
<</if>>
<<if ndef $masterSuitePregnancySlaveLuxuries>>
	<<set $masterSuitePregnancySlaveLuxuries to 0>>
<</if>>
<<if ndef $universalHGImpregnateMasterSuiteToggle>>
	<<set $universalHGImpregnateMasterSuiteToggle to 0>>
<</if>>
<<if ndef $masterSuiteDecoration>>
	<<set $masterSuiteDecoration = "standard">>
<</if>>

<<if ndef $HGSuiteName>>
	<<set $HGSuiteName = "the Head Girl Suite">>
<</if>>
<<if ndef $HGSuiteNameCaps>>
	<<set $HGSuiteNameCaps = "The Head Girl Suite">>
<</if>>
<<if ndef $HGSuiteSurgery>>
	<<set $HGSuiteSurgery = 1>>
<</if>>
<<if ndef $HGSuiteDrugs>>
	<<set $HGSuiteDrugs = 1>>
<</if>>
<<if ndef $HGSuiteHormones>>
	<<set $HGSuiteHormones = 1>>
<</if>>
<<if ndef $HGSuiteEquality>>
	<<set $HGSuiteEquality = 0>>
<</if>>

<<if ndef $pitName>>
	<<set $pitName = "the Pit">>
<</if>>
<<if ndef $pitNameCaps>>
	<<set $pitNameCaps = "The Pit">>
<</if>>
<<if ndef $fighterIDs>>
	<<set $fighterIDs = []>>
<</if>>
<<if ndef $pitBG>>
	<<set $pitBG = 0>>
<</if>>

<<if ndef $verboseDescriptions>>
	<<set $verboseDescriptions to 0>>
<</if>>
<<if ndef $clothesBoughtBunny>>
	<<set $clothesBoughtBunny to 0>>
<</if>>
<<if ndef $clothesBoughtConservative>>
	<<set $clothesBoughtConservative to 0>>
<</if>>
<<if ndef $clothesBoughtChains>>
	<<set $clothesBoughtChains to 0>>
<</if>>
<<if ndef $clothesBoughtWestern>>
	<<set $clothesBoughtWestern to 0>>
<</if>>
<<if ndef $clothesBoughtOil>>
	<<set $clothesBoughtOil to 0>>
<</if>>
<<if ndef $clothesBoughtHabit>>
	<<set $clothesBoughtHabit to 0>>
<</if>>
<<if ndef $clothesBoughtToga>>
	<<set $clothesBoughtToga to 0>>
<</if>>
<<if ndef $clothesBoughtKimono>>
	<<set $clothesBoughtKimono to 0>>
<</if>>
<<if ndef $clothesBoughtHarem>>
	<<set $clothesBoughtHarem to 0>>
<</if>>
<<if ndef $clothesBoughtQipao>>
	<<set $clothesBoughtQipao to 0>>
<</if>>
<<if ndef $clothesBoughtEgypt>>
	<<set $clothesBoughtEgypt to 0>>
<</if>>

<<if ndef $assistantFSAppearance>>
	<<set $assistantFSAppearance to "default">>
<</if>>

<<if ndef $universalRulesRest>>
	<<set $universalRulesRest to 0>>
<</if>>

<<if ndef $universalRulesNewSlavesRA>>
	<<set $universalRulesNewSlavesRA to 1>>
<</if>>

<<if ndef $hormoneUpgradeMood>>
	<<set $hormoneUpgradeMood to 0>>
<</if>>

<<if ndef $hormoneUpgradeShrinkage>>
	<<set $hormoneUpgradeShrinkage to 0>>
<</if>>

<<if ndef $hormoneUpgradePower>>
	<<set $hormoneUpgradePower to 0>>
<</if>>

<<if ndef $schoolSuggestion>>
	<<set $schoolSuggestion to 0>>
<</if>>

<<if ndef $prostheticsUpgrade>>
	<<set $prostheticsUpgrade to 0>>
<</if>>
<<if ndef $limbs>>
	<<set $limbs = []>>
<</if>>
<<if ndef $limbsCompleted>>
	<<set $limbsCompleted to 0>>
<</if>>

<<if ndef $trinkets>>
	<<set $trinkets to []>>

	<<set $upgradeMultiplierArcology to 1>>
	<<set $upgradeMultiplierMedicine to 1>>
	<<if $PC.career is "wealth">>
		<<set $trinkets.push("a collection of diplomas from expensive schools")>>
	<<elseif $PC.career is "capitalist">>
		<<set $trinkets.push("a framed low denomination piece of paper money from your native country")>>
	<<elseif $PC.career is "mercenary">>
		<<set $trinkets.push("a battered old assault rifle")>>
	<<elseif $PC.career is "slaver">>
		<<set $trinkets.push("a framed picture of a slave with her sale price scrawled across the bottom")>>
	<<elseif $PC.career is "engineer">>
		<<set $trinkets.push("an artist's impression of an early arcology design")>>
		<<set $upgradeMultiplierArcology to 0.6>>
	<<elseif $PC.career is "medicine">>
		<<set $trinkets.push("a framed postsurgical x-ray")>>
		<<set $upgradeMultiplierMedicine to 0.8>>
	<<elseif $PC.career is "celebrity">>
		<<set $trinkets.push("a framed copy of the first news story featuring yourself")>>
	<<elseif $PC.career is "arcology owner">>
		<<set $trinkets.push("a miniature model of your first arcology")>>
	<</if>>
<</if>>

<<if ndef $researchLab>>
	<<set $researchLab = {}>>
	<<set $researchLab.built = 0>>
<</if>>

<<if ndef $TSS>>
	<<set $TSS to {schoolUpgrade: 0, schoolPresent: 0, schoolProsperity: 0, subsidize: 0, schoolAnnexed: 0, studentsBought: 0, schoolSale: 0}>>
<</if>>
<<if ndef $GRI>>
	<<set $GRI to {schoolUpgrade: 0, schoolPresent: 0, schoolProsperity: 0, subsidize: 0, schoolAnnexed: 0, studentsBought: 0, schoolSale: 0}>>
<</if>>
<<if ndef $SCP>>
	<<set $SCP to {schoolUpgrade: 0, schoolPresent: 0, schoolProsperity: 0, subsidize: 0, schoolAnnexed: 0, studentsBought: 0, schoolSale: 0}>>
<</if>>
<<if ndef $LDE>>
	<<set $LDE to {schoolUpgrade: 0, schoolPresent: 0, schoolProsperity: 0, subsidize: 0, schoolAnnexed: 0, studentsBought: 0, schoolSale: 0}>>
<</if>>
<<if ndef $TGA>>
	<<set $TGA to {schoolUpgrade: 0, schoolPresent: 0, schoolProsperity: 0, subsidize: 0, schoolAnnexed: 0, studentsBought: 0, schoolSale: 0}>>
<</if>>
<<if ndef $TFS>>
	<<set $TFS to {schoolUpgrade: 0, schoolPresent: 0, schoolProsperity: 0, subsidize: 0, schoolAnnexed: 0, studentsBought: 0, schoolSale: 0}>>
<</if>>

<<if ndef $assistantName>>
	<<set $assistantName to "your personal assistant">>
<</if>>

<<if ndef $expiree>>
	<<set $expiree to 0>>
<</if>>
<<if ndef $retiree>>
	<<set $retiree to 0>>
<</if>>
<<if ndef $birthee>>
	<<set $birthee to 0>>
<</if>>

<<if ndef $assistantNameAnnounced>>
	<<set $assistantNameAnnounced to 0>>
<</if>>

<<if ndef $alwaysSubsidizeRep>>
<<set $alwaysSubsidizeRep to 0>>
<</if>>
<<if ndef $alwaysSubsidizeGrowth>>
<<set $alwaysSubsidizeGrowth to 0>>
<</if>>
<<if ndef $ProImmigrationCash>>
<<set $ProImmigrationCash to 0>>
<</if>>
<<if ndef $ProImmigrationRep>>
<<set $ProImmigrationRep to 0>>
<</if>>
<<if ndef $AntiImmigrationCash>>
<<set $AntiImmigrationCash to 0>>
<</if>>
<<if ndef $AntiImmigrationRep>>
<<set $AntiImmigrationRep to 0>>
<</if>>
<<if ndef $ProEnslavementCash>>
<<set $ProEnslavementCash to 0>>
<</if>>
<<if ndef $ProEnslavementRep>>
<<set $ProEnslavementRep to 0>>
<</if>>
<<if ndef $AntiEnslavementCash>>
<<set $AntiEnslavementCash to 0>>
<</if>>
<<if ndef $AntiEnslavementRep>>
<<set $AntiEnslavementRep to 0>>
<</if>>
<<if ndef $BasicSMR>>
<<set $BasicSMR to 1>>
<</if>>
<<if ndef $HealthInspectionSMR>>
<<set $HealthInspectionSMR to 0>>
<</if>>
<<if ndef $EducationSMR>>
<<set $EducationSMR to 0>>
<</if>>
<<if ndef $IntelligenceEugenicsSMR>>
<<set $IntelligenceEugenicsSMR to 0>>
<</if>>
<<if ndef $HeightEugenicsSMR>>
<<set $HeightEugenicsSMR to 0>>
<</if>>
<<if ndef $FaceEugenicsSMR>>
<<set $FaceEugenicsSMR to 0>>
<</if>>
<<if ndef $HonestySMR>>
<<set $HonestySMR to 0>>
<</if>>
<<if ndef $ProRefugees>>
<<set $ProRefugees to 0>>
<</if>>
<<if ndef $ProRecruitment>>
<<set $ProRecruitment to 0>>
<</if>>
<<if ndef $OralEncouragement>>
<<set $OralEncouragement to 0>>
<</if>>
<<if ndef $VaginalEncouragement>>
<<set $VaginalEncouragement to 0>>
<</if>>
<<if ndef $AnalEncouragement>>
<<set $AnalEncouragement to 0>>
<</if>>
<<if ndef $OralDiscouragement>>
<<set $OralDiscouragement to 0>>
<</if>>
<<if ndef $VaginalDiscouragement>>
<<set $VaginalDiscouragement to 0>>
<</if>>
<<if ndef $AnalDiscouragement>>
<<set $AnalDiscouragement to 0>>
<</if>>
<<if ndef $CashForRep>>
<<set $CashForRep to 0>>
<</if>>
<<if ndef $RepForCash>>
<<set $RepForCash to 0>>
<</if>>
<<if ndef $PAPublic>>
<<set $PAPublic to 0>>
<</if>>
<<if ndef $CoursingAssociation>>
<<set $CoursingAssociation to 0>>
<</if>>
<<if ndef $Lurcher>>
<<set $Lurcher = 0>>
<</if>>
<<if ndef $coursed>>
<<set $coursed = 0>>
<</if>>
<<if ndef $MixedMarriage>>
<<set $MixedMarriage to 0>>
<</if>>

<<if ndef $expiree>>
<<set $expiree to 0>>
<</if>>
<<if ndef $retiree>>
<<set $retiree to 0>>
<</if>>
<<if ndef $retirementAge>>
<<set $retirementAge to 45>>
<</if>>
<<if ndef $customRetirementAge>>
<<set $customRetirementAge to 45>>
<</if>>
<<if ndef $CustomRetirementAgePolicy>>
<<set $CustomRetirementAgePolicy to 0>>
<</if>>
<<if ndef $BioreactorRetirement>>
<<set $BioreactorRetirement to 0>>
<</if>>
<<if ndef $ArcadeRetirement>>
<<set $ArcadeRetirement to 0>>
<</if>>
<<if ndef $CitizenRetirement>>
<<set $CitizenRetirement to 0>>
<</if>>

<<if ndef $justiceEvents>>
	<<set $justiceEvents to ["slave deal", "slave training", "majority deal", "indenture deal", "virginity deal"]>>
<</if>>

<<if ndef $youngCareers>>
	<<set $youngCareers to ["a refugee", "a maid", "a truck driver", "a factory worker", "an office worker", "a farm laborer", "a secretary", "a cook", "a service worker", "a housewife", "a stripper", "a prostitute", "a saleswoman", "a criminal", "a student", "a student", "a camgirl", "a student", "a soldier", "a security guard", "unemployed", "unemployed", "unemployed", "unemployed", "unemployed"]>>
<</if>>

<<if ndef $educatedCareers>>
	<<set $educatedCareers to ["a principal", "a procuress", "a refugee", "a doctor", "a private detective", "a journalist", "a journalist", "a lawyer", "a teacher", "a business owner", "a classical dancer", "a classical musician", "an investor", "a writer", "a programmer", "a counselor", "a nun", "a scientist", "an actress", "a criminal", "a politician", "a military officer", "a professor"]>>
<</if>>

<<if ndef $uneducatedCareers>>
	<<set $uneducatedCareers to ["a masseuse", "a refugee", "a masseuse", "a model", "a pimp", "a maid", "a mail carrier", "a fisherwoman", "a truck driver", "an athlete", "a trophy wife", "a teacher", "a factory worker", "a dancer", "a musician", "an office worker", "a farm laborer", "a secretary", "a cook", "a nurse", "a service worker", "a housewife", "a camgirl", "a stripper", "a prostitute", "a saleswoman", "a criminal", "a student", "a soldier", "a security guard", "an actress", "a party girl", "a law enforcement officer", "a bouncer", "a bodyguard", "unemployed", "unemployed", "unemployed", "unemployed", "unemployed"]>>
<</if>>

<<if ndef $gratefulCareers>>
	<<set $gratefulCareers to ["unemployed", "a refugee"]>>
<</if>>

<<if ndef $menialCareers>>
	<<set $menialCareers to ["an athlete", "a mail carrier", "a fisherwoman", "a truck driver", "a factory worker", "a farm laborer", "a cook", "a service worker", "a maid", "a housewife", "a student", "a programmer", "a nun"]>>
<</if>>

<<if ndef $entertainmentCareers>>
	<<set $entertainmentCareers to ["a party girl", "a camgirl", "an actress", "a journalist", "a writer"]>>
<</if>>

<<if ndef $whoreCareers>>
	<<set $whoreCareers to ["a prostitute", "a stripper", "a saleswoman", "a criminal", "a porn star", "a trophy wife", "a Futanari Sister", "a model"]>>
<</if>>

<<if ndef $HGCareers>>
	<<set $HGCareers to ["a lawyer", "a military officer", "a politician"]>>
<</if>>

<<if ndef $madamCareers>>
	<<set $madamCareers to ["a procuress", "a pimp", "a business owner"]>>
<</if>>

<<if ndef $DJCareers>>
	<<set $DJCareers to ["a dancer", "a musician", "a classical dancer", "a classical musician"]>>
<</if>>

<<if ndef $bodyguardCareers>>
	<<set $bodyguardCareers to ["a soldier", "a bodyguard", "a law enforcement officer"]>>
<</if>>

<<if ndef $wardenessCareers>>
	<<set $wardenessCareers to ["a security guard", "a private detective", "a bouncer"]>>
<</if>>

<<if ndef $nurseCareers>>
	<<set $nurseCareers to ["a nurse", "a doctor"]>>
<</if>>

<<if ndef $attendantCareers>>
	<<set $attendantCareers to ["a masseuse", "a counselor"]>>
<</if>>

<<if ndef $milkmaidCareers>>
	<<set $milkmaidCareers to ["a dairy worker", "a rancher", "a veterinarian", "a farmer's daughter"]>>
<</if>>

<<if ndef $stewardessCareers>>
	<<set $stewardessCareers to ["a secretary", "an office worker", "an investor", "a charity worker"]>>
<</if>>

<<if ndef $schoolteacherCareers>>
	<<set $schoolteacherCareers to ["a principal", "a teacher", "a scientist", "a professor"]>>
<</if>>

<<if ndef $fakeBellies>>
<<set $fakeBellies to ["a small empathy belly", "a medium empathy belly", "a large empathy belly", "a huge empathy belly"]>> /* lets fake bellies be seperated from other .bellyAccessory */
<</if>>

<<if ($ver.includes("0.9") != true) || ($ver == "0.9")>>
	<<if $seeDicks == 2>>
		<<set $seeDicks = 100>>
	<<elseif $seeDicks == 1>>
		<<set $seeDicks = 25>>
	<</if>>
<</if>>
<<if ($ver.includes("0.9.4") != true) && ($ver.includes("0.9.5") != true) && ($ver.includes("0.9.6") != true) && ($ver.includes("0.9.7") != true) && ($ver.includes("0.9.8") != true) && ($ver.includes("0.9.9") != true) && ($ver.includes("0.9.10") != true)>>
	<<for _r to 0; _r < $defaultRules.length; _r++>>
		<<if ndef $defaultRules[_r].aphrodisiacs>>
			<<set $defaultRules[_r].aphrodisiacs = 0>>
		<</if>>
		<<if $defaultRules[_r].curatives == "applied">>
			<<set $defaultRules[_r].curatives = 2>>
		<<else>>
			<<set $defaultRules[_r].curatives = 0>>
		<</if>>
		<<if $defaultRules[_r].drugs == "curatives">>
			<<set $defaultRules[_r].curatives = 2>>
			<<set $defaultRules[_r].drugs = "no drugs">>
		<<elseif $defaultRules[_r].drugs == "preventatives">>
			<<set $defaultRules[_r].curatives = 1>>
			<<set $defaultRules[_r].drugs = "no drugs">>
		<<elseif $defaultRules[_r].drugs == "aphrodisiacs">>
			<<set $defaultRules[_r].aphrodisiacs = 1>>
			<<set $defaultRules[_r].drugs = "no drugs">>
		<<elseif $defaultRules[_r].drugs == "extreme aphrodisiacs">>
			<<set $defaultRules[_r].aphrodisiacs = 2>>
			<<set $defaultRules[_r].drugs = "no drugs">>
		<</if>>
		<<if $defaultRules[_r].muscles >= 3>>
			<<set $defaultRules[_r].muscles = 100>>
		<<elseif $defaultRules[_r].muscles >= 2>>
			<<set $defaultRules[_r].muscles = 50>>
		<<elseif $defaultRules[_r].muscles >= 1>>
			<<set $defaultRules[_r].muscles = 20>>
		<</if>>
	<</for>>
	<<if $PC.refreshment == "cigar">>
		<<set $PC.refreshmentType = 0>>
	<<else>>
		<<set $PC.refreshmentType = 1>>
	<</if>>
<</if>>

Done!

<br><br>
Setting missing slave variables:
<<for _i to 0; _i < $slaves.length; _i++>>
<<set _Slave to $slaves[_i]>>

<<if ndef _Slave.aphrodisiacs>>
	<<set _Slave.aphrodisiacs = 0>>
<</if>>
<<if ndef _Slave.curatives>>
	<<set _Slave.curatives = 0>>
<</if>>
<<if ndef _Slave.lactationAdaptation>>
	<<set _Slave.lactationAdaptation = 0>>
<</if>>
<<if ndef _Slave.dietCum>>
	<<set _Slave.dietCum = 0>>
<</if>>
<<if ndef _Slave.dietMilk>>
	<<set _Slave.dietMilk = 0>>
<</if>>
<<if ndef _Slave.fuckdoll>>
	<<set _Slave.fuckdoll = 0>>
<</if>>
<<if ndef _Slave.customImage>>
	<<set _Slave.customImage = 0>>
<</if>>
<<if ndef _Slave.nationality>>
	<<set _Slave.nationality = "slave">>
<</if>>

<<if ndef _Slave.faceShape>>
	<<set _Slave.faceShape to "normal">>
<</if>>

<<if _Slave.teeth == 0>>
	<<set _Slave.teeth to "normal">>
<</if>>

<<if ndef _Slave.boobShape>>
	<<set _Slave.boobShape to "perky">>
<</if>>

<<if ndef _Slave.vaginaLube>>
	<<set _Slave.vaginaLube to 0>>
<</if>>

<<if ndef _Slave.hips>>
	<<set _Slave.hips to 0>>
<</if>>

<<if ndef _Slave.hipsImplant>>
	<<set _Slave.hipsImplant to 0>>
<</if>>

<<if ndef _Slave.shoulders>>
	<<set _Slave.shoulders to 0>>
<</if>>

<<if ndef _Slave.shouldersImplant>>
	<<set _Slave.shouldersImplant to 0>>
<</if>>

<<if ndef _Slave.voiceImplant>>
	<<set _Slave.voiceImplant to 0>>
<</if>>

<<if ndef _Slave.backTat>>
	<<set _Slave.backTat to 0>>
<</if>>

<<if ndef _Slave.hStyle>>
	<<set _Slave.hColor to either("black", "blonde", "red", "brown")>>
<</if>>

<<if ndef _Slave.hStyle>>
	<<set _Slave.hStyle to either("ass-length", "long", "shoulder-length")>>
<</if>>

<<if ndef _Slave.eyeColor>>
	<<set _Slave.eyeColor to _Slave.eyes>>
	<<set _Slave.eyes to 1>>
	<<if ndef _Slave.eyeColor>>
		<<set _Slave.eyeColor to "brown">>
	<</if>>
<</if>>

<<if ndef _Slave.eyewear>>
  <<set _Slave.eyewear to "none">>
<</if>>

<<if ndef _Slave.indenture>>
	<<set _Slave.indenture to -1>>
<</if>>
<<if ndef _Slave.indentureRestrictions>>
	<<set _Slave.indentureRestrictions to 0>>
<</if>>
<<if ndef _Slave.birthWeek>>
	<<set _Slave.birthWeek to random(0,51)>>
<</if>>
<<if ndef _Slave.cSec>>
	<<set _Slave.cSec = 0>>
<</if>>
<<if ndef _Slave.labor>>
	<<set _Slave.labor = 0>>
<</if>>
<<if ndef _Slave.pregSource>>
	<<set _Slave.pregSource = 0>>
<</if>>

<<if ndef _Slave.training>>
	<<set _Slave.training = 0>>
<</if>>

<<if ($ver.includes("0.8.9") != true) && ($ver.includes("0.8.10") != true) && ($ver.includes("0.8.11") != true) && ($ver.includes("0.8.12") != true)>>
<<if $ver.includes("0.9") != true>>
	<<if _Slave.attrXX == 2>>
		<<set _Slave.attrXX = 90>>
	<<elseif _Slave.attrXX == 1>>
		<<set _Slave.attrXX = 70>>
	<<elseif _Slave.attrXX == 0>>
		<<set _Slave.attrXX = 50>>
	<<elseif _Slave.attrXX == -1>>
		<<set _Slave.attrXX = 30>>
	<<else>>
		<<set _Slave.attrXX = 10>>
	<</if>>
	<<if _Slave.attrXY == 2>>
		<<set _Slave.attrXY = 90>>
	<<elseif _Slave.attrXY == 1>>
		<<set _Slave.attrXY = 70>>
	<<elseif _Slave.attrXY == 0>>
		<<set _Slave.attrXY = 50>>
	<<elseif _Slave.attrXY == -1>>
		<<set _Slave.attrXY = 30>>
	<<else>>
		<<set _Slave.attrXY = 10>>
	<</if>>
<</if>>
<</if>>

<<if $ver.includes("0.9") != true>>
<<if $ver.includes("0.10") != true>>
	<<if _Slave.health <= -9>>
		<<set _Slave.health = -90>>
	<<elseif _Slave.health <= -7>>
		<<set _Slave.health = random(-89,-70)>>
	<<elseif _Slave.health <= -5>>
		<<set _Slave.health = random(-69,-50)>>
	<<elseif _Slave.health <= -3>>
		<<set _Slave.health = random(-49,-30)>>
	<<elseif _Slave.health <= -1>>
		<<set _Slave.health = random(-29,-10)>>
	<<elseif _Slave.health <= 1>>
		<<set _Slave.health = random(-9,10)>>
	<<elseif _Slave.health <= 3>>
		<<set _Slave.health = random(11,30)>>
	<<elseif _Slave.health <= 5>>
		<<set _Slave.health = random(31,50)>>
	<<elseif _Slave.health <= 7>>
		<<set _Slave.health = random(51,70)>>
	<<elseif _Slave.health <= 8>>
		<<set _Slave.health = random(71,80)>>
	<<elseif _Slave.health <= 9>>
		<<set _Slave.health = random(81,90)>>
	<<elseif _Slave.health <= 10>>
		<<set _Slave.health = random(91,100)>>
	<<elseif _Slave.health <= 15>>
		<<set _Slave.health = random(101,150)>>
	<<elseif _Slave.health <= 20>>
		<<set _Slave.health = random(151,200)>>
	<<elseif _Slave.health >= 50>>
		<<set _Slave.health = 500>>
	<<elseif _Slave.health > 20>>
		<<set _Slave.health = 205>>
	<</if>>

	<<set _Slave.devotion = (_Slave.devotion*5)>>
	<<set _Slave.trust = (_Slave.trust*5)>>

	<<if _Slave.fetishStrength == 0>>
		<<set _Slave.fetishStrength = random(0, 60)>>
	<<elseif _Slave.fetishStrength == 1>>
		<<set _Slave.fetishStrength = random(61,80)>>
	<<elseif _Slave.fetishStrength == 2>>
		<<set _Slave.fetishStrength = random(96, 100)>>
	<</if>>

	<<if _Slave.weight == -3>>
		<<set _Slave.weight = random(-110,-96)>>
	<<elseif _Slave.weight == -3>>
		<<set _Slave.weight = random(-95,-31)>>
	<<elseif _Slave.weight == -1>>
		<<set _Slave.weight = random(-30, -11)>>
	<<elseif _Slave.weight == 0>>
		<<set _Slave.weight = random(-11, 10)>>
	<<elseif _Slave.weight == 1>>
		<<set _Slave.weight = random(11, 30)>>
	<<elseif _Slave.weight == 2>>
		<<set _Slave.weight = random(31, 95)>>
	<<elseif _Slave.weight == 3>>
		<<set _Slave.weight = random(96, 110)>>
	<</if>>

	<<if _Slave.lips != 0>>
		<<if _Slave.lips == 3>>
			<<set _Slave.lips = 85>>
		<<elseif _Slave.lips == 2>>
			<<set _Slave.lips = 55>>
		<<elseif _Slave.lips == 1>>
			<<set _Slave.lips = 35>>
		<</if>>
	<</if>>
<</if>>
<</if>>

<<if ($ver.includes("0.9.5") != true) && ($ver.includes("0.9.6") != true) && ($ver.includes("0.9.7") != true) && ($ver.includes("0.9.8") != true) && ($ver.includes("0.9.9") != true) && ($ver.includes("0.9.10") != true)>>
	<<if _Slave.oralSkill > 0>>
	<<if _Slave.oralSkill == 3>>
		<<set _Slave.oralSkill = 100>>
	<<elseif _Slave.oralSkill == 2>>
		<<set _Slave.oralSkill = 65>>
	<<else>>
		<<set _Slave.oralSkill = 35>>
	<</if>>
	<</if>>
	<<if _Slave.vaginalSkill > 0>>
	<<if _Slave.vaginalSkill == 3>>
		<<set _Slave.vaginalSkill = 100>>
	<<elseif _Slave.vaginalSkill == 2>>
		<<set _Slave.vaginalSkill = 65>>
	<<else>>
		<<set _Slave.vaginalSkill = 35>>
	<</if>>
	<</if>>
	<<if _Slave.analSkill > 0>>
	<<if _Slave.analSkill == 3>>
		<<set _Slave.analSkill = 100>>
	<<elseif _Slave.analSkill == 2>>
		<<set _Slave.analSkill = 65>>
	<<else>>
		<<set _Slave.analSkill = 35>>
	<</if>>
	<</if>>
	<<if _Slave.whoreSkill > 0>>
	<<if _Slave.whoreSkill == 3>>
		<<set _Slave.whoreSkill = 100>>
	<<elseif _Slave.whoreSkill == 2>>
		<<set _Slave.whoreSkill = 65>>
	<<else>>
		<<set _Slave.whoreSkill = 35>>
	<</if>>
	<</if>>
	<<if _Slave.entertainSkill > 0>>
	<<if _Slave.entertainSkill == 3>>
		<<set _Slave.entertainSkill = 100>>
	<<elseif _Slave.entertainSkill == 2>>
		<<set _Slave.entertainSkill = 65>>
	<<else>>
		<<set _Slave.entertainSkill = 35>>
	<</if>>
	<</if>>
	<<if ($ver != "0.9.4")>>
		<<set _Slave.aphrodisiacs = 0>>
		<<if _Slave.drugs == "curatives">>
			<<set _Slave.curatives = 2>>
			<<set _Slave.drugs = "no drugs">>
		<<elseif _Slave.drugs == "preventatives">>
			<<set _Slave.curatives = 1>>
			<<set _Slave.drugs = "no drugs">>
		<<elseif _Slave.drugs == "aphrodisiacs">>
			<<set _Slave.aphrodisiacs = 1>>
			<<set _Slave.drugs = "no drugs">>
		<<elseif _Slave.drugs == "extreme aphrodisiacs">>
			<<set _Slave.aphrodisiacs = 2>>
			<<set _Slave.drugs = "no drugs">>
		<</if>>
		<<if _Slave.muscles >= 3>>
			<<set _Slave.muscles = 100>>
		<<elseif _Slave.muscles >= 2>>
			<<set _Slave.muscles = 50>>
		<<elseif _Slave.muscles >= 1>>
			<<set _Slave.muscles = 20>>
		<<else>>
			<<set _Slave.muscles = 0>>
		<</if>>
	<</if>>
<</if>>
<<if ($ver.includes("0.9") != true) || ($ver == "0.9")>>
	<<if _Slave.lips != 0>>
	<<if _Slave.lips == 3>>
		<<set _Slave.lips = 85>>
	<<elseif _Slave.lips == 2>>
		<<set _Slave.lips = 55>>
	<<else>>
		<<set _Slave.lips = 35>>
	<</if>>
	<</if>>
<</if>>

<<switch _Slave.boobsTat>>
<<case "floral designs">>
	<<set _Slave.boobsTat to "flowers">>
<<case "demeaning inscriptions">>
	<<set _Slave.boobsTat to "rude words">>
<<case "lewd scenes">>
	<<set _Slave.boobsTat to "scenes">>
<<case "degrading language">>
	<<set _Slave.boobsTat to "degradation">>
<<case  "slutty advertisements">>
	<<set _Slave.boobsTat to "advertisements">>
<</switch>>

<<switch _Slave.buttTat>>
<<case "floral designs">>
	<<set _Slave.buttTat to "flowers">>
<<case "demeaning inscriptions">>
	<<set _Slave.buttTat to "rude words">>
<<case "lewd scenes">>
	<<set _Slave.buttTat to "scenes">>
<<case "degrading language">>
	<<set _Slave.buttTat to "degradation">>
<<case  "slutty advertisements">>
	<<set _Slave.buttTat to "advertisements">>
<</switch>>

<<switch _Slave.vaginaTat>>
<<case "floral designs">>
	<<set _Slave.vaginaTat to "flowers">>
<<case "demeaning inscriptions">>
	<<set _Slave.vaginaTat to "rude words">>
<<case "lewd scenes">>
	<<set _Slave.vaginaTat to "scenes">>
<<case "degrading language">>
	<<set _Slave.vaginaTat to "degradation">>
<<case  "slutty advertisements">>
	<<set _Slave.vaginaTat to "advertisements">>
<</switch>>

<<switch _Slave.dickTat>>
<<case "floral designs">>
	<<set _Slave.dickTat to "flowers">>
<<case "demeaning inscriptions">>
	<<set _Slave.dickTat to "rude words">>
<<case "lewd scenes">>
	<<set _Slave.dickTat to "scenes">>
<<case "degrading language">>
	<<set _Slave.dickTat to "degradation">>
<<case  "slutty advertisements">>
	<<set _Slave.dickTat to "advertisements">>
<</switch>>

<<switch _Slave.anusTat>>
<<case "floral designs">>
	<<set _Slave.anusTat to "flowers">>
<<case "demeaning inscriptions">>
	<<set _Slave.anusTat to "rude words">>
<<case "lewd scenes">>
	<<set _Slave.anusTat to "scenes">>
<<case "degrading language">>
	<<set _Slave.anusTat to "degradation">>
<<case  "slutty advertisements">>
	<<set _Slave.anusTat to "advertisements">>
<</switch>>

<<switch _Slave.backTat>>
<<case "floral designs">>
	<<set _Slave.backTat to "flowers">>
<<case "demeaning inscriptions">>
	<<set _Slave.backTat to "rude words">>
<<case "lewd scenes">>
	<<set _Slave.backTat to "scenes">>
<<case "degrading language">>
	<<set _Slave.backTat to "degradation">>
<<case  "slutty advertisements">>
	<<set _Slave.backTat to "advertisements">>
<</switch>>

<<switch _Slave.shouldersTat>>
<<case "floral designs">>
	<<set _Slave.shouldersTat to "flowers">>
<<case "demeaning inscriptions">>
	<<set _Slave.shouldersTat to "rude words">>
<<case "lewd scenes">>
	<<set _Slave.shouldersTat to "scenes">>
<<case "degrading language">>
	<<set _Slave.shouldersTat to "degradation">>
<<case  "slutty advertisements">>
	<<set _Slave.shouldersTat to "advertisements">>
<</switch>>

<<switch _Slave.armsTat>>
<<case "floral designs">>
	<<set _Slave.armsTat to "flowers">>
<<case "demeaning inscriptions">>
	<<set _Slave.armsTat to "rude words">>
<<case "lewd scenes">>
	<<set _Slave.armsTat to "scenes">>
<<case "degrading language">>
	<<set _Slave.armsTat to "degradation">>
<<case  "slutty advertisements">>
	<<set _Slave.armsTat to "advertisements">>
<</switch>>

<<switch _Slave.legsTat>>
<<case "floral designs">>
	<<set _Slave.legsTat to "flowers">>
<<case "demeaning inscriptions">>
	<<set _Slave.legsTat to "rude words">>
<<case "lewd scenes">>
	<<set _Slave.legsTat to "scenes">>
<<case "degrading language">>
	<<set _Slave.legsTat to "degradation">>
<<case  "slutty advertisements">>
	<<set _Slave.legsTat to "advertisements">>
<</switch>>

<<switch _Slave.stampTat>>
<<case "floral designs">>
	<<set _Slave.stampTat to "flowers">>
<<case "demeaning inscriptions">>
	<<set _Slave.stampTat to "rude words">>
<<case "lewd scenes">>
	<<set _Slave.stampTat to "scenes">>
<<case "degrading language">>
	<<set _Slave.stampTat to "degradation">>
<<case  "slutty advertisements">>
	<<set _Slave.stampTat to "advertisements">>
<</switch>>

<<switch _Slave.lipsTat>>
<<case "floral designs">>
	<<set _Slave.lipsTat to "flowers">>
<<case "demeaning inscriptions">>
	<<set _Slave.lipsTat to "rude words">>
<<case "lewd scenes">>
	<<set _Slave.lipsTat to "scenes">>
<<case "degrading language">>
	<<set _Slave.lipsTat to "degradation">>
<<case  "slutty advertisements">>
	<<set _Slave.lipsTat to "advertisements">>
<</switch>>

<<if ndef _Slave.areolaePiercing>>
	<<set _Slave.areolaePiercing to 0>>
<</if>>

<<if ndef _Slave.standardPunishment>>
	<<set _Slave.standardPunishment to "situational">>
<</if>>

<<if ndef _Slave.standardReward>>
	<<set _Slave.standardReward to "situational">>
<</if>>

<<if ndef _Slave.corsetPiercing>>
	<<set _Slave.corsetPiercing to 0>>
<</if>>

<<if ndef _Slave.dickAccessory>>
	<<set _Slave.dickAccessory to "none">>
<</if>>

<<if ndef _Slave.scrotum>>
  <<set _Slave.scrotum to _Slave.balls>>
<</if>>

<<if ndef _Slave.markings>>
	<<set _Slave.markings to "none">>
<</if>>

<<if ndef _Slave.accent>>
	<<set _Slave.accent to random(0,3)>>
<</if>>

<<if ndef _Slave.pornFame>>
	<<set _Slave.pornFame to 0>>
<</if>>
<<if ndef _Slave.pornFameSpending>>
	<<set _Slave.pornFameSpending to 0>>
<</if>>

<<if ndef _Slave.bellyAccessory>>
  <<set _Slave.bellyAccessory to "none">>
<</if>>
<<if (ndef _Slave.currentRules) || (_Slave.currentRules.length < 1)>>
	<<set _Slave.currentRules to []>>
<</if>>

<<if _Slave.nationality == 0>>
	<<set _Slave.indenture to "slave">>
<</if>>

<<if _Slave.height < -1>>
	<<set _Slave.height to random(140,149)>>
<<elseif _Slave.height < 0>>
	<<set _Slave.height to random(150,159)>>
<<elseif _Slave.height < 1>>
	<<set _Slave.height to random(160,169)>>
<<elseif _Slave.height < 2>>
	<<set _Slave.height to random(170,184)>>
<<elseif _Slave.height <= 3>>
	<<set _Slave.height to random(185,200)>>
<</if>>

<<if _Slave.customTat is " ">>
	<<set _Slave.customTat to "">>
<</if>>

<<if _Slave.customLabel is " ">>
	<<set _Slave.customLabel to "">>
<</if>>
<<if _Slave.lipsPiercing is "no default setting">>
	<<set _Slave.lipsPiercing to 0>>
<</if>>
<<if _Slave.tonguePiercing is "no default setting">>
	<<set _Slave.tonguePiercing to 0>>
<</if>>
<<if _Slave.nipplesPiercing is "no default setting">>
	<<set _Slave.nipplesPiercing to 0>>
<</if>>
<<if _Slave.areolaePiercing is "no default setting">>
	<<set _Slave.areolaePiercing to 0>>
<</if>>
<<if _Slave.dickPiercing is "no default setting">>
	<<set _Slave.dickPiercing to 0>>
<</if>>
<<if _Slave.vaginaPiercing is "no default setting">>
	<<set _Slave.vaginaPiercing to 0>>
<</if>>
<<if _Slave.clitPiercing is "no default setting">>
	<<set _Slave.clitPiercing to 0>>
<</if>>
<<if _Slave.anusPiercing is "no default setting">>
	<<set _Slave.anusPiercing to 0>>
<</if>>
<<if _Slave.earPiercing is "no default setting">>
	<<set _Slave.earPiercing to 0>>
<</if>>
<<if _Slave.eyebrowPiercing is "no default setting">>
	<<set _Slave.eyebrowPiercing to 0>>
<</if>>
<<if _Slave.nosePiercing is "no default setting">>
	<<set _Slave.nosePiercing to 0>>
<</if>>
<<if _Slave.navelPiercing is "no default setting">>
	<<set _Slave.navelPiercing to 0>>
<</if>>
<<if _Slave.corsetPiercing is "no default setting">>
	<<set _Slave.corsetPiercing to 0>>
<</if>>

<<if _Slave.customDesc is " " or _Slave.customDesc == 0>>
	<<set _Slave.customDesc to "">>
<</if>>

<<if ndef _Slave.prostate>>
	<<if _Slave.dick > 0>>
		<<set _Slave.prostate = 1>>
	<<else>>
		<<set _Slave.prostate = 0>>
	<</if>>
<</if>>

<<if ndef _Slave.origEye>>
	<<set _Slave.origEye = _Slave.eyeColor>>
<</if>>
<<if ndef _Slave.origHColor>>
	<<set _Slave.origHColor = _Slave.hColor>>
<</if>>

<<set $slaves[_i] to _Slave>>
<</for>>

<<if ndef $slavesOriginal>>
	<<set $slavesOriginal = $slaves>>
<</if>>
Done!

<<set $ver = "0.10.0">>
<<set $releaseID = 1000>>
