code:
:: Neighbor Interact [nobr]

<<set $nextLink = "Manage Arcology", $nextButton = "Back">>

<<set _nei = $arcologies.findIndex(function(s) { return s.direction == $activeArcology.direction; })>>
<<if _nei != -1>>
	<<set $arcologies[_nei] = $activeArcology>>
<<else>>
	//Neighbor not found, something has gone wrong!//
<</if>>

<<set $arcologies[_nei].prosperity = Math.clamp($arcologies[_nei].prosperity, 1, 300)>>

<<if $buyArcologyDirection != 0 && def $buyArcologyDirection>>
	<<set _nei = $arcologies.findIndex(function(s) { return s.direction == $buyArcologyDirection; })>>
	<<run cashX(forceNeg($transaction*(500*Math.trunc($arcologies[_nei].prosperity*(1+($arcologies[_nei].demandFactor/100))))), "war")>>
	<<run cashX(-10000, "war")>>
	<<set $arcologies[_nei].PCminority += $transaction>>
	<<set $arcologies[_nei].demandFactor += $transaction*5>>
<</if>>
<<set $buyArcologyDirection = 0>>
<<if $sellArcologyDirection != 0 && def $sellArcologyDirection>>
	<<set _nei = $arcologies.findIndex(function(s) { return s.direction == $sellArcologyDirection; })>>
	<<run cashX(($transaction*(500*Math.trunc($arcologies[_nei].prosperity*(1+($arcologies[_nei].demandFactor/100))))), "war")>>
	<<set $arcologies[_nei].PCminority -= $transaction>>
	<<set $arcologies[_nei].demandFactor -= $transaction*2>>
	<<if $arcologies[_nei].government != "your agent" && $arcologies[_nei].government != "your trustees" && $arcologies[_nei].rival != 1>>
		<<if $arcologies[_nei].ownership + $arcologies[_nei].PCminority + $arcologies[_nei].minority < 10>>
			<<set $arcologies[_nei].ownership += 10>>
		<</if>>
	<</if>>
<</if>>
<<set $sellArcologyDirection = 0>>
<<set $transaction = 0>>

<<if $arcologies[0].embargoTarget == -1>>
	You are not engaged in economic warfare against a neighboring arcology.
<<else>>
	<<set _nei = $arcologies.findIndex(function(s) { return s.direction == $arcologies[0].embargoTarget; })>>
	You have targeted '' $arcologies[_nei].name'' for economic warfare.

    Its planned impacts will be
	<<if $arcologies[0].embargo == 3>>
		''widespread.'' [[Moderate|Neighbor Interact][$arcologies[0].embargo -= 1]]
	<<elseif $arcologies[0].embargo == 2>>
		''limited.'' [[Intensify|Neighbor Interact][$arcologies[0].embargo += 1]] | [[Moderate|Neighbor Interact][$arcologies[0].embargo -= 1]]
	<<else>>
		''nominal.'' [[Intensify|Neighbor Interact][$arcologies[0].embargo += 1]]
	<</if>>
<</if>>

<<if $arcologies[0].influenceTarget == -1>>
	You are not using your arcology's culture to attempt to influence neighboring arcologies' development.
<<else>>
	<<set _nei = $arcologies.findIndex(function(s) { return s.direction == $arcologies[0].influenceTarget; })>>
	You have targeted '' $arcologies[_nei].name'' for cultural influence.
<</if>>

<<if $PC.hacking > 0>>

	<<if $arcologies[0].CyberEconomicTarget == -1>>
		You are not engaged in cyber warfare against a neighboring arcology.
	<<else>>
		<<set _nei = $arcologies.findIndex(function(s) { return s.direction == $arcologies[0].CyberEconomicTarget; })>>
		You have targeted ''$arcologies[_nei].name'' for cyber economic warfare.

    Its planned impacts will be
		<<if $arcologies[0].CyberEconomic == 3>>
			''widespread.'' [[Moderate|Neighbor Interact][$arcologies[0].CyberEconomic -= 1]]
		<<elseif $arcologies[0].CyberEconomic == 2>>
			''limited.'' [[Intensify|Neighbor Interact][$arcologies[0].CyberEconomic += 1]] | [[Moderate|Neighbor Interact][$arcologies[0].CyberEconomic -= 1]]
		<<else>>
			''nominal.'' [[Intensify|Neighbor Interact][$arcologies[0].CyberEconomic += 1]]
		<</if>>
	<</if>>

	<<if $arcologies[0].CyberReputationTarget == -1>>
		You are not engaged in character assassination against a neighboring arcology.
	<<else>>
		<<set _nei = $arcologies.findIndex(function(s) { return s.direction == $arcologies[0].CyberReputationTarget; })>>
		You have targeted the leadership of ''$arcologies[_nei].name'' for character assassination.

    Its planned impacts will be
		<<if $arcologies[0].CyberReputation == 3>>
			''widespread.'' [[Moderate|Neighbor Interact][$arcologies[0].CyberReputation -= 1]]
		<<elseif $arcologies[0].CyberReputation == 2>>
			''limited.'' [[Intensify|Neighbor Interact][$arcologies[0].CyberReputation += 1]] | [[Moderate|Neighbor Interact][$arcologies[0].CyberReputation -= 1]]
		<<else>>
			''nominal.'' [[Intensify|Neighbor Interact][$arcologies[0].CyberReputation += 1]]
		<</if>>
	<</if>>
<</if>>

<<set $desc = []>>
<<if $arcologies[0].FSSubjugationist > 60>>
	<<set $desc.push("Racial Subjugation")>>
<</if>>
<<if $arcologies[0].FSSupremacist > 60>>
	<<set $desc.push("Racial Supremacy")>>
<</if>>
<<if $arcologies[0].FSRepopulationFocus > 60>>
	<<set $desc.push("Repopulation Focus")>>
<</if>>
<<if $arcologies[0].FSRestart > 60>>
	<<set $desc.push("Eugenics")>>
<</if>>
<<if $arcologies[0].FSGenderRadicalist > 60>>
	<<set $desc.push("Gender Radicalism")>>
<</if>>
<<if $arcologies[0].FSGenderFundamentalist > 60>>
	<<set $desc.push("Gender Fundamentalism")>>
<</if>>
<<if $arcologies[0].FSPaternalist > 60>>
	<<set $desc.push("Paternalism")>>
<</if>>
<<if $arcologies[0].FSDegradationist > 60>>
	<<set $desc.push("Degradationism")>>
<</if>>
<<if $arcologies[0].FSBodyPurist > 60>>
	<<set $desc.push("Body Purism")>>
<</if>>
<<if $arcologies[0].FSTransformationFetishist > 60>>
	<<set $desc.push("Transformation Fetishism")>>
<</if>>
<<if $arcologies[0].FSYouthPreferentialist > 60>>
	<<set $desc.push("Youth Preferentialism")>>
<</if>>
<<if $arcologies[0].FSMaturityPreferentialist > 60>>
	<<set $desc.push("Maturity Preferentialism")>>
<</if>>
<<if $arcologies[0].FSSlimnessEnthusiast > 60>>
	<<set $desc.push("Slimness Enthusiasm")>>
<</if>>
<<if $arcologies[0].FSAssetExpansionist > 60>>
	<<set $desc.push("Asset Expansionism")>>
<</if>>
<<if $arcologies[0].FSPastoralist > 60>>
	<<set $desc.push("Pastoralism")>>
<</if>>
<<if $arcologies[0].FSCummunism > 60>>
	<<set $desc.push("Cummunism")>>
<</if>>
<<if $arcologies[0].FSPhysicalIdealist > 60>>
	<<set $desc.push("Physical Idealism")>>
<</if>>
<<if $arcologies[0].FSHedonisticDecadence > 60>>
	<<set $desc.push("Hedonistic Decadence")>>
<</if>>
<<if $arcologies[0].FSIncestFetishist > 60>>
	<<set $desc.push("Incest Fetishism")>>
<</if>>
<<if $arcologies[0].FSChattelReligionist > 60>>
	<<set $desc.push("Chattel Religionism")>>
<</if>>
<<if $arcologies[0].FSRomanRevivalist > 60>>
	<<set $desc.push("Roman Revivalism")>>
<</if>>
<<if $arcologies[0].FSAztecRevivalist > 60>>
	<<set $desc.push("Aztec Revivalism")>>
<</if>>
<<if $arcologies[0].FSEgyptianRevivalist > 60>>
	<<set $desc.push("Egyptian Revivalism")>>
<</if>>
<<if $arcologies[0].FSEdoRevivalist > 60>>
	<<set $desc.push("Edo Revivalism")>>
<</if>>
<<if $arcologies[0].FSArabianRevivalist > 60>>
	<<set $desc.push("Arabian Revivalism")>>
<</if>>
<<if $arcologies[0].FSChineseRevivalist > 60>>
	<<set $desc.push("Chinese Revivalism")>>
<</if>>

<<if $desc.length == 0>>
	Your arcology's culture has not developed to the point where it can meaningfully influence other arcologies.
<<elseif $desc.length > 2>>
	Your arcology's mature culture is capable of exerting great cultural sway over other arcologies. It can readily project $desc[0],
	<<for $i = 1; $i < $desc.length; $i++>>
		<<if $i < $desc.length-1>>
			$desc[$i],
		<<else>>
			and $desc[$i].
		<</if>>
	<</for>>
<<elseif $desc.length == 2>>
	Your arcology's culture is capable of exerting some cultural sway over other arcologies. It can effectively project $desc[0] and $desc[1].
<<else>>
	Your arcology's culture is capable of starting to exert cultural sway over other arcologies. It can project $desc[0].
<</if>>

<<for $i = 0; $i < $arcologies.length; $i++>>
	<<if $arcologies[$i].direction == $activeArcology.direction>>
		<<include "Neighbor Description">>
	<</if>>
<</for>>

    [[Target for economic warfare|Neighbor Interact][$arcologies[0].embargoTarget = $activeArcology.direction]]
<<if $PC.hacking > 0>>
	| [[Target for cyber economic warfare|Neighbor Interact][$arcologies[0].CyberEconomicTarget = $activeArcology.direction]]
	| [[Target their leadership for character assassination|Neighbor Interact][$arcologies[0].CyberReputationTarget = $activeArcology.direction]]
<</if>>
<<if $desc.length > 0>>
	| [[Set as influence target|Neighbor Interact][$arcologies[0].influenceTarget = $activeArcology.direction]]
<</if>>

    You own ''$activeArcology.PCminority%'' of $activeArcology.name.
<<set _ownershipCost = 500*Math.trunc($activeArcology.prosperity*(1+($activeArcology.demandFactor/100)))>>
A 1% interest in $activeArcology.name is worth <<print cashFormat(_ownershipCost)>> and will require a transaction cost of <<print cashFormat(10000)>> to acquire.
<<if ($activeArcology.ownership + $activeArcology.PCminority + $activeArcology.minority < 100)>>
	[[Buy|Neighbor Interact][$buyArcologyDirection = $activeArcology.direction, $transaction = 1]]
	<<if ($activeArcology.ownership + $activeArcology.PCminority + $activeArcology.minority <= 90)>>
		<<if $cash > 10*(_ownershipCost)>>
			| [[10%|Neighbor Interact][$buyArcologyDirection = $activeArcology.direction, $transaction = 10]]
			//Transaction costs will only be paid once//
		<</if>>
	<</if>>
<</if>>
<<if ($activeArcology.ownership + $activeArcology.PCminority + $activeArcology.minority < 100) && ($activeArcology.PCminority > 0)>>|<</if>>
<<if $activeArcology.PCminority > 0>>
	[[Sell|Neighbor Interact][$sellArcologyDirection = $activeArcology.direction, $transaction = 1]]
	<<if $activeArcology.PCminority >= 10>>
		| [[10%|Neighbor Interact][$sellArcologyDirection = $activeArcology.direction, $transaction = 10]]
	<</if>>
<</if>>

<<if ($activeArcology.government == "your trustees") || ($activeArcology.government == "your agent")>>
	<<if $activeArcology.government == "your trustees">>

		[[Appoint an agent|Agent Select]]
		 | <<link "Instruct them to rename the arcology">><<replace #rename>> | <<textbox "$activeArcology.name" $activeArcology.name>> [[Confirm name|Neighbor Interact]]<</replace>><</link>>
	<<else>>

		<<for $j = 0; $j < $leaders.length; $j++>>
			<<if $activeArcology.leaderID == $leaders[$j].ID>>
				<<setLocalPronouns $leaders[$j]>>
				Your agent @@.deeppink;<<= SlaveFullName($leaders[$j])>>@@ is running this arcology. [["Recall and reenslave " + $him|Agent Retrieve]]
				 | <<link "Instruct $him to rename the arcology">><<replace #rename>> | <<textbox "$activeArcology.name" $activeArcology.name>> [[Confirm name|Neighbor Interact]]<</replace>><</link>>

$His <<if $leaders[$j].intelligence > 95>>brilliance<<else>>intelligence<</if>> and education are the most important qualities for $him.
				<<if $leaders[$j].actualAge > 35>>
					As with the Head Girl position, $his age and experience lend $him leadership weight.
				<</if>>
				<<if $leaders[$j].career == "an arcology owner">>
					$His career as an arcology owner $himself is, obviously, useful to $him.
				<<elseif setup.HGCareers.includes($leaders[$j].career)>>
					$His career in leadership helps $him.
				<</if>>
				<<if $leaders[$j].fetishStrength > 95>>
					<<if ($leaders[$j].fetish == "dom") || ($leaders[$j].fetish == "sadist")>>
						$His sexually dominant fetish helps $him fill a leadership role.
					<<elseif ($leaders[$j].fetish == "submissive") || ($leaders[$j].fetish == "masochist")>>
						Unfortunately, $he has an inappropriate fetish for a leader.
					<<else>>
						$His sexual fetishes will influence how $he leads the arcology.
					<</if>>
				<</if>>
				<<if $leaders[$j].energy > 95>>
					Finally, $his sexual depravity lets $him fit into arcology society naturally.
				<</if>>
			<</if>>
		<</for>>
	<</if>>
	<<if $activeArcology.FSSubjugationist != "unset">>

<<link "Force Abandonment of Racial Subjugation">><<set $activeArcology.FSSubjugationist = "unset">><<goto "Neighbor Interact">><</link>>
	<</if>>
	<<if $activeArcology.FSSupremacist != "unset">>

<<link "Force Abandonment of Racial Supremacy">><<set $activeArcology.FSSupremacist = "unset">><<goto "Neighbor Interact">><</link>>
	<</if>>
	<<if $activeArcology.FSRepopulationFocus != "unset">>

<<link "Force Abandonment of Repopulationism">><<set $activeArcology.FSRepopulationFocus = "unset">><<goto "Neighbor Interact">><</link>>
	<</if>>
	<<if $activeArcology.FSRestart != "unset">>

<<link "Force Abandonment of Eugenics">><<set $activeArcology.FSRestart = "unset">><<goto "Neighbor Interact">><</link>>
	<</if>>
	<<if $activeArcology.FSGenderRadicalist != "unset">>

<<link "Force Abandonment of Gender Radicalism">><<set $activeArcology.FSGenderRadicalist = "unset">><<goto "Neighbor Interact">><</link>>
	<</if>>
	<<if $activeArcology.FSGenderFundamentalist != "unset">>

<<link "Force Abandonment of Gender Fundamentalism">><<set $activeArcology.FSGenderFundamentalist = "unset">><<goto "Neighbor Interact">><</link>>
	<</if>>
	<<if $activeArcology.FSPaternalist != "unset">>

<<link "Force Abandonment of Paternalism">><<set $activeArcology.FSPaternalist = "unset">><<goto "Neighbor Interact">><</link>>
	<</if>>
	<<if $activeArcology.FSDegradationist != "unset">>

<<link "Force Abandonment of Degradationism">><<set $activeArcology.FSDegradationist = "unset">><<goto "Neighbor Interact">><</link>>
	<</if>>
	<<if $activeArcology.FSBodyPurist != "unset">>

<<link "Force Abandonment of Body Purism">><<set $activeArcology.FSBodyPurist = "unset">><<goto "Neighbor Interact">><</link>>
	<</if>>
	<<if $activeArcology.FSTransformationFetishist != "unset">>

<<link "Force Abandonment of Transformation Fetishism">><<set $activeArcology.FSTransformationFetishist = "unset">><<goto "Neighbor Interact">><</link>>
	<</if>>
	<<if $activeArcology.FSYouthPreferentialist != "unset">>

<<link "Force Abandonment of Youth Preferentialism">><<set $activeArcology.FSYouthPreferentialist = "unset">><<goto "Neighbor Interact">><</link>>
	<</if>>
	<<if $activeArcology.FSMaturityPreferentialist != "unset">>

<<link "Force Abandonment of Maturity Preferentialism">><<set $activeArcology.FSMaturityPreferentialist = "unset">><<goto "Neighbor Interact">><</link>>
	<</if>>
	<<if $activeArcology.FSSlimnessEnthusiast != "unset">>

<<link "Force Abandonment of Slimness Enthusiasm">><<set $activeArcology.FSSlimnessEnthusiast = "unset">><<goto "Neighbor Interact">><</link>>
	<</if>>
	<<if $activeArcology.FSAssetExpansionist != "unset">>

<<link "Force Abandonment of Asset Expansionism">><<set $activeArcology.FSAssetExpansionist = "unset">><<goto "Neighbor Interact">><</link>>
	<</if>>
	<<if $activeArcology.FSPastoralist != "unset">>

<<link "Force Abandonment of Pastoralism">><<set $activeArcology.FSPastoralist = "unset">><<goto "Neighbor Interact">><</link>>
	<</if>>
	<<if $activeArcology.FSCummunism != "unset">>

<<link "Force Abandonment of Cummunism">><<set $activeArcology.FSCummunism = "unset">><<goto "Neighbor Interact">><</link>>
	<</if>>
	<<if $activeArcology.FSPhysicalIdealist != "unset">>

<<link "Force Abandonment of Physical Idealism">><<set $activeArcology.FSPhysicalIdealist = "unset">><<goto "Neighbor Interact">><</link>>
	<</if>>
	<<if $activeArcology.FSHedonisticDecadence != "unset">>

<<link "Force Abandonment of Hedonistic Decadence">><<set $activeArcology.FSHedonisticDecadence = "unset">><<goto "Neighbor Interact">><</link>>
	<</if>>
	<<if $activeArcology.FSIncestFetishist != "unset">>

<<link "Force Abandonment of Incest Fetishism">><<set $activeArcology.FSIncestFetishist = "unset">><<goto "Neighbor Interact">><</link>>
	<</if>>
	<<if $activeArcology.FSChattelReligionist != "unset">>

<<link "Force Abandonment of Chattel Religionism">><<set $activeArcology.FSChattelReligionist = "unset">><<goto "Neighbor Interact">><</link>>
	<</if>>
	<<if $activeArcology.FSRomanRevivalist != "unset">>

<<link "Force Abandonment of Roman Revivalism">><<set $activeArcology.FSRomanRevivalist = "unset">><<goto "Neighbor Interact">><</link>>
	<</if>>
	<<if $activeArcology.FSAztecRevivalist !== "unset">>

<<link "Force Abandonment of Aztec Revivalism">><<set $activeArcology.FSAztecRevivalist = "unset">><<goto "Neighbor Interact">><</link>>
	<</if>>
	<<if $activeArcology.FSEgyptianRevivalist != "unset">>

<<link "Force Abandonment of Egyptian Revivalism">><<set $activeArcology.FSEgyptianRevivalist = "unset">><<goto "Neighbor Interact">><</link>>
	<</if>>
	<<if $activeArcology.FSEdoRevivalist != "unset">>

<<link "Force Abandonment of Edo Revivalism">><<set $activeArcology.FSEdoRevivalist = "unset">><<goto "Neighbor Interact">><</link>>
	<</if>>
	<<if $activeArcology.FSArabianRevivalist != "unset">>

<<link "Force Abandonment of Arabian Revivalism">><<set $activeArcology.FSArabianRevivalist = "unset">><<goto "Neighbor Interact">><</link>>
	<</if>>
	<<if $activeArcology.FSChineseRevivalist != "unset">>

<<link "Force Abandonment of Chinese Revivalism">><<set $activeArcology.FSChineseRevivalist = "unset">><<goto "Neighbor Interact">><</link>>
	<</if>>
<</if>>

If $activeArcology.name has developed enough to begin exporting worthwhile goods, it may be of interest to acquire some.
<<if ($activeArcology.government == "your trustees") || ($activeArcology.government == "your agent")>>
	Since it is under your control, it is no problem at all to request the transfer of goods to $arcologies[0].name.
<<elseif $PC.hacking >= 50>>
	It is within your skills to redirect an outgoing shipment to $arcologies[0].name for your retrieval.
<<elseif $activeArcology.direction == $arcologies[0].embargoTarget>>
	Due to your active embargo, trade with $activeArcology.name is not possible.
<<else>>
	<<set $targetArcology = $arcologies[0], _tempArc = $activeArcology>><<= arcologyOpinion()>><<set _prices = $opinion*10, $activeArcology = _tempArc>>
<</if>>
<<if $activeArcology.FSRomanRevivalist > 95>>
	<<if !isItemAccessible("a toga")>>
		<<if ($activeArcology.government == "your trustees") || ($activeArcology.government == "your agent")>>

<<link "Request a shipment of togas" "Neighbor Interact">>
				<<set $clothesBoughtToga = 1>>
			<</link>>
		<<elseif $PC.hacking >= 50>>

<<link "Divert an outgoing shipment of togas" "Neighbor Interact">>
				<<set $clothesBoughtToga = 1>>
			<</link>>
		<<elseif $activeArcology.direction != $arcologies[0].embargoTarget>>

<<link "Purchase a shipment of togas" "Neighbor Interact">>
				<<set $clothesBoughtToga = 1>>
				<<run cashX(forceNeg(Math.trunc((7500-_prices)*$upgradeMultiplierTrade)), "capEx")>>
			<</link>> //Will cost <<print cashFormat(Math.trunc((7500-_prices)*$upgradeMultiplierTrade))>>//
		<</if>>
	<<else>>

You already have enough togas.
	<</if>>
	<<set _exports = 1>>
<<elseif $activeArcology.FSEdoRevivalist > 95>>
	<<if !isItemAccessible("a kimono")>>
		<<if ($activeArcology.government == "your trustees") || ($activeArcology.government == "your agent")>>

<<link "Request a shipment of kimonos" "Neighbor Interact">>
				<<set $clothesBoughtKimono = 1>>
			<</link>>
		<<elseif $PC.hacking >= 50>>

<<link "Divert an outgoing shipment of kimonos" "Neighbor Interact">>
				<<set $clothesBoughtKimono = 1>>
			<</link>>
		<<elseif $activeArcology.direction != $arcologies[0].embargoTarget>>

<<link "Purchase a shipment of kimonos" "Neighbor Interact">>
				<<set $clothesBoughtKimono = 1>>
				<<run cashX(forceNeg(Math.trunc((7500-_prices)*$upgradeMultiplierTrade)), "capEx")>>
			<</link>> //Will cost <<print cashFormat(Math.trunc((7500-_prices)*$upgradeMultiplierTrade))>>//
		<</if>>
	<<else>>

You already have enough kimonos.
	<</if>>
	<<set _exports = 1>>
<<elseif $activeArcology.FSArabianRevivalist > 95>>
	<<if !isItemAccessible("harem gauze")>>
		<<if ($activeArcology.government == "your trustees") || ($activeArcology.government == "your agent")>>

<<link "Request a shipment of silken harem garb" "Neighbor Interact">>
				<<set $clothesBoughtHarem = 1>>
			<</link>>
		<<elseif $PC.hacking >= 50>>

<<link "Divert an outgoing shipment of silken harem garb" "Neighbor Interact">>
				<<set $clothesBoughtHarem = 1>>
			<</link>>
		<<elseif $activeArcology.direction != $arcologies[0].embargoTarget>>

<<link "Purchase a shipment of silken harem garb" "Neighbor Interact">>
				<<set $clothesBoughtHarem = 1>>
				<<run cashX(forceNeg(Math.trunc((7500-_prices)*$upgradeMultiplierTrade)), "capEx")>>
			<</link>> //Will cost <<print cashFormat(Math.trunc((7500-_prices)*$upgradeMultiplierTrade))>>//
		<</if>>
	<<else>>

You already have enough silk.
	<</if>>
	<<set _exports = 1>>
<<elseif $activeArcology.FSAztecRevivalist > 95>>
	<<if !isItemAccessible("a huipil")>>
		<<if ($activeArcology.government == "your trustees") || ($activeArcology.government == "your agent")>>

<<link "Request a shipment of huipils" "Neighbor Interact">>
				<<set $clothesBoughtHuipil = 1>>
			<</link>>
		<<elseif $PC.hacking >= 50>>

<<link "Divert an outgoing shipment of huipils" "Neighbor Interact">>
				<<set $clothesBoughtHuipil = 1>>
			<</link>>
		<<elseif $activeArcology.direction != $arcologies[0].embargoTarget>>

<<link "Purchase a shipment of huipils" "Neighbor Interact">>
				<<set $clothesBoughtHuipil = 1>>
				<<run cashX(forceNeg(Math.trunc((7500-_prices)*$upgradeMultiplierTrade)), "capEx")>>
			<</link>> //Will cost <<print cashFormat(Math.trunc((7500-_prices)*$upgradeMultiplierTrade))>>//
		<</if>>
	<<else>>

You already have enough huipils.
	<</if>>
	<<set _exports = 1>>
<<elseif $activeArcology.FSChineseRevivalist > 95>>
	<<if !isItemAccessible("a slutty qipao")>>
		<<if ($activeArcology.government == "your trustees") || ($activeArcology.government == "your agent")>>

<<link "Request a shipment of qipaos" "Neighbor Interact">>
				<<set $clothesBoughtQipao = 1>>
			<</link>>
		<<elseif $PC.hacking >= 50>>

<<link "Divert an outgoing shipment of qipaos" "Neighbor Interact">>
				<<set $clothesBoughtQipao = 1>>
			<</link>>
		<<elseif $activeArcology.direction != $arcologies[0].embargoTarget>>

<<link "Purchase a shipment of qipaos" "Neighbor Interact">>
				<<set $clothesBoughtQipao = 1>>
				<<run cashX(forceNeg(Math.trunc((7500-_prices)*$upgradeMultiplierTrade)), "capEx")>>
			<</link>> //Will cost <<print cashFormat(Math.trunc((7500-_prices)*$upgradeMultiplierTrade))>>//
		<</if>>
	<<else>>

You already have enough skimpy qipaos.
	<</if>>
	<<set _exports = 1>>
<<elseif $activeArcology.FSEgyptianRevivalist > 95>>
	<<if !isItemAccessible("ancient Egyptian")>>
		<<if ($activeArcology.government == "your trustees") || ($activeArcology.government == "your agent")>>

<<link "Request a shipment of Egyptian necklace replicas" "Neighbor Interact">>
				<<set $clothesBoughtEgypt = 1>>
			<</link>>
		<<elseif $PC.hacking >= 50>>

<<link "Divert an outgoing shipment of Egyptian necklace replicas" "Neighbor Interact">>
				<<set $clothesBoughtEgypt = 1>>
			<</link>>
		<<elseif $activeArcology.direction != $arcologies[0].embargoTarget>>

<<link "Purchase a shipment of Egyptian necklace replicas" "Neighbor Interact">>
				<<set $clothesBoughtEgypt = 1>>
				<<run cashX(forceNeg(Math.trunc((7500-_prices)*$upgradeMultiplierTrade)), "capEx")>>
			<</link>> //Will cost <<print cashFormat(Math.trunc((7500-_prices)*$upgradeMultiplierTrade))>>//
		<</if>>
	<<else>>

You already have enough replicas of Egyptian necklaces.
	<</if>>
	<<set _exports = 1>>
<</if>>
<<if $activeArcology.FSPaternalist > 95>>
	<<if !isItemAccessible("conservative clothing")>>
		<<if ($activeArcology.government == "your trustees") || ($activeArcology.government == "your agent")>>

<<link "Request a shipment of conservative clothing" "Neighbor Interact">>
				<<set $clothesBoughtConservative = 1>>
			<</link>>
		<<elseif $PC.hacking >= 50>>

<<link "Divert an outgoing shipment of conservative clothing" "Neighbor Interact">>
				<<set $clothesBoughtConservative = 1>>
			<</link>>
		<<elseif $activeArcology.direction != $arcologies[0].embargoTarget>>

<<link "Purchase a shipment of conservative clothing" "Neighbor Interact">>
				<<set $clothesBoughtConservative = 1>>
				<<run cashX(forceNeg(Math.trunc((7500-_prices)*$upgradeMultiplierTrade)), "capEx")>>
			<</link>> //Will cost <<print cashFormat(Math.trunc((7500-_prices)*$upgradeMultiplierTrade))>>//
		<</if>>
	<<else>>

You already have enough modest clothing.
	<</if>>
	<<set _exports = 1>>
<<elseif $activeArcology.FSDegradationist > 95>>
	<<if !isItemAccessible("chains")>>
		<<if ($activeArcology.government == "your trustees") || ($activeArcology.government == "your agent")>>

<<link "Request a shipment of binding chains" "Neighbor Interact">>
				<<set $clothesBoughtChains = 1>>
			<</link>>
		<<elseif $PC.hacking >= 50>>

<<link "Divert an outgoing shipment of binding chains" "Neighbor Interact">>
				<<set $clothesBoughtChains = 1>>
			<</link>>
		<<elseif $activeArcology.direction != $arcologies[0].embargoTarget>>

<<link "Purchase a shipment of binding chains" "Neighbor Interact">>
				<<set $clothesBoughtChains = 1>>
				<<run cashX(forceNeg(Math.trunc((7500-_prices)*$upgradeMultiplierTrade)), "capEx")>>
			<</link>> //Will cost <<print cashFormat(Math.trunc((7500-_prices)*$upgradeMultiplierTrade))>>//
		<</if>>
	<<else>>

You already have enough chains.
	<</if>>
	<<set _exports = 1>>
<</if>>
<<if $activeArcology.FSGenderFundamentalist > 95>>
	<<if !isItemAccessible("a bunny outfit")>>
		<<if ($activeArcology.government == "your trustees") || ($activeArcology.government == "your agent")>>

<<link "Request a shipment of bunny suits" "Neighbor Interact">>
				<<set $clothesBoughtBunny = 1>>
			<</link>>
		<<elseif $PC.hacking >= 50>>

<<link "Divert an outgoing shipment of bunny suits" "Neighbor Interact">>
				<<set $clothesBoughtBunny = 1>>
			<</link>>
		<<elseif $activeArcology.direction != $arcologies[0].embargoTarget>>

<<link "Purchase a shipment of bunny suits" "Neighbor Interact">>
				<<set $clothesBoughtBunny = 1>>
				<<run cashX(forceNeg(Math.trunc((7500-_prices)*$upgradeMultiplierTrade)), "capEx")>>
			<</link>> //Will cost <<print cashFormat(Math.trunc((7500-_prices)*$upgradeMultiplierTrade))>>//
		<</if>>
	<<else>>

You already have enough bunny suits and bowties.
	<</if>>
	<<set _exports = 1>>
<</if>>
<<if $activeArcology.FSPhysicalIdealist > 95>>
	<<if !isItemAccessible("body oil")>>
		<<if ($activeArcology.government == "your trustees") || ($activeArcology.government == "your agent")>>

<<link "Request a shipment of body oil" "Neighbor Interact">>
				<<set $clothesBoughtOil = 1>>
			<</link>>
		<<elseif $PC.hacking >= 50>>

<<link "Divert an outgoing shipment of body oil" "Neighbor Interact">>
				<<set $clothesBoughtOil = 1>>
			<</link>>
		<<elseif $activeArcology.direction != $arcologies[0].embargoTarget>>

<<link "Purchase a shipment of body oil" "Neighbor Interact">>
				<<set $clothesBoughtOil = 1>>
				<<run cashX(forceNeg(Math.trunc((7500-_prices)*$upgradeMultiplierTrade)), "capEx")>>
			<</link>> //Will cost <<print cashFormat(Math.trunc((7500-_prices)*$upgradeMultiplierTrade))>>//
		<</if>>
	<<else>>

You already have enough body oil.
	<</if>>
	<<set _exports = 1>>
<<elseif $activeArcology.FSHedonisticDecadence > 95>>
	<<if !isItemAccessible("stretch pants and a crop-top")>>
		<<if ($activeArcology.government == "your trustees") || ($activeArcology.government == "your agent")>>

<<link "Request a shipment of stretch pants and crop-tops" "Neighbor Interact">>
				<<set $clothesBoughtLazyClothes = 1>>
			<</link>>
		<<elseif $PC.hacking >= 50>>

<<link "Divert an outgoing shipment of stretch pants and crop-tops" "Neighbor Interact">>
				<<set $clothesBoughtLazyClothes = 1>>
			<</link>>
		<<elseif $activeArcology.direction != $arcologies[0].embargoTarget>>

<<link "Purchase a shipment of stretch pants and crop-tops" "Neighbor Interact">>
				<<set $clothesBoughtLazyClothes = 1>>
				<<run cashX(forceNeg(Math.trunc((7500-_prices)*$upgradeMultiplierTrade)), "capEx")>>
			<</link>> //Will cost <<print cashFormat(Math.trunc((7500-_prices)*$upgradeMultiplierTrade))>>//
		<</if>>
	<<else>>

You already have enough elastic waistbands and tight tops.
	<</if>>
	<<set _exports = 1>>
<</if>>
<<if $activeArcology.FSChattelReligionist > 95>>
	<<if !isItemAccessible("a chattel habit")>>
		<<if ($activeArcology.government == "your trustees") || ($activeArcology.government == "your agent")>>

<<link "Request a shipment of chattel religionist habits" "Neighbor Interact">>
				<<set $clothesBoughtHabit = 1>>
			<</link>>
		<<elseif $PC.hacking >= 50>>

<<link "Divert an outgoing shipment of chattel religionist habits" "Neighbor Interact">>
				<<set $clothesBoughtHabit = 1>>
			<</link>>
		<<elseif $activeArcology.direction != $arcologies[0].embargoTarget>>

<<link "Purchase a shipment of chattel religionist habits" "Neighbor Interact">>
				<<set $clothesBoughtHabit = 1>>
				<<run cashX(forceNeg(Math.trunc((7500-_prices)*$upgradeMultiplierTrade)), "capEx")>>
			<</link>> //Will cost <<print cashFormat(Math.trunc((7500-_prices)*$upgradeMultiplierTrade))>>//
		<</if>>
	<<else>>

You already have enough chattel religionist habits.
	<</if>>
	<<set _exports = 1>>
<</if>>
<<if $activeArcology.FSPastoralist > 95>>
	<<if !isItemAccessible("Western clothing")>>
		<<if ($activeArcology.government == "your trustees") || ($activeArcology.government == "your agent")>>

<<link "Request a shipment of Western clothing" "Neighbor Interact">>
				<<set $clothesBoughtWestern = 1>>
			<</link>>
		<<elseif $PC.hacking >= 50>>

<<link "Divert an outgoing shipment of Western clothing" "Neighbor Interact">>
				<<set $clothesBoughtWestern = 1>>
			<</link>>
		<<elseif $activeArcology.direction != $arcologies[0].embargoTarget>>

<<link "Purchase a shipment of Western clothing" "Neighbor Interact">>
				<<set $clothesBoughtWestern = 1>>
				<<run cashX(forceNeg(Math.trunc((7500-_prices)*$upgradeMultiplierTrade)), "capEx")>>
			<</link>> //Will cost <<print cashFormat(Math.trunc((7500-_prices)*$upgradeMultiplierTrade))>>//
		<</if>>
	<<else>>

You already have enough rancher outfits.
	<</if>>
	<<set _exports = 1>>
<</if>>
<<if $activeArcology.FSRepopulationFocus > 95>>
	<<if !isItemAccessible("a maternity dress")>>
		<<if ($activeArcology.government == "your trustees") || ($activeArcology.government == "your agent")>>

<<link "Request a shipment of maternity clothing" "Neighbor Interact">>
				<<set $clothesBoughtMaternityDress = 1>>
			<</link>>
		<<elseif $PC.hacking >= 50>>

<<link "Divert an outgoing shipment of maternity clothing" "Neighbor Interact">>
				<<set $clothesBoughtMaternityDress = 1>>
			<</link>>
		<<elseif $activeArcology.direction != $arcologies[0].embargoTarget>>

<<link "Purchase a shipment of maternity clothing" "Neighbor Interact">>
				<<set $clothesBoughtMaternityDress = 1>>
				<<run cashX(forceNeg(Math.trunc((7500-_prices)*$upgradeMultiplierTrade)), "capEx")>>
			<</link>> //Will cost <<print cashFormat(Math.trunc((7500-_prices)*$upgradeMultiplierTrade))>>//
		<</if>>
	<<else>>

You already have enough maternity dresses.
	<</if>>
	<<if !isItemAccessible("attractive lingerie for a pregnant woman")>>
		<<if ($activeArcology.government == "your trustees") || ($activeArcology.government == "your agent")>>

<<link "Request a shipment of maternity lingerie" "Neighbor Interact">>
				<<set $clothesBoughtMaternityLingerie = 1>>
			<</link>>
		<<elseif $PC.hacking >= 50>>

<<link "Divert an outgoing shipment of maternity lingerie" "Neighbor Interact">>
				<<set $clothesBoughtMaternityLingerie = 1>>
			<</link>>
		<<elseif $activeArcology.direction != $arcologies[0].embargoTarget>>

<<link "Purchase a shipment of maternity lingerie" "Neighbor Interact">>
				<<set $clothesBoughtMaternityLingerie = 1>>
				<<run cashX(forceNeg(Math.trunc((7500-_prices)*$upgradeMultiplierTrade)), "capEx")>>
			<</link>> //Will cost <<print cashFormat(Math.trunc((7500-_prices)*$upgradeMultiplierTrade))>>//
		<</if>>
	<<else>>

You already have enough lingerie suited for pregnant women.
	<</if>>
	<<if !isItemAccessible("a small empathy belly")>>
		<<if ($activeArcology.government == "your trustees") || ($activeArcology.government == "your agent")>>

<<link "Request a shipment of empathy bellies" "Neighbor Interact">>
				<<set $clothesBoughtBelly = 1>>
			<</link>>
		<<elseif $PC.hacking >= 50>>

<<link "Divert an outgoing shipment of empathy bellies" "Neighbor Interact">>
				<<set $clothesBoughtBelly = 1>>
			<</link>>
		<<elseif $activeArcology.direction != $arcologies[0].embargoTarget>>

<<link "Purchase a shipment of empathy bellies" "Neighbor Interact">>
				<<set $clothesBoughtBelly = 1>>
				<<run cashX(forceNeg(Math.trunc((15000-(_prices*2))*$upgradeMultiplierTrade)), "capEx")>>
			<</link>> //Will cost <<print cashFormat(Math.trunc(15000-(_prices*2)))>>//
		<</if>>
	<<else>>

You already have enough fake baby bumps.
	<</if>>
	<<set _exports = 1>>
<</if>>
<<if _exports != 1>>
	<<if $activeArcology.direction == $arcologies[0].embargoTarget>>
		Fortunately,
	<<else>>
		Unfortunately,
	<</if>>
	they have nothing of value.
<</if>>

<<if $arcologies[0].embargoTarget != -1>>

	[[Cancel economic warfare|Neighbor Interact][$arcologies[0].embargoTarget = -1]]
<</if>>
<<if $arcologies[0].influenceTarget != -1>>

	[[Stop trying to influence neighboring arcologies|Neighbor Interact][$arcologies[0].influenceTarget = -1]]
<</if>>
<<if $arcologies[0].CyberEconomicTarget != -1>>

	[[Cancel cyber economic warfare|Neighbor Interact][$arcologies[0].CyberEconomicTarget = -1]]
<</if>>
<<if $arcologies[0].CyberReputationTarget != -1>>

	[[Cancel character assassination|Neighbor Interact][$arcologies[0].CyberReputationTarget = -1]]
<</if>>