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

  <!--========== Smokeleaf Trader Patch - Neolithic Base ==========-->

  <Operation Class="PatchOperationSequence">
	    <success>Always</success>
		<operations>
            <li Class="ModCheck.FindFile">
                <modName>Core</modName>
                <file>TraderKinds_Base_Neolithic.xml</file>
            </li>
			<li Class="PatchOperationAdd">
				<xpath>Defs/TraderKindDef[defName = "Base_Neolithic_Standard"]/stockGenerators</xpath>
				<value>
					<li Class="StockGenerator_SingleDef">
						<thingDef>SmokeleafBuds</thingDef>
						<countRange>
							<min>75</min>
							<max>500</max>
						</countRange>
					</li>
				</value>
			</li>
			<li Class="PatchOperationAdd">
				<xpath>Defs/TraderKindDef[defName = "Base_Neolithic_Standard"]/stockGenerators</xpath>
				<value>
					<li Class="StockGenerator_SingleDef">
						<thingDef>SmokeleafSeed</thingDef>
						<countRange>
							<min>75</min>
							<max>500</max>
						</countRange>
					</li>
				</value>
			</li>
			<li Class="PatchOperationAdd">
				<xpath>Defs/TraderKindDef[defName = "Base_Neolithic_Standard"]/stockGenerators</xpath>
				<value>
					<li Class="StockGenerator_SingleDef">
						<thingDef>HempFiber</thingDef>
						<countRange>
							<min>75</min>
							<max>500</max>
						</countRange>
					</li>
				</value>
			</li>
		</operations>
	</Operation>

  <!--========== Smokeleaf Trader Patch - Outlander Base ==========-->
	
	<Operation Class="PatchOperationSequence">
	    <success>Always</success>
		<operations>
            <li Class="ModCheck.FindFile">
                <modName>Core</modName>
                <file>TraderKinds_Base_Outlander.xml</file>
            </li>
			<li Class="PatchOperationAdd">
				<xpath>Defs/TraderKindDef[defName = "Base_Outlander_Standard"]/stockGenerators</xpath>
				<value>
					<li Class="StockGenerator_SingleDef">
						<thingDef>Hempoline</thingDef>
						<countRange>
							<min>300</min>
							<max>500</max>
						</countRange>
					</li>
				</value>
			</li>
			<li Class="PatchOperationAdd">
				<xpath>Defs/TraderKindDef[defName = "Base_Outlander_Standard"]/stockGenerators</xpath>
				<value>
					<li Class="StockGenerator_SingleDef">
						<thingDef>SmokeleafBuds</thingDef>
						<countRange>
							<min>75</min>
							<max>500</max>
						</countRange>
					</li>
				</value>
			</li>
			<li Class="PatchOperationAdd">
				<xpath>Defs/TraderKindDef[defName = "Base_Outlander_Standard"]/stockGenerators</xpath>
				<value>
					<li Class="StockGenerator_SingleDef">
						<thingDef>SmokeleafSeed</thingDef>
						<countRange>
							<min>75</min>
							<max>500</max>
						</countRange>
					</li>
				</value>
			</li>
			<li Class="PatchOperationAdd">
				<xpath>Defs/TraderKindDef[defName = "Base_Outlander_Standard"]/stockGenerators</xpath>
				<value>
					<li Class="StockGenerator_SingleDef">
						<thingDef>HempFiber</thingDef>
						<countRange>
							<min>75</min>
							<max>500</max>
						</countRange>
					</li>
				</value>
			</li>
			<li Class="PatchOperationAdd">
				<xpath>Defs/TraderKindDef[defName = "Base_Outlander_Standard"]/stockGenerators</xpath>
				<value>
					<li Class="StockGenerator_SingleDef">
						<thingDef>HempFlour</thingDef>
						<countRange>
							<min>75</min>
							<max>500</max>
						</countRange>
					</li>
				</value>
			</li>
			<li Class="PatchOperationAdd">
				<xpath>Defs/TraderKindDef[defName = "Base_Outlander_Standard"]/stockGenerators</xpath>
				<value>
					<li Class="StockGenerator_SingleDef">
						<thingDef>HempMilk</thingDef>
						<countRange>
							<min>75</min>
							<max>500</max>
						</countRange>
					</li>
				</value>
			</li>
			<li Class="PatchOperationAdd">
				<xpath>Defs/TraderKindDef[defName = "Base_Outlander_Standard"]/stockGenerators</xpath>
				<value>
					<li Class="StockGenerator_Category">
				        <categoryDef>SmokeleafIndCatDrugs</categoryDef>
				        <thingDefCountRange>
				          <min>1</min>
				          <max>3</max>
				        </thingDefCountRange>
				        <totalPriceRange>
				          <min>150</min>
				          <max>750</max>
				        </totalPriceRange>
	      			</li>
				</value>
			</li>
			<li Class="PatchOperationAdd">
				<xpath>Defs/TraderKindDef[defName = "Base_Outlander_Standard"]/stockGenerators</xpath>
				<value>
					<li Class="StockGenerator_Category">
				        <categoryDef>SmokeleafIndCatEdibles</categoryDef>
				        <thingDefCountRange>
				          <min>1</min>
				          <max>3</max>
				        </thingDefCountRange>
				        <totalPriceRange>
				          <min>150</min>
				          <max>750</max>
				        </totalPriceRange>
	      			</li>
				</value>
			</li>
		</operations>
	</Operation>

  <!--========== Smokeleaf Trader Patch - Outlander Caravan ==========-->
	
	<Operation Class="PatchOperationSequence">
	    <success>Always</success>
	    <operations>
            <li Class="ModCheck.FindFile">
                <modName>Core</modName>
                <file>TraderKinds_Caravan_Outlander.xml</file>
            </li>
	    	<li Class="PatchOperationAdd">
				<xpath>Defs/TraderKindDef[defName = "Caravan_Outlander_BulkGoods"]/stockGenerators</xpath>
				<value>
					<li Class="StockGenerator_SingleDef">
						<thingDef>Hempoline</thingDef>
						<countRange>
							<min>250</min>
							<max>400</max>
						</countRange>
					</li>
				</value>
			</li>
	    	<li Class="PatchOperationAdd">
				<xpath>Defs/TraderKindDef[defName = "Caravan_Outlander_Exotic"]/stockGenerators</xpath>
				<value>
					<li Class="StockGenerator_SingleDef">
						<thingDef>Hempoline</thingDef>
						<countRange>
							<min>200</min>
							<max>400</max>
						</countRange>
					</li>
				</value>
			</li>
		</operations>
	</Operation>

  <!--========== Smokeleaf Trader Patch - Orbital ==========-->
	
	<Operation Class="PatchOperationSequence">
	    <success>Always</success>
		<operations>
            <li Class="ModCheck.FindFile">
                <modName>Core</modName>
                <file>TraderKinds_Orbital_Misc.xml</file>
            </li>
			<li Class="PatchOperationAdd">
				<xpath>Defs/TraderKindDef[defName = "Orbital_BulkGoods"]/stockGenerators</xpath>
				<value>
					<li Class="StockGenerator_SingleDef">
						<thingDef>Hempoline</thingDef>
						<countRange>
							<min>200</min>
							<max>800</max>
						</countRange>
					</li>
				</value>
			</li>
			<li Class="PatchOperationAdd">
				<xpath>Defs/TraderKindDef[defName = "Orbital_BulkGoods"]/stockGenerators</xpath>
				<value>
					<li Class="StockGenerator_SingleDef">
						<thingDef>SmokeleafBuds</thingDef>
						<countRange>
							<min>75</min>
							<max>1000</max>
						</countRange>
					</li>
				</value>
			</li>
			<li Class="PatchOperationAdd">
				<xpath>Defs/TraderKindDef[defName = "Orbital_BulkGoods"]/stockGenerators</xpath>
				<value>
					<li Class="StockGenerator_SingleDef">
						<thingDef>SmokeleafSeed</thingDef>
						<countRange>
							<min>75</min>
							<max>1000</max>
						</countRange>
					</li>
				</value>
			</li>
			<li Class="PatchOperationAdd">
				<xpath>Defs/TraderKindDef[defName = "Orbital_BulkGoods"]/stockGenerators</xpath>
				<value>
					<li Class="StockGenerator_SingleDef">
						<thingDef>HempFiber</thingDef>
						<countRange>
							<min>75</min>
							<max>1000</max>
						</countRange>
					</li>
				</value>
			</li>
			<li Class="PatchOperationAdd">
				<xpath>Defs/TraderKindDef[defName = "Orbital_BulkGoods"]/stockGenerators</xpath>
				<value>
					<li Class="StockGenerator_SingleDef">
						<thingDef>HempFlour</thingDef>
						<countRange>
							<min>75</min>
							<max>500</max>
						</countRange>
					</li>
				</value>
			</li>
			<li Class="PatchOperationAdd">
				<xpath>Defs/TraderKindDef[defName = "Orbital_BulkGoods"]/stockGenerators</xpath>
				<value>
					<li Class="StockGenerator_SingleDef">
						<thingDef>HempMilk</thingDef>
						<countRange>
							<min>75</min>
							<max>500</max>
						</countRange>
					</li>
				</value>
			</li>
			<li Class="PatchOperationAdd">
				<xpath>Defs/TraderKindDef[defName = "Orbital_BulkGoods"]/stockGenerators</xpath>
				<value>
					<li Class="StockGenerator_Category">
				        <categoryDef>SmokeleafIndCatDrugs</categoryDef>
				        <thingDefCountRange>
				          <min>1</min>
				          <max>3</max>
				        </thingDefCountRange>
				        <totalPriceRange>
				          <min>500</min>
				          <max>1000</max>
				        </totalPriceRange>
	      			</li>
				</value>
			</li>
			<li Class="PatchOperationAdd">
				<xpath>Defs/TraderKindDef[defName = "Orbital_BulkGoods"]/stockGenerators</xpath>
				<value>
					<li Class="StockGenerator_Category">
				        <categoryDef>SmokeleafIndCatEdibles</categoryDef>
				        <thingDefCountRange>
				          <min>1</min>
				          <max>3</max>
				        </thingDefCountRange>
				        <totalPriceRange>
				          <min>500</min>
				          <max>1000</max>
				        </totalPriceRange>
	      			</li>
				</value>
			</li>
			<li Class="PatchOperationAdd">
				<xpath>Defs/TraderKindDef[defName = "Orbital_PirateMerchant"]/stockGenerators</xpath>
				<value>
					<li Class="StockGenerator_SingleDef">
						<thingDef>Hempoline</thingDef>
						<countRange>
							<min>250</min>
							<max>500</max>
						</countRange>
					</li>
				</value>
			</li>
			<li Class="PatchOperationAdd">
				<xpath>Defs/TraderKindDef[defName = "Orbital_PirateMerchant"]/stockGenerators</xpath>
				<value>
					<li Class="StockGenerator_SingleDef">
						<thingDef>SmokeleafBuds</thingDef>
						<countRange>
							<min>75</min>
							<max>500</max>
						</countRange>
					</li>
				</value>
			</li>
			<li Class="PatchOperationAdd">
				<xpath>Defs/TraderKindDef[defName = "Orbital_PirateMerchant"]/stockGenerators</xpath>
				<value>
					<li Class="StockGenerator_SingleDef">
						<thingDef>SmokeleafSeed</thingDef>
						<countRange>
							<min>75</min>
							<max>500</max>
						</countRange>
					</li>
				</value>
			</li>
			<li Class="PatchOperationAdd">
				<xpath>Defs/TraderKindDef[defName = "Orbital_PirateMerchant"]/stockGenerators</xpath>
				<value>
					<li Class="StockGenerator_SingleDef">
						<thingDef>HempFiber</thingDef>
						<countRange>
							<min>75</min>
							<max>500</max>
						</countRange>
					</li>
				</value>
			</li>
			<li Class="PatchOperationAdd">
				<xpath>Defs/TraderKindDef[defName = "Orbital_PirateMerchant"]/stockGenerators</xpath>
				<value>
					<li Class="StockGenerator_Category">
				        <categoryDef>SmokeleafIndCatDrugs</categoryDef>
				        <thingDefCountRange>
				          <min>1</min>
				          <max>3</max>
				        </thingDefCountRange>
				        <totalPriceRange>
				          <min>300</min>
				          <max>600</max>
				        </totalPriceRange>
	      			</li>
				</value>
			</li>
			<li Class="PatchOperationAdd">
				<xpath>Defs/TraderKindDef[defName = "Orbital_PirateMerchant"]/stockGenerators</xpath>
				<value>
					<li Class="StockGenerator_Category">
				        <categoryDef>SmokeleafIndCatEdibles</categoryDef>
				        <thingDefCountRange>
				          <min>1</min>
				          <max>3</max>
				        </thingDefCountRange>
				        <totalPriceRange>
				          <min>300</min>
				          <max>600</max>
				        </totalPriceRange>
	      			</li>
				</value>
			</li>
			<li Class="PatchOperationAdd">
				<xpath>Defs/TraderKindDef[defName = "Orbital_Exotic"]/stockGenerators</xpath>
				<value>
					<li Class="StockGenerator_SingleDef">
						<thingDef>Hempoline</thingDef>
						<countRange>
							<min>200</min>
							<max>600</max>
						</countRange>
					</li>
				</value>
			</li>
			<li Class="PatchOperationAdd">
				<xpath>Defs/TraderKindDef[defName = "Orbital_Exotic"]/stockGenerators</xpath>
				<value>
					<li Class="StockGenerator_SingleDef">
						<thingDef>SmokeleafBuds</thingDef>
						<countRange>
							<min>75</min>
							<max>500</max>
						</countRange>
					</li>
				</value>
			</li>
			<li Class="PatchOperationAdd">
				<xpath>Defs/TraderKindDef[defName = "Orbital_Exotic"]/stockGenerators</xpath>
				<value>
					<li Class="StockGenerator_SingleDef">
						<thingDef>SmokeleafSeed</thingDef>
						<countRange>
							<min>75</min>
							<max>500</max>
						</countRange>
					</li>
				</value>
			</li>
			<li Class="PatchOperationAdd">
				<xpath>Defs/TraderKindDef[defName = "Orbital_Exotic"]/stockGenerators</xpath>
				<value>
					<li Class="StockGenerator_SingleDef">
						<thingDef>HempFiber</thingDef>
						<countRange>
							<min>75</min>
							<max>500</max>
						</countRange>
					</li>
				</value>
			</li>
			<li Class="PatchOperationAdd">
				<xpath>Defs/TraderKindDef[defName = "Orbital_Exotic"]/stockGenerators</xpath>
				<value>
					<li Class="StockGenerator_SingleDef">
						<thingDef>HempFlour</thingDef>
						<countRange>
							<min>75</min>
							<max>500</max>
						</countRange>
					</li>
				</value>
			</li>
			<li Class="PatchOperationAdd">
				<xpath>Defs/TraderKindDef[defName = "Orbital_Exotic"]/stockGenerators</xpath>
				<value>
					<li Class="StockGenerator_SingleDef">
						<thingDef>HempMilk</thingDef>
						<countRange>
							<min>75</min>
							<max>500</max>
						</countRange>
					</li>
				</value>
			</li>
			<li Class="PatchOperationAdd">
				<xpath>Defs/TraderKindDef[defName = "Orbital_Exotic"]/stockGenerators</xpath>
				<value>
					<li Class="StockGenerator_Category">
				        <categoryDef>SmokeleafIndCatDrugs</categoryDef>
				        <thingDefCountRange>
				          <min>1</min>
				          <max>3</max>
				        </thingDefCountRange>
				        <totalPriceRange>
				          <min>250</min>
				          <max>1000</max>
				        </totalPriceRange>
	      			</li>
				</value>
			</li>
			<li Class="PatchOperationAdd">
				<xpath>Defs/TraderKindDef[defName = "Orbital_Exotic"]/stockGenerators</xpath>
				<value>
					<li Class="StockGenerator_Category">
				        <categoryDef>SmokeleafIndCatEdibles</categoryDef>
				        <thingDefCountRange>
				          <min>1</min>
				          <max>3</max>
				        </thingDefCountRange>
				        <totalPriceRange>
				          <min>250</min>
				          <max>1000</max>
				        </totalPriceRange>
	      			</li>
				</value>
			</li>
		</operations>
	</Operation>

</Patch>