Brigade Modding

Brigades are the type of entity that represents the units of the game. The general rules of entity modding apply to brigades; the contents of the entity defined can have the following tags:

An example brigade file is posted here:

```
<entity>
	<type>etruscanAxemen</type>
	<class>brigade</class>

	<!-- stats -->
	<constxpdefeat>12.5</constxpdefeat>								<!-- xp award per unit killed (divided amongst its attackers when the unit routs or is completely killed) -->
	<consthitpoints>75</consthitpoints>							<!-- hitpoints per unit -->
	<constviewrange>16</constviewrange>								<!-- view distance in km (is doubled with full initiative) -->
	<constmeleedamageperday>75</constmeleedamageperday>				<!-- melee damage per day -->
	<constmissiledamagerate>30</constmissiledamagerate>
	<constmissilerange>4</constmissilerange>						<!-- melee damage per day -->
	<constmissilefiretime>0.093</constmissilefiretime>				<!-- THIS IS THE CORRECT FIRE RATE FOR THE ANIMATION -->
	<constmissiledefence>0.2</constmissiledefence>					<!-- percentage defence against missile damage e.g. damage = missiledamage * (1 - missiledefence) -->
	<constchargestrength>50</constchargestrength>
	<constchargeblock>10</constchargeblock>
	<constambush>25</constambush>
	<constrecon>0</constrecon>
	<constcargocapacityperunit>1</constcargocapacityperunit>		<!-- tons of cargo carried per unit (for food or ore) -->
	<constrecruitdays>4</constrecruitdays>							<!-- number of days to recruit/replace the whole brigade -->
	<constrecruitsperunit>1.5</constrecruitsperunit>					<!-- number recruits needed from their home city to add a man to the unit -->
	<constcostperday>20</constcostperday>							<!-- cost per day while in a city/fort -->
	<constwalkspeed>5</constwalkspeed>
	<construnspeed>8</construnspeed>

	<!--article>Spearmen</article-->
	<article>Units::Axemen</article>
	<portrait atlas="objportraits" sprite="etruscanaxemen"/>
	<tagsprite atlas="buffs" sprite="unittag_axeman"/>
	<mercfactiongroup weight="10">etruscan</mercfactiongroup>
	<mercfactiongroup weight="10">latin</mercfactiongroup>
	<mercfactiongroup weight="10">sabellic</mercfactiongroup>
	<mercfactiongroup weight="4">illyric</mercfactiongroup>
	<mercfactiongroup weight="5">greek</mercfactiongroup>
	<mercfactiongroup weight="7">gaul</mercfactiongroup>

	<containerorder>20</containerorder>

	<buildbutton atlas="buttons" sprite="buildetruscanaxemen"/>
	<buildmenuorder>20</buildmenuorder>
	<buildfactiongroup>etruscan</buildfactiongroup>

	<soundstyle>infantry</soundstyle>

	<!-- formation/stances -->
	<stanceclass>javelineer</stanceclass>
	<defaultstance class="brigadestance" type="skirmish"/>

	<!-- size of the brigade -->
	<basenumunits>20</basenumunits>

	<miniatureent class="objectmesh" type="mesh_mini_etruscanAxemen"/>
	<miniatureradius>1.0</miniatureradius>

	<!-- brigade unit composition -->
	<!-- format || unitclass, min, max, percentage -->
	<unit type="unit_etruscan_axeman">0 0 100</unit>
</entity>

```

## Default Brigade Types

* captives
* genericGeneral
* raidingShip
* colonistBrigade
* etruscanArchers
* etruscanAxemen
* etruscanGeneral
* etruscanHeavyCavalry
* etruscanHeavyHoplite
* etruscanHeavySwordsmen
* etruscanLightCavalry
* etruscanLightHoplite
* etruscanLightSwordsmen
* etruscanSpearmen
* foodcaravanbrigade
* gallicArchers
* gallicLightCavalry
* gallicGeneral
* gallicJavelineers
* gallicLightSwordsmen
* gallicNakedSwordsmen
* gallicNobleCavalry
* gallicNobleSwordsmen
* gallicSlingers
* gallicSpearmen
* greekHeavyHoplite
* greekHypaspist
* greekLightHoplite
* greekMountedJavelineers
* greekPeltasts
* greekPhalangites
* greekPsiloi
* greekSpearmen
* hostageBrigade
* illyricHeavyHoplite
* illyricHeavySwordsmen
* illyricLightHoplite
* illyricLightSwordsmen
* illyricMountedJavelineers
* illyricPeltasts
* illyricSkirmishers
* illyricSlingers
* illyricSpearmen
* latinEquites
* latinGeneral
* latinHastati
* latinHeavyHoplite
* latinLeves
* latinLightHoplite
* latinPrincipes
* latinSpearmen
* latinTriarii
* latinVelites
* lesserTrireme
* nonromanwarshipbrigade
* raiderArchers
* raiderLightCavalry
* raiderGeneral
* raiderHoplites
* raiderJavelineers
* raiderSkirmishers
* raiderSlingers
* romanwarshipbrigade
* sabellicHeavyHoplite
* sabellicHeavySwordsmen
* sabellicJavelineers
* sabellicLightHoplite
* sabellicLightSwordsmen
* sabellicNobleCavalry
* sabellicSpearmen
* sabellicVelites
* scorpionbrigade
* seacaravanbrigade
* slavebrigade
* woodcaravanbrigade
* workerBrigade