:: attackOptions [nobr]

<<set $nextButton = " ", $nextLink = "attackOptions", $showEncyclopedia = 1, $encyclopedia = "Battles">>

<<if $majorBattle == 0>>
	<strong>Attack Imminent</strong>
<<else>>
	<strong>Major Attack Imminent</strong>
<</if>>
<hr>
<<if $majorBattle == 0>>
	<<if $hasFoughtOnce == 1>>
		The ominous message dominates the screens of your office, <<print $assistantName>> quickly gathers all information available to prepare for battle.
		<<if $attackType == "raiders">>
			<<if $recon >= 1>>
				A disorganized horde of raiders is coming to your city. To such jackals your arcology surely looks like an appetizing morsel.
				Fortunately you knew of their coming, thanks to your recon systems.
			<<else>>
				Some of your citizens saw the disorganized horde of raiders coming towards the city and quickly reported it. To such jackals your arcology surely looks like an appetizing morsel.
			<</if>>
			<br>
			Raiders are roaming gangs of bandits, preying on the vulnerable supply lines of free cities and old world nations. They are rarely equipped with decent armaments and even more rarely have any formal military training, but they make up for that with high mobility and numbers.
		<<elseif $attackType == "free city">>
			<<if $recon >= 1>>
				A menacing column of consumed mercenaries and slavers is coming to your city. Another free city is ready to use their best tools to hit a dangerous competitor where it hurts.
				Fortunately you knew of their coming, thanks to your recon systems.
			<<else>>
				Some of your citizens saw the menacing column of consumed mercenaries and slavers and rushed to your office to bring the grim news. Another free city is ready to use their best tools to bring down a dangerous competitor.
			<</if>>
			<br>
			Free City expeditions are usually composed of mercenaries hired to take down sensible supplies or infrastructure in order to damage the enemies of their contractor. They have on average good equipment and training, together with decent mobility, making them a formidable force. Their biggest weakness however is their relatively low numbers.
		<<elseif $attackType == "freedom fighters">>
			<<if $recon >= 1>>
				A dangerous looking army of guerrillas is gathering just outside the arcology. Fanatics and idealists armed with dead men's words and hope, set on erasing your fledgling empire. 
				Fortunately you knew of their coming, thanks to your recon systems.
			<<else>>
				Some of your citizens saw the dangerous looking army of guerrillas is gathering just outside the arcology. Fanatics and idealists armed with dead men's words and hope, set on erasing your fledgling empire.
			<</if>>
			<br>
			Freedom Fighters are groups of individuals fighting to rid the planet of "evils" such as the free cities and their way of life. Lacking the strenght to assault one directly they fight guerrilla style slowly starving to death their enemies. They are rarely well equipped, but with good training and mobility they are not a threat that can be taken lightly.
		<<elseif $attackType == "old world">>
			<<if $recon >= 1>>
				A diciplined yet dusty, scruffy old world army is approaching the confines of your arcology. There's nothing better than a good war to unite the electorate and your arcology is just the perfect target. 
				Fortunately you knew of their coming, thanks to your recon systems.
			<<else>>
				Some of your citizens saw the diciplined yet dusty, scruffy old world army is approaching the confines of your arcology. There's nothing better than a good war to unite the electorate and your arcology is just the perfect target. 
			<</if>>
			<br>
			Old world expeditions are usually sent to secure resources and trade routs for their nation or, more often, to provide their citizens with a boogey man to be scared of. They are usually decently equipped and trained, which together with their generous numbers make them a tough nut to crack. They however often lack in mobility.
		<</if>>
	<<else>>
		Your assistant interrupted your rest to bring the grim news. You quickly rush to your console, where you can see one of the convoys supplying your arcology has been attacked and looted. It seems a group of desperate looking bandits decided it was a good idea to steal from you.
		Due to their great wealth, free cities inevitably become tasty morsels for anyone able to field armed men. Considering the particular needs of arcologies their supply lines tend to be delicate lifelines, often preyed upon by those who stand to gain from the free city downfall.
	<</if>>
<<else>>
	<<if $hasFoughtMajorBattleOnce == 1>>
		The ominous message dominates the screens of your office, <<print $assistantName>> quickly gathers all information available to prepare for battle.
		<<if $attackType == "raiders">>
			<<if $recon >= 1>>
				A massive, disorganized horde of raiders is coming to your city. It seems a warlord of the wastelands massed enough men to try and obtain a slice of territory of his own, if he's not defeated there won't be a tomorrow for the arcology.
				Fortunately you knew of their coming, thanks to your recon systems.
			<<else>>
				Some of your citizens saw the massive, disorganized horde of raiders coming towards the city and quickly reported it. It seems a warlord of the wastelands massed enough men to try and obtain a slice of territory of his own, if he's not defeated there won't be a tomorrow for the arcology.
			<</if>>
			<br>
			Raiders are roaming gangs of bandits, preying on the vulnerable supply lines of free cities and old world nations. They are rarely equipped with decent armaments and even more rarely have any formal military training, but they make up for that with high mobility and numbers.
		<<elseif $attackType == "free city">>
			<<if $recon >= 1>>
				A massive, menacing column of consumed mercenaries and slavers is coming to your city. The quantity of money invested in this assault is staggering, it seems you made some very powerful enemies. If they're not defeated your story will end this day.
				Fortunately you knew of their coming, thanks to your recon systems.
			<<else>>
				Some of your citizens saw the massive, menacing column of consumed mercenaries and slavers and rushed to your office to bring the grim news. The quantity of money invested in this assault is staggering, it seems you made some very powerful enemies. If they're not defeated your story will end this day.
			<</if>>
			<br>
			Free City expeditions are usually composed of mercenaries hired to take down sensible supplies or infrastructure in order to damage the enemies of their contractor. They have on average good equipment and training, together with decent mobility, making them a formidable force. Their biggest weakness however is their low numbers.
		<<elseif $attackType == "freedom fighters">>
			<<if $recon >= 1>>
				A massive, dangerous army of guerrillas is gathering just outside the arcology. A huge ocean of fanatics and idealists armed with dead men's words and hope, set on erasing your fledgling empire once and for all. And this time they won't stop until your body is burnt to a crisp.
				Fortunately you knew of their coming, thanks to your recon systems.
			<<else>>
				Some of your citizens saw the massive, dangerous army of guerrillas is gathering just outside the arcology. A huge ocean of fanatics and idealists armed with dead men's words and hope, set on erasing your fledgling empire once and for all. And this time they won't stop until your body is burnt to a crisp.
			<</if>>
			<br>
			Freedom Fighters are groups of individuals fighting to rid the planet of "evils" such as the free cities and their way of life. Lacking the strenght to assault one directly they fight guerrilla style slowly starving to death their enemies. They are rarely well equipped, but with good training and mobility they are not a threat that can be taken lightly.
		<<elseif $attackType == "old world">>
			<<if $recon >= 1>>
				A massive, diciplined ld world army is approaching the confines of your arcology. It seems one of the nations of the old world is determined to put your arcology to rest once and for all or die trying.
				Fortunately you knew of their coming, thanks to your recon systems.
			<<else>>
				Some of your citizens saw the massive, diciplined old world army is approaching the confines of your arcology. It seems one of the nations of the old world is determined to put your arcology to rest once and for all or die trying.
			<</if>>
			<br>
			Old world expeditions are usually sent to secure resources and trade routs for their nation or, more often, to provide their citizens with a boogey man to be scared of. They are usually decently equipped and trained, which together with their generous numbers make them a tough nut to crack. They however often lack in mobility.
		<</if>>
	<<else>>
		Your assistant interrupted your rest to bring the grim news. You quickly rush to your console, where you can the satellite images coming in of the force about to crash against your arcology. It's not the first time your armies fought for the survival of your empire, but this time it seems it will be a fight for life or death.
		<br>
		<br>
		<<if $attackType == "raiders">>
			<<if $recon >= 1>>
				A massive, disorganized horde of raiders is coming to your city. It seems a warlord of the wastelands massed enough men to try and obtain a slice of territory of his own, if he's not defeated there won't be a tomorrow for the arcology.
				Fortunately you knew of their coming, thanks to your recon systems.
			<<else>>
				Some of your citizens saw the massive, disorganized horde of raiders coming towards the city and quickly reported it. It seems a warlord of the wastelands massed enough men to try and obtain a slice of territory of his own, if he's not defeated there won't be a tomorrow for the arcology.
			<</if>>
			<br>
			Raiders are roaming gangs of bandits, preying on the vulnerable supply lines of free cities and old world nations. They are rarely equipped with decent armaments and even more rarely have any formal military training, but they make up for that with high mobility and numbers.
		<<elseif $attackType == "free city">>
			<<if $recon >= 1>>
				A massive, menacing column of consumed mercenaries and slavers is coming to your city. The quantity of money invested in this assault is staggering, it seems you made some very powerful enemies. If they're not defeated your story will end this day.
				Fortunately you knew of their coming, thanks to your recon systems.
			<<else>>
				Some of your citizens saw the massive, menacing column of consumed mercenaries and slavers and rushed to your office to bring the grim news. The quantity of money invested in this assault is staggering, it seems you made some very powerful enemies. If they're not defeated your story will end this day.
			<</if>>
			<br>
			Free City expeditions are usually composed of mercenaries hired to take down sensible supplies or infrastructure in order to damage the enemies of their contractor. They have on average good equipment and training, together with decent mobility, making them a formidable force. Their biggest weakness however is their relatively low numbers.
		<<elseif $attackType == "freedom fighters">>
			<<if $recon >= 1>>
				A massive, dangerous army of guerrillas is gathering just outside the arcology. A huge ocean of fanatics and idealists armed with dead men's words and hope, set on erasing your fledgling empire once and for all. And this time they won't stop until your body is burnt to a crisp.
				Fortunately you knew of their coming, thanks to your recon systems.
			<<else>>
				Some of your citizens saw the massive, dangerous army of guerrillas is gathering just outside the arcology. A huge ocean of fanatics and idealists armed with dead men's words and hope, set on erasing your fledgling empire once and for all. And this time they won't stop until your body is burnt to a crisp.
			<</if>>
			<br>
			Freedom Fighters are groups of individuals fighting to rid the planet of "evils" such as the free cities and their way of life. Lacking the strenght to assault one directly they fight guerrilla style slowly starving to death their enemies. They are rarely well equipped, but with good training and mobility they are not a threat that can be taken lightly.
		<<elseif $attackType == "old world">>
			<<if $recon >= 1>>
				A massive, diciplined ld world army is approaching the confines of your arcology. It seems one of the nations of the old world is determined to put your arcology to rest once and for all or die trying.
				Fortunately you knew of their coming, thanks to your recon systems.
			<<else>>
				Some of your citizens saw the massive, diciplined old world army is approaching the confines of your arcology. It seems one of the nations of the old world is determined to put your arcology to rest once and for all or die trying.
			<</if>>
			<br>
			Old world expeditions are usually sent to secure resources and trade routs for their nation or, more often, to provide their citizens with a boogey man to be scared of. They are usually decently equipped and trained, which together with their generous numbers make them a tough nut to crack. They however often lack in mobility.
		<</if>>
	<</if>>
<</if>>
<br><br>
__Recon__:
<br>
It seems your troops and your adversary will fight
<<if $battleTerrain == "rural">>
	in <strong>the rural land</strong> surrounding the free city.
<<elseif $battleTerrain == "hills">>
	on <strong>the hills</strong> around the free city.
<<elseif $battleTerrain == "coast">>
	along <strong>the coast</strong> just outside the free city.
<<elseif $battleTerrain == "outskirts">>
	right against <strong>the walls of the arcology.</strong>
<<elseif $battleTerrain == "mountains">>
	in <strong>the mountains</strong> overlooking the arcology.
<<elseif $battleTerrain == "wasteland">>
	in <strong>the wastelands</strong> outside the free city territory.
<</if>>
<<if $recon == 3>>
	Your recon capabilities are top notch. The information collected will be most likely correct or very close to be so:
<<elseif $recon == 2>>
	Your recon capabilities are decent. The information collected will be mostly close to the truth:
<<elseif $recon == 1>>
	Your recon capabilities are fairly low. The information collected will be quite inaccurate:
<<else>>
	Your recon capabilities are almost non-existent. The information collected will be wild guesses at best:
<</if>>
approximately <strong><<print $estimatedMen>> men</strong> are coming, they seems to be
<<if $expectedEquip <= 0>>
	<strong>poorly armed</strong>. Old rusty small arms are the norm with just a few barely working civilian vehicles. 
<<elseif $expectedEquip == 1>>
	<strong>lightly armed</strong>. Mostly small arms with some repurposed civilian vehicles and a scattered few machine guns. There's no sign of heavy vehicles, artillery or aircrafts.
<<elseif $expectedEquip == 2>>
	<strong>decently armed</strong>. Good quality small arms, machine guns a few mortars. There seems to be some heavy military vehicles coming as well.
<<elseif $expectedEquip == 3>>
	<strong>well armed</strong>. High quality small arms, snipers, demolitions teams, heavy duty machine guns and mortars. Heavy military vehicles are numerous and a few artillery piecies are accompaning the detachment. 
<<elseif $expectedEquip >= 4>>
	<strong>extremely well armed</strong>. Excellent small arms and specialized teams with heavy duty infantry support weapons. Heavy presence of armored military vehicles, artillery pieces and even some attack helicopters.
<</if>>

<hr>
__Battle Plan__:
<br>

/* leader assignment */
<span id="leader"><strong><<print $assistantName>></strong></span> will lead your troops.
	<br>&nbsp;&nbsp;&nbsp;&nbsp;
	<<link "Personally join the battle">>
		<<set $leadingTroops = "PC">>
		<<replace "#leader">><strong><<print $PC.name>></strong><</replace>>
	<</link>>
	|
	<<link "Let $assistantName lead the troops">>
		<<set $leadingTroops = "assistant">>
		<<replace "#leader">><strong><<print $assistantName>></strong><</replace>>
	<</link>>
	<<if $Bodyguard != 0 && $slavesOfficers == 1>>
	|
	<<link "Let your bodyguard lead your troops">>
		<<set $leadingTroops = "bodyguard">>
		<<replace "#leader">><strong><<print $Bodyguard.slaveName>></strong><</replace>>
	<</link>>
	<</if>>
	<<if $HeadGirl != 0 && $slavesOfficers == 1>>
	|
	<<link "Let your head girl lead your troops">>
		<<set $leadingTroops = "headGirl">>
		<<replace "#leader">><strong><<print $HeadGirl.slaveName>></strong><</replace>>
	<</link>>
	<</if>>
	<<if $militiaFounded == 1>>
	|
	<<link "Let the citizens' militia officers lead the troops">>
		<<set $leadingTroops = "citizen">>
		<<replace "#leader">><strong>The citizens' militia commander</strong><</replace>>
	<</link>>
	<</if>>
	<<if $mercenaries > 0>>
	|
	<<link "Let the mercenary officers lead the troops">>
		<<set $leadingTroops = "mercenary">>
		<<replace "#leader">><strong>The mercenary commander</strong><</replace>>
	<</link>>
	<</if>>
	<<if $securityForceCreate == 1>>
	|
	<<link "Let the colonel lead the troops">>
		<<set $leadingTroops = "colonel">>
		<<replace "#leader">><strong>$securityForceName's colonel</strong><</replace>>
	<</link>>
	<</if>>

/* troop deployment */
<br><br>
With your current readiness level you can <<if $deployedUnits > 0>>still send <strong><<print $deployableUnits>></strong> more units.<<else>>send <strong><<print $deployableUnits>></strong> units.<</if>>
<br>Deployable units:
<br>
<<set _mL = $militiaUnits.length>>
<<set _sL = $slaveUnits.length>>
<<set _meL = $mercUnits.length>>
<<if $deployableUnits > 0>>
		<<if $secBots.active == 1 && $secBots.isDeployed == 0 && $secBots.troops > 0>>
			<br>
			<<secBotsDescription>>
			<br>
			<<link "Deploy the unit">>
				<<set $secBots.isDeployed = 1>>
				<<set $deployableUnits-->>
				<<set $deployedUnits++>>
				<<set $deployingBots = 1>>
				<<goto "attackOptions">>
			<</link>>
		<</if>>
	<<for _i = 0; _i < _mL; _i++>>
		<<capture _i>>
		<<if $militiaUnits[_i].active == 1 && $militiaUnits[_i].isDeployed == 0 && $militiaUnits[_i].troops > 0>>
			<br>
			<<militiaUnitsDescription $militiaUnits[_i]>>
			<br>
			<<link "Deploy the unit">>
				<<set $militiaUnits[_i].isDeployed = 1>>
				<<set $deployableUnits-->>
				<<set $deployedUnits++>>
				<<goto "attackOptions">>
			<</link>>
		<</if>>
		<</capture>>
	<</for>>
	<<for _i = 0; _i < _sL; _i++>>
		<<capture _i>>
		<<if $slaveUnits[_i].active == 1 && $slaveUnits[_i].isDeployed == 0 && $slaveUnits[_i].troops > 0>>
			<br>
			<<slaveUnitsDescription $slaveUnits[_i]>>
			<br>
			<<link "Deploy the unit">>
				<<set $slaveUnits[_i].isDeployed = 1>>
				<<set $deployableUnits-->>
				<<set $deployedUnits++>>
				<<goto "attackOptions">>
			<</link>>
		<</if>>
		<</capture>>
	<</for>>
	<<for _i = 0; _i < _meL; _i++>>
		<<capture _i>>
		<<if $mercUnits[_i].active == 1 && $mercUnits[_i].isDeployed == 0 && $mercUnits[_i].troops > 0>>
			<br>
			<<mercUnitsDescription $mercUnits[_i]>>
			<br>
			<<link "Deploy the unit">>
				<<set $mercUnits[_i].isDeployed = 1>>
				<<set $deployableUnits-->>
				<<set $deployedUnits++>>
				<<goto "attackOptions">>
			<</link>>
		<</if>>
		<</capture>>
	<</for>>
<<else>>
	<br>
	<strong>Unit roster full.</strong>
<</if>>

<br><br>

Units about to be deployed:
<br>
<<if $deployedUnits > 0>>
		<<if $secBots.isDeployed == 1>>
			<br>
			<<secBotsDescription>>
			<br>
			<<link "Remove the unit">>
				<<set $secBots.isDeployed = 0>>
				<<set $deployableUnits++>>
				<<set $deployedUnits-->>
				<<set $deployingBots = 0>>
				<<goto "attackOptions">>
			<</link>>
		<</if>>
	<<for _i = 0; _i < _mL; _i++>>
		<<capture _i>>
		<<if $militiaUnits[_i].isDeployed == 1>>
			<br>
			<<militiaUnitsDescription $militiaUnits[_i]>>
			<br>
			<<link "Remove the unit">>
				<<set $militiaUnits[_i].isDeployed = 0>>
				<<set $deployableUnits++>>
				<<set $deployedUnits-->>
				<<goto "attackOptions">>
			<</link>>
		<</if>>
		<</capture>>
	<</for>>
	<<for _i = 0; _i < _sL; _i++>>
		<<capture _i>>
		<<if $slaveUnits[_i].isDeployed == 1>>
			<br>
			<<slaveUnitsDescription $slaveUnits[_i]>>
			<br>
			<<link "Remove the unit">>
				<<set $slaveUnits[_i].isDeployed = 0>>
				<<set $deployableUnits++>>
				<<set $deployedUnits-->>
				<<goto "attackOptions">>
			<</link>>
		<</if>>
		<</capture>>
	<</for>>
	<<for _i = 0; _i < _meL; _i++>>
		<<capture _i>>
		<<if $mercUnits[_i].isDeployed == 1>>
			<br>
			<<mercUnitsDescription $mercUnits[_i]>>
			<br>
			<<link "Remove the unit">>
				<<set $mercUnits[_i].isDeployed = 0>>
				<<set $deployableUnits++>>
				<<set $deployedUnits-->>
				<<goto "attackOptions">>
			<</link>>
		<</if>>
		<</capture>>
	<</for>>
<</if>>

<<if $majorBattle == 1 && $securityForceCreate == 1>>
	<br>
	<br>
	The size of the incoming attack warrants the intervention of the security force in its full force. They will <span id="SFI">not intervene</span>.
	<br>
	<<if $SFIntervention == 0>>
		<<link "Let the Security force intervene">>
			<<set $SFIntervention = 1>>
			<<replace "#SFI">>
				intervene
			<</replace>>
		<</link>>
		//The security force will join the battle with all the equipment they can mobilize within a short timeframe//
	<<else>>
		<<link "Do not let the Security force intervene">>
			<<set $SFIntervention = 0>>
			<<replace "#SFI">>
				not intevene
			<</replace>>
		<</link>>
		//The security force will not join the battle//
	<</if>>
	<br>//Some upgrades will be able to support the troops even if the security force does not intervene directly in the fight.//
<</if>>
		
<br><br>

/* tactics */
For this battle you choose to follow <span id="tactic"><strong><<print $chosenTactic>></strong></span> tactics.
<br><br>
Defensive tactics
<br>
<<link "Bait and Bleed">>
	<<set $chosenTactic = "Bait and Bleed">>
	<<replace "#tactic">><strong><<print $chosenTactic>></strong><</replace>>
<</link>>
<br>&nbsp;&nbsp;&nbsp;&nbsp;//Combines bait and switch tactics with guerriglia style assaults, with the objective of slowly bleed the enemy.//
<br>
<<link "Guerrilla">>
	<<set $chosenTactic = "Guerrilla">>
	<<replace "#tactic">><strong><<print $chosenTactic>></strong><</replace>>
<</link>>
<br>&nbsp;&nbsp;&nbsp;&nbsp;//Involves using terrain knowledge and small fast attacks to hinder and weaken the enemy.//
<br>
<<link "Choke Points">>
	<<set $chosenTactic = "Choke Points">>
	<<replace "#tactic">><strong><<print $chosenTactic>></strong><</replace>>
<</link>>
<br>&nbsp;&nbsp;&nbsp;&nbsp;//Involves using terrain knowledge and strong fortifications in order to stop the enemy on its track.//
<br>
<<link "Interior Lines">>
	<<set $chosenTactic = "Interior Lines">>
	<<replace "#tactic">><strong><<print $chosenTactic>></strong><</replace>>
<</link>>
<br>&nbsp;&nbsp;&nbsp;&nbsp;//Involves exploiting a defender's shorter logistics lines and redeployment times in order to keep the enemy pressured.//
<br>
<<link "Pincer Manouver">>
	<<set $chosenTactic = "Pincer Manouver">>
	<<replace "#tactic">><strong><<print $chosenTactic>></strong><</replace>>
<</link>>
<br>&nbsp;&nbsp;&nbsp;&nbsp;//Involves letting the enemy push back the centre in order to envelop their formation.//
<br>
<<link "Defense In Depth">>
	<<set $chosenTactic = "Defense In Depth">>
	<<replace "#tactic">><strong><<print $chosenTactic>></strong><</replace>>
<</link>>
<br>&nbsp;&nbsp;&nbsp;&nbsp;//Involves letting the enemy gain terrain to gain tactical superiority by alternating between delaying actions and small counterattacks.//
<br>
Offensive Tactics
<br>
<<link "Blitzkrieg">>
	<<set $chosenTactic = "Blitzkrieg">>
	<<replace "#tactic">><strong><<print $chosenTactic>></strong><</replace>>
<</link>>
<br>&nbsp;&nbsp;&nbsp;&nbsp;//Involves breaking the front of the enemy with a fast armored force concentrated into a small area.//
<br>
<<link "Human Wave">>
	<<set $chosenTactic = "Human Wave">>
	<<replace "#tactic">><strong><<print $chosenTactic>></strong><</replace>>
<</link>>
<br>&nbsp;&nbsp;&nbsp;&nbsp;//Involves assaulting the enemy with large numbers of infantry to overwhelm their lines.//
<br>
<br>
<<if $deployedUnits > 0>>
	<<link "Send your orders">>
		<<set $battleResult = 4>>						/* sets $battleResult value outside accepted range to avoid evaluation problems */
		<<if $hasFoughtOnce == 0>>
			<<set $hasFoughtOnce = 1>>
		<</if>>
		<<set $foughtThisWeek = 1>>
		<<goto "attackHandler">>
	<</link>>
<<else>>
	You need at least a unit in your roster to proceed to battle.
<</if>>
<br>
<<link "Surrender">>
	<<set $battleResult = -1>>
	<<if $hasFoughtOnce == 0>>
		<<set $hasFoughtOnce = 1>>
	<</if>>
	<<set $foughtThisWeek = 1>>
	<<goto "attackHandler">>
<</link>>
<br>
/* calculates bribe cost */
<<if $week <= 30>>
	<<set $bribeCost = 5000 + $baseBribePerAttacker * $attackTroops>>
<<elseif $week <= 30>>
	<<set $bribeCost = 10000 + $baseBribePerAttacker * $attackTroops>>
<<elseif $week <= 30>>
	<<set $bribeCost = 15000 + $baseBribePerAttacker * $attackTroops>>
<<elseif $week <= 30>>
	<<set $bribeCost = 20000 + $baseBribePerAttacker * $attackTroops>>
<<elseif $week <= 30>>
	<<set $bribeCost = 25000 + $baseBribePerAttacker * $attackTroops>>
<</if>>
<<if $majorBattle == 1>>
	<<set $bribeCost *= 3>>
<</if>>

<<link "Attempt to bribe">>
	<<set $battleResult = 1>>
	<<if $hasFoughtOnce == 0>>
		<<set $hasFoughtOnce = 1>>
	<</if>>
	<<set $foughtThisWeek = 1>>
	<<goto "attackHandler">>
<</link>>
<br>&nbsp;&nbsp;&nbsp;&nbsp;//Will cost around ¤<<print Math.round($bribeCost * (1 + either(-1,1) * random(2) * 0.1))>> (estimate).//