<?xml version="1.0" encoding="utf-8"?>
<Patch>

	<!-- ========== Corpo Base ========== -->

	<Operation Class="PatchOperationAdd">
		<xpath>Defs/TraderKindDef[defName="MF_Base_Corporate_Standard"]/stockGenerators</xpath>
		<value>
			<li Class="StockGenerator_SingleDef">
				<thingDef>FSX</thingDef>
				<countRange>
					<min>25</min>
					<max>100</max>
				</countRange>
			</li>
			<li Class="StockGenerator_SingleDef">
				<thingDef>Prometheum</thingDef>
				<countRange>
					<min>25</min>
					<max>100</max>
				</countRange>
			</li>
			<li Class="StockGenerator_Tag">
				<tradeTag>CE_Ammo</tradeTag>
				<countRange>
					<min>500</min>
					<max>2000</max>
				</countRange>
				<thingDefCountRange>
					<min>5</min>
					<max>9</max>
				</thingDefCountRange>
			</li>
			<li Class="StockGenerator_Tag">
				<tradeTag>CE_MediumAmmo</tradeTag>
				<countRange>
					<min>30</min>
					<max>100</max>
				</countRange>
				<thingDefCountRange>
					<min>5</min>
					<max>8</max>
				</thingDefCountRange>
			</li>
			<li Class="StockGenerator_Tag">
				<tradeTag>CE_HeavyAmmo</tradeTag>
				<countRange>
					<min>10</min>
					<max>50</max>
				</countRange>
				<thingDefCountRange>
					<min>4</min>
					<max>6</max>
				</thingDefCountRange>
			</li>
			<li Class="StockGenerator_Category">
				<categoryDef>Ammo</categoryDef>
				<thingDefCountRange>
					<min>0</min>
					<max>0</max>
				</thingDefCountRange>
			</li>
			<li Class="StockGenerator_Tag">
				<tradeTag>CE_Turret</tradeTag>
				<thingDefCountRange>
					<min>-2</min>
					<max>4</max>
				</thingDefCountRange>
				<countRange>
					<min>1</min>
					<max>2</max>
				</countRange>
			</li>
			<li Class="StockGenerator_Category">
				<categoryDef>WeaponsTurrets</categoryDef>
				<thingDefCountRange>
					<min>0</min>
					<max>0</max>
				</thingDefCountRange>
			</li>
			<li Class="StockGenerator_Animals">
				<tradeTagsSell>
					<li>CE_AnimalBoom</li>
				</tradeTagsSell>
				<tradeTagsBuy>
					<li>CE_AnimalBoom</li>
				</tradeTagsBuy>
				<kindCountRange>
					<min>1</min>
					<max>2</max>
				</kindCountRange>
				<countRange>
					<min>-2</min>
					<max>4</max>
				</countRange>
			</li>
		</value>
	</Operation>

	<!-- ========== Corpo Caravan ========== -->

	<Operation Class="PatchOperationAdd">
		<xpath>Defs/TraderKindDef[defName="MF_Corporate_Caravan_BulkGoods"]/stockGenerators</xpath>
		<value>
			<li Class="StockGenerator_Tag">
				<tradeTag>CE_Ammo</tradeTag>
				<countRange>
					<min>200</min>
					<max>400</max>
				</countRange>
				<thingDefCountRange>
					<min>1</min>
					<max>4</max>
				</thingDefCountRange>
			</li>
			<li Class="StockGenerator_Tag">
				<tradeTag>CE_MediumAmmo</tradeTag>
				<countRange>
					<min>20</min>
					<max>40</max>
				</countRange>
				<thingDefCountRange>
					<min>2</min>
					<max>6</max>
				</thingDefCountRange>
			</li>
			<li Class="StockGenerator_Tag">
				<tradeTag>CE_HeavyAmmo</tradeTag>
				<countRange>
					<min>5</min>
					<max>10</max>
				</countRange>
				<thingDefCountRange>
					<min>2</min>
					<max>4</max>
				</thingDefCountRange>
			</li>
			<li Class="StockGenerator_Category">
				<categoryDef>Ammo</categoryDef>
				<thingDefCountRange>
					<min>0</min>
					<max>0</max>
				</thingDefCountRange>
			</li>
		</value>
	</Operation>

	<Operation Class="PatchOperationAdd">
		<xpath>Defs/TraderKindDef[defName="MF_Corporate_Caravan_BulkGoods"]/stockGenerators</xpath>
		<value>
			<li Class="StockGenerator_SingleDef">
				<thingDef>FSX</thingDef>
				<countRange>
					<min>25</min>
					<max>65</max>
				</countRange>
			</li>
			<li Class="StockGenerator_SingleDef">
				<thingDef>Prometheum</thingDef>
				<countRange>
					<min>25</min>
					<max>65</max>
				</countRange>
			</li>
		</value>
	</Operation>

	<Operation Class="PatchOperationAdd">
		<xpath>Defs/TraderKindDef[defName="MF_Corporate_Caravan_Slaver"]/stockGenerators</xpath>
		<value>
			<li Class="StockGenerator_Tag">
				<tradeTag>CE_Ammo</tradeTag>
				<countRange>
					<min>100</min>
					<max>300</max>
				</countRange>
				<thingDefCountRange>
					<min>1</min>
					<max>3</max>
				</thingDefCountRange>
			</li>
			<li Class="StockGenerator_Tag">
				<tradeTag>CE_MediumAmmo</tradeTag>
				<countRange>
					<min>5</min>
					<max>20</max>
				</countRange>
				<thingDefCountRange>
					<min>1</min>
					<max>4</max>
				</thingDefCountRange>
			</li>
			<li Class="StockGenerator_Tag">
				<tradeTag>CE_HeavyAmmo</tradeTag>
				<countRange>
					<min>5</min>
					<max>10</max>
				</countRange>
				<thingDefCountRange>
					<min>1</min>
					<max>2</max>
				</thingDefCountRange>
			</li>
			<li Class="StockGenerator_Category">
				<categoryDef>Ammo</categoryDef>
				<thingDefCountRange>
					<min>0</min>
					<max>0</max>
				</thingDefCountRange>
			</li>
		</value>
	</Operation>

	<!-- Combat Supplier -->

	<Operation Class="PatchOperationAdd">
		<xpath>Defs/TraderKindDef[defName="MF_Corporate_Caravan_CombatSupplier"]/stockGenerators</xpath>
		<value>
			<li Class="StockGenerator_SingleDef">
				<thingDef>FSX</thingDef>
				<countRange>
					<min>15</min>
					<max>40</max>
				</countRange>
			</li>
			<li Class="StockGenerator_SingleDef">
				<thingDef>Prometheum</thingDef>
				<countRange>
					<min>15</min>
					<max>40</max>
				</countRange>
			</li>
			<li Class="StockGenerator_Tag">
				<tradeTag>CE_Ammo</tradeTag>
				<countRange>
					<min>400</min>
					<max>1000</max>
				</countRange>
				<price>Cheap</price>
				<thingDefCountRange>
					<min>3</min>
					<max>8</max>
				</thingDefCountRange>
			</li>
			<li Class="StockGenerator_Tag">
				<tradeTag>CE_MediumAmmo</tradeTag>
				<countRange>
					<min>30</min>
					<max>60</max>
				</countRange>
				<price>Cheap</price>
				<thingDefCountRange>
					<min>3</min>
					<max>6</max>
				</thingDefCountRange>
			</li>
			<li Class="StockGenerator_Tag">
				<tradeTag>CE_HeavyAmmo</tradeTag>
				<countRange>
					<min>10</min>
					<max>15</max>
				</countRange>
				<price>Cheap</price>
				<thingDefCountRange>
					<min>4</min>
					<max>6</max>
				</thingDefCountRange>
			</li>
			<li Class="StockGenerator_Category">
				<categoryDef>Ammo</categoryDef>
				<thingDefCountRange>
					<min>0</min>
					<max>0</max>
				</thingDefCountRange>
			</li>
			<li Class="StockGenerator_Tag">
				<tradeTag>CE_Turret</tradeTag>
				<thingDefCountRange>
					<min>-4</min>
					<max>2</max>
				</thingDefCountRange>
				<countRange>
					<min>1</min>
					<max>1</max>
				</countRange>
			</li>
			<li Class="StockGenerator_Category">
				<categoryDef>WeaponsTurrets</categoryDef>
				<thingDefCountRange>
					<min>0</min>
					<max>0</max>
				</thingDefCountRange>
			</li>
			<li Class="StockGenerator_Animals">
				<tradeTagsSell>
					<li>CE_AnimalBoom</li>
				</tradeTagsSell>
				<tradeTagsBuy>
					<li>CE_AnimalBoom</li>
				</tradeTagsBuy>
				<kindCountRange>
					<min>1</min>
					<max>1</max>
				</kindCountRange>
				<countRange>
					<min>-1</min>
					<max>2</max>
				</countRange>
			</li>
		</value>
	</Operation>

	<Operation Class="PatchOperationAdd">
		<xpath>Defs/TraderKindDef[defName="MF_Corporate_Caravan_Exotic"]/stockGenerators</xpath>
		<value>
			<li Class="StockGenerator_Animals">
				<tradeTagsSell>
					<li>CE_AnimalBoom</li>
				</tradeTagsSell>
				<tradeTagsBuy>
					<li>CE_AnimalBoom</li>
				</tradeTagsBuy>
				<kindCountRange>
					<min>1</min>
					<max>2</max>
				</kindCountRange>
				<countRange>
					<min>-2</min>
					<max>4</max>
				</countRange>
			</li>
		</value>
	</Operation>

	<!-- Orbital Corpo Trader -->

	<Operation Class="PatchOperationAdd">
		<xpath>Defs/TraderKindDef[defName="MF_Orbital_Corporate"]/stockGenerators</xpath>
		<value>
			<li Class="StockGenerator_Tag">
				<tradeTag>CE_Ammo</tradeTag>
				<countRange>
					<min>200</min>
					<max>800</max>
				</countRange>
				<price>Cheap</price>
				<thingDefCountRange>
					<min>3</min>
					<max>6</max>
				</thingDefCountRange>
			</li>
			<li Class="StockGenerator_Tag">
				<tradeTag>CE_MediumAmmo</tradeTag>
				<countRange>
					<min>60</min>
					<max>120</max>
				</countRange>
				<price>Cheap</price>
				<thingDefCountRange>
					<min>4</min>
					<max>7</max>
				</thingDefCountRange>
			</li>
			<li Class="StockGenerator_Tag">
				<tradeTag>CE_HeavyAmmo</tradeTag>
				<countRange>
					<min>15</min>
					<max>50</max>
				</countRange>
				<price>Cheap</price>
				<thingDefCountRange>
					<min>2</min>
					<max>4</max>
				</thingDefCountRange>
			</li>
			<li Class="StockGenerator_Category">
				<categoryDef>Ammo</categoryDef>
				<thingDefCountRange>
					<min>0</min>
					<max>0</max>
				</thingDefCountRange>
			</li>
		</value>
	</Operation>

</Patch>