<RamblingMan>

<!-- Only for 7 Days To Die 3.0 -->
<conditional>
<if cond="game_version() >= version(1,3,0)">

<!-- *** Includes -->

<!-- *** Vanilla fixes -->

<include filename="Base/recipes.xml"/>

<!-- *** IGP fixes for 2.6 and 3.0 -->

<!-- Moved to the end of the file. -->
<!-- <include filename="IGP/recipes.xml"/> -->

<!-- *** V2_OakravenAmmoPress recipes -->
<conditional>
<if cond="mod_loaded('V2_OakravenAmmoPress')">
	<include filename="OakravenAmmoPress/recipes.xml"/>
</if>
</conditional>



<!-- *** V3_OakravenAmmoPress recipes -->
<conditional>
<if cond="mod_loaded('V3_OakravenAmmoPress')">
	<include filename="OakravenAmmoPress/recipes.xml"/>
</if>
</conditional>




<!-- Load only if Izayo_WeaponFixes is present. -->
<conditional>
<if cond="mod_loaded('Izayo_WeaponFixes')">

<!-- *** Global edits -->

<!-- Start of 2.6.1.5 -->

<!-- TODO: T1 weapons and forged iron -->

<!-- *** Set uniform resourceForgedSteel counts per weapon tier.
T2 40
T3 100
T4 150 -->

<set xpath="/recipes/recipe[starts-with(@name, 'IZYgunT2')]/ingredient[@name='resourceForgedSteel' and not(@name='IZYgunT2LGLChinalakeGrenadeLauncher')]/@count">40</set>
<set xpath="/recipes/recipe[starts-with(@name, 'IZYgunT3') and not(@name='IZYgunT3LGLXM25' or @name='IZYgunT3RocketLauncherRPG7' or @name='IZYgunT3TechnicalNailmachinegun')]/ingredient[@name='resourceForgedSteel']/@count">100</set>
<set xpath="/recipes/recipe[starts-with(@name, 'IZYgunT4')]/ingredient[@name='resourceForgedSteel']/@count">150</set>

<!-- *** Set uniform resourceDuctTape counts per weapon tier.

resourceDuctTape
T2 7
T3 13
T4 20 
-->

<set xpath="/recipes/recipe[starts-with(@name, 'IZYgunT2')]/ingredient[@name='resourceDuctTape' and not(@name='IZYgunT2LGLChinalakeGrenadeLauncher')]/@count">7</set>
<set xpath="/recipes/recipe[starts-with(@name, 'IZYgunT3') and not(@name='IZYgunT3LGLXM25' or @name='IZYgunT3RocketLauncherRPG7' or @name='IZYgunT3TechnicalNailmachinegun')]/ingredient[@name='resourceDuctTape']/@count">13</set>
<set xpath="/recipes/recipe[starts-with(@name, 'IZYgunT4')]/ingredient[@name='resourceDuctTape']/@count">20</set>

<!-- *** Set uniform resourceSpring counts per weapon tier.
T2 13
T3 25
T4 35   -->

<set xpath="/recipes/recipe[starts-with(@name, 'IZYgunT2')]/ingredient[@name='resourceSpring' and not(@name='IZYgunT2LGLChinalakeGrenadeLauncher')]/@count">13</set>
<set xpath="/recipes/recipe[starts-with(@name, 'IZYgunT3') and not(@name='IZYgunT3LGLXM25' or @name='IZYgunT3RocketLauncherRPG7' or @name='IZYgunT3TechnicalNailmachinegun')]/ingredient[@name='resourceSpring']/@count">25</set>
<set xpath="/recipes/recipe[starts-with(@name, 'IZYgunT4')]/ingredient[@name='resourceSpring']/@count">35</set>

<!-- *** Set uniform weapon parts counts per weapon tier. 
T2 7
T3 13
T4 20  -->

<!-- gunHandgunT1PistolParts -->

<set xpath="/recipes/recipe[starts-with(@name, 'IZYgunT2')]/ingredient[@name='gunHandgunT1PistolParts' and not(@name='IZYgunT2LGLChinalakeGrenadeLauncher')]/@count">7</set>
<set xpath="/recipes/recipe[starts-with(@name, 'IZYgunT3') and not(@name='IZYgunT3LGLXM25' or @name='IZYgunT3RocketLauncherRPG7' or @name='IZYgunT3TechnicalNailmachinegun')]/ingredient[@name='gunHandgunT1PistolParts']/@count">13</set>
<set xpath="/recipes/recipe[starts-with(@name, 'IZYgunT4')]/ingredient[@name='gunHandgunT1PistolParts']/@count">20</set>

<!-- gunRifleT1HuntingRifleParts -->

<set xpath="/recipes/recipe[starts-with(@name, 'IZYgunT2')]/ingredient[@name='gunRifleT1HuntingRifleParts' and not(@name='IZYgunT2LGLChinalakeGrenadeLauncher')]/@count">7</set>
<set xpath="/recipes/recipe[starts-with(@name, 'IZYgunT3') and not(@name='IZYgunT3LGLXM25' or @name='IZYgunT3RocketLauncherRPG7' or @name='IZYgunT3TechnicalNailmachinegun')]/ingredient[@name='gunRifleT1HuntingRifleParts']/@count">13</set>
<set xpath="/recipes/recipe[starts-with(@name, 'IZYgunT4')]/ingredient[@name='gunRifleT1HuntingRifleParts']/@count">20</set>

<!-- gunMGT1AK47Parts -->

<set xpath="/recipes/recipe[starts-with(@name, 'IZYgunT2')]/ingredient[@name='gunMGT1AK47Parts' and not(@name='IZYgunT2LGLChinalakeGrenadeLauncher')]/@count">7</set>
<set xpath="/recipes/recipe[starts-with(@name, 'IZYgunT3') and not(@name='IZYgunT3LGLXM25' or @name='IZYgunT3RocketLauncherRPG7' or @name='IZYgunT3TechnicalNailmachinegun')]/ingredient[@name='gunMGT1AK47Parts']/@count">13</set>
<set xpath="/recipes/recipe[starts-with(@name, 'IZYgunT4')]/ingredient[@name='gunMGT1AK47Parts']/@count">20</set>

<!-- gunShotgunT1DoubleBarrelParts -->

<set xpath="/recipes/recipe[starts-with(@name, 'IZYgunT2')]/ingredient[@name='gunShotgunT1DoubleBarrelParts' and not(@name='IZYgunT2LGLChinalakeGrenadeLauncher')]/@count">7</set>

<set xpath="/recipes/recipe[starts-with(@name, 'IZYgunT3') and not(@name='IZYgunT3LGLXM25' or @name='IZYgunT3RocketLauncherRPG7' or @name='IZYgunT3TechnicalNailmachinegun')]/ingredient[@name='gunShotgunT1DoubleBarrelParts']/@count">13</set>

<set xpath="/recipes/recipe[starts-with(@name, 'IZYgunT4')]/ingredient[@name='gunShotgunT1DoubleBarrelParts']/@count">20</set>

<!-- gunBowT1WoodenBowParts -->

<!-- <set xpath="/recipes/recipe[starts-with(@name, 'IZYgunT2')]/ingredient[@name='gunBowT1WoodenBowParts' and not(@name='IZYgunT2LGLChinalakeGrenadeLauncher')]/@count">7</set> -->

<!-- <set xpath="/recipes/recipe[starts-with(@name, 'IZYgunT3') and not(@name='IZYgunT3LGLXM25' or @name='IZYgunT3RocketLauncherRPG7' or @name='IZYgunT3TechnicalNailmachinegun')]/ingredient[@name='gunBowT1WoodenBowParts']/@count">13</set> -->

<set xpath="/recipes/recipe[starts-with(@name, 'IZYgunT4')]/ingredient[@name='gunBowT1WoodenBowParts']/@count">20</set>

<!-- *** Added recipe tags.
Added missing workbenchCrafting, packMuleCrafting and relevant weapon crafting perk tags to vanilla and IGP recipes. Based on LittleRedSonja_NormalizedCraftTimes.  -->

<!-- Vanilla ammo -->

<!-- ammo9mm, ammoBundle9mm / perkGunslinger -->
<csv xpath="/recipes/recipe[(starts-with(@name, 'ammo9mm')) and not(contains(@tags, 'perkGunslinger'))]/@tags" delim="," op="Add">perkGunslinger</csv>
<csv xpath="/recipes/recipe[(starts-with(@name, 'ammoBundle9mm')) and not(contains(@tags, 'perkGunslinger'))]/@tags" delim="," op="Add">perkGunslinger</csv>

<!-- ammo44Magnum, ammoBundle44Magnum / perkGunslinger -->
<csv xpath="/recipes/recipe[(starts-with(@name, 'ammo44Magnum')) and not(contains(@tags, 'perkGunslinger'))]/@tags" delim="," op="Add">perkGunslinger</csv>
<csv xpath="/recipes/recipe[(starts-with(@name, 'ammoBundle44Magnum')) and not(contains(@tags, 'perkGunslinger'))]/@tags" delim="," op="Add">perkGunslinger</csv>

<!-- ammo762, ammoBundle762 / perkDeadEye  -->
<!-- TODO: perkMachineGunner -->
<csv xpath="/recipes/recipe[(starts-with(@name, 'ammo762')) and not(contains(@tags, 'perkDeadEye'))]/@tags" delim="," op="Add">perkDeadEye</csv>
<csv xpath="/recipes/recipe[(starts-with(@name, 'ammoBundle762')) and not(contains(@tags, 'perkDeadEye'))]/@tags" delim="," op="Add">perkDeadEye</csv>

<!-- ammoShotgun, ammoBundleShotgun / perkBoomstick -->
<csv xpath="/recipes/recipe[(starts-with(@name, 'ammoShotgun')) and not(contains(@tags, 'perkBoomstick'))]/@tags" delim="," op="Add">perkBoomstick</csv>
<csv xpath="/recipes/recipe[(starts-with(@name, 'ammoBundleShotgun')) and not(contains(@tags, 'perkBoomstick'))]/@tags" delim="," op="Add">perkBoomstick</csv>

<!-- ammoArrow, ammoBundleArrow / perkArchery -->
<csv xpath="/recipes/recipe[(starts-with(@name, 'ammoArrow')) and not(contains(@tags, 'perkArchery'))]/@tags" delim="," op="Add">perkArchery</csv>
<csv xpath="/recipes/recipe[(starts-with(@name, 'ammoBundleArrow')) and not(contains(@tags, 'perkArchery'))]/@tags" delim="," op="Add">perkArchery</csv>

<!-- ammoCrossbowBolt, ammoBundleCrossbowBolt / perkArchery -->
<csv xpath="/recipes/recipe[(starts-with(@name, 'ammoCrossbowBolt')) and not(contains(@tags, 'perkArchery'))]/@tags" delim="," op="Add">perkArchery</csv>
<csv xpath="/recipes/recipe[(starts-with(@name, 'ammoBundleCrossbowBolt')) and not(contains(@tags, 'perkArchery'))]/@tags" delim="," op="Add">perkArchery</csv>

<!-- ammoRocketFrag, ammoRocketHE / perkDemolitionsExpert -->
<csv xpath="/recipes/recipe[(starts-with(@name, 'ammoRocketFrag')) and not(contains(@tags, 'perkDemolitionsExpert'))]/@tags" delim="," op="Add">perkDemolitionsExpert</csv>
<csv xpath="/recipes/recipe[(starts-with(@name, 'ammoRocketHE')) and not(contains(@tags, 'perkDemolitionsExpert'))]/@tags" delim="," op="Add">perkDemolitionsExpert</csv>

<!-- IZY Ammo -->

<!-- ammoCrossbowLightBolt -->
<!-- <setattribute xpath="/recipes/recipe[starts-with(@name, 'ammoCrossbowLightBolt']" name="tags">packMuleCrafting,perkArchery</setattribute> -->

<setattribute xpath="/recipes/recipe[starts-with(@name, 'ammoCrossbowLightBolt')]" name="tags">packMuleCrafting,perkArchery</setattribute>

<!-- <set xpath="/recipes/recipe[starts-with(@name, 'ammoCrossbowLightBolt']/@tags">packMuleCrafting,perkArchery</set> -->
<!-- <csv xpath="/recipes/recipe[(starts-with(@name, 'ammoCrossbowLightBolt')) and not(contains(@tags, 'packMuleCrafting'))]/@tags" delim="," op="Add">packMuleCrafting</csv>
<csv xpath="/recipes/recipe[(starts-with(@name, 'ammoCrossbowLightBolt')) and not(contains(@tags, 'perkArchery'))]/@tags" delim="," op="Add">perkArchery</csv> -->

<!-- ammoMuzzleloader -->
<!-- <setattribute xpath="/recipes/recipe[starts-with(@name, 'ammoMuzzleloader')]" name="tags">packMuleCrafting</setattribute> -->
<!-- <csv xpath="/recipes/recipe[(starts-with(@name, 'ammoMuzzleloader')) and not(contains(@tags, 'packMuleCrafting'))]/@tags" delim="," op="Add">packMuleCrafting</csv> -->

<!-- ammo45ACP / perkGunslinger-->
<csv xpath="/recipes/recipe[(starts-with(@name, 'ammo45ACP')) and not(contains(@tags, 'perkGunslinger'))]/@tags" delim="," op="Add">perkGunslinger</csv>

<!-- ammo556 / perkMachineGunner-->
<csv xpath="/recipes/recipe[(starts-with(@name, 'ammo556')) and not(contains(@tags, 'perkMachineGunner'))]/@tags" delim="," op="Add">perkMachineGunner</csv>

<!-- ammo25mm / perkDemolitionsExpert-->
<csv xpath="/recipes/recipe[(starts-with(@name, 'ammo25mm')) and not(contains(@tags, 'perkDemolitionsExpert'))]/@tags" delim="," op="Add">perkDemolitionsExpert</csv>

<!-- ammoRocketRPG / perkDemolitionsExpert-->
<csv xpath="/recipes/recipe[(starts-with(@name, 'ammoRocketRPG')) and not(contains(@tags, 'perkDemolitionsExpert'))]/@tags" delim="," op="Add">perkDemolitionsExpert</csv>

<!-- ammoShotgunShellPremium /perkBoomstick -->
<!-- TODO: bundle -->
<!-- <csv xpath="/recipes/recipe[(starts-with(@name, 'ammoShotgunShellPremium')) and not(contains(@tags, 'perkBoomstick'))]/@tags" delim="," op="Add">perkBoomstick</csv> -->

<!-- IZY weapons -->

<!-- T0 -->
<csv xpath="/recipes/recipe[(starts-with(@name, 'IZYgunT0')) and not(contains(@tags, 'packMuleCrafting'))]/@tags" delim="," op="Add">packMuleCrafting</csv>
	
<!-- Ranged T1-T4 -->

<csv xpath="/recipes/recipe[(contains(@name, 'IZYgunT1')) and not(contains(@tags, 'workbenchCrafting'))]/@tags" delim="," op="Add">workbenchCrafting</csv>
<csv xpath="/recipes/recipe[(contains(@name, 'IZYgunT2')) and not(contains(@tags, 'workbenchCrafting'))]/@tags" delim="," op="Add">workbenchCrafting</csv>
<csv xpath="/recipes/recipe[(contains(@name, 'IZYgunT3')) and not(contains(@tags, 'workbenchCrafting'))]/@tags" delim="," op="Add">workbenchCrafting</csv>
<csv xpath="/recipes/recipe[(contains(@name, 'IZYgunT4')) and not(contains(@tags, 'workbenchCrafting'))]/@tags" delim="," op="Add">workbenchCrafting</csv>
<!-- <csv xpath="/recipes/recipe[(contains(@name, 'IZYgunTminus1')) and not(contains(@tags, 'workbenchCrafting'))]/@tags" delim="," op="Add">workbenchCrafting</csv> -->

<!-- melee T4 -->
<!-- <csv xpath="/recipes/recipe[(contains(@name, 'IZYMeleeT')) and not(contains(@tags, 'workbenchCrafting'))]/@tags" op="Add">workbenchCrafting</csv> -->

<conditional>
<if cond="mod_loaded('LittleRedSonja_NormalizedCraftTimes') == false">

<!-- *** Normalized Craft Times  -->

<!-- Added normalized craft times for vanilla and IZY weapons. 
Does not override LittleRedSonja_NormalizedCraftTimes.
-->

<!-- IGP ammo, workbench recipes. -->

<!-- Regular ammo bundles -->
<setattribute xpath="/recipes/recipe[(@name='ammoBundle45ACPBulletBall' or @name='ammo556mmBulletBallBundle') and @craft_area='workbench']" name="craft_time">240</setattribute>
<!-- HP ammo bundles -->
<setattribute xpath="/recipes/recipe[(@name='ammoBundle45ACPHighpower' or @name='ammo556mmHIpowerBundle') and @craft_area='workbench']" name="craft_time">360</setattribute>
<!-- AP ammo bundles -->
<setattribute xpath="/recipes/recipe[(@name='ammoBundle45ACPArmorpiecing' or @name='ammo556mmArmorPiercingBundle') and @craft_area='workbench']" name="craft_time">360</setattribute>
<!-- Special ammo bundles -->
<setattribute xpath="/recipes/recipe[@name='ammoBundle45ACPEnhanced' and @craft_area='workbench']" name="craft_time">420</setattribute>

<!-- T0 weapons-->

<!-- IZY ranged weapons -->
<setattribute xpath="/recipes/recipe[starts-with(@name, 'IZYgunT0')]" name="craft_time">60</setattribute>

<!-- Vanilla ranged weapons-->
<setattribute xpath="/recipes/recipe[@name='gunBowT0PrimitiveBow' or 
@name='gunHandgunT0PipePistol' or 
@name='gunMGT0PipeMachineGun' or 
@name='gunRifleT0PipeRifle' or 
@name='gunShotgunT0PipeShotgun']" name="craft_time">60</setattribute>

<!-- Vanilla melee -->
<setattribute xpath="/recipes/recipe[@name='meleeWpnBatonT0PipeBaton' or 
@name='meleeWpnBladeT0BoneKnife' or 
@name='meleeWpnClubT0WoodenClub' or 
@name='meleeWpnKnucklesT0LeatherKnuckles' or 
@name='meleeWpnSledgeT0StoneSledgehammer' or 
@name='meleeWpnSpearT0StoneSpear']" name="craft_time">30</setattribute>

<!-- T1 weapons-->

<!-- IZY ranged weapons -->
<setattribute xpath="/recipes/recipe[starts-with(@name, 'IZYgunT1') or starts-with(@name, 'IZYgunTminus1')]" name="craft_time">180</setattribute>

<!-- Vanilla ranged weapons-->
<setattribute xpath="/recipes/recipe[starts-with(@name, 'gunHandgunT1') or 
starts-with(@name, 'gunShotgunT1') or 
starts-with(@name, 'gunRifleT1') or 
starts-with(@name, 'gunMGT1') or 
starts-with(@name, 'gunBowT1') or 
starts-with(@name, 'gunBotT1')]" name="craft_time">180</setattribute>

<!-- Vanilla melee -->
<setattribute xpath="/recipes/recipe[starts-with(@name, 'meleeWpnBatonT1') or 
starts-with(@name, 'meleeWpnBladeT1') or 
starts-with(@name, 'meleeWpnClubT1') or 
starts-with(@name, 'meleeWpnKnucklesT1') or 
starts-with(@name, 'meleeWpnSledgeT1') or 
starts-with(@name, 'meleeWpnSpearT1')]" name="craft_time">120</setattribute>

<!-- T2 weapons-->

<!-- IZY ranged weapons -->
<setattribute xpath="/recipes/recipe[starts-with(@name, 'IZYgunT2')]" name="craft_time">270</setattribute>

<!-- Vanilla ranged weapons-->
<setattribute xpath="/recipes/recipe[starts-with(@name, 'gunBowT2') or 
starts-with(@name, 'gunExplosivesT2') or 
starts-with(@name, 'gunHandgunT2') or 
starts-with(@name, 'gunShotgunT2') or 
starts-with(@name, 'gunRifleT2') or 
starts-with(@name, 'gunMGT2') or 
starts-with(@name, 'gunBotT2')]" name="craft_time">270</setattribute>

<!-- Vanilla melee -->
<setattribute xpath="/recipes/recipe[starts-with(@name, 'meleeWpnBatonT2') or 
starts-with(@name, 'meleeWpnBladeT2') or 
starts-with(@name, 'meleeWpnClubT2') or 
starts-with(@name, 'meleeWpnKnucklesT2') or 
starts-with(@name, 'meleeWpnSledgeT2') or 
starts-with(@name, 'meleeWpnSpearT2')]" name="craft_time">180</setattribute>

<!-- T3 weapons-->

<!-- IZY ranged weapons -->
<setattribute xpath="/recipes/recipe[starts-with(@name, 'IZYgunT3')]" name="craft_time">360</setattribute>

<!-- Vanilla ranged weapons-->
<setattribute xpath="/recipes/recipe[starts-with(@name, 'gunBowT3') or 
starts-with(@name, 'gunExplosivesT3') or 
starts-with(@name, 'gunHandgunT3') or 
starts-with(@name, 'gunShotgunT3') or 
starts-with(@name, 'gunRifleT3') or 
starts-with(@name, 'gunMGT3') or 
starts-with(@name, 'gunBotT3')]" name="craft_time">360</setattribute>

<!-- Vanilla melee -->
<setattribute xpath="/recipes/recipe[starts-with(@name, 'meleeWpnBatonT3') or 
starts-with(@name, 'meleeWpnBladeT3') or 
starts-with(@name, 'meleeWpnKnucklesT3') or 
starts-with(@name, 'meleeWpnSledgeT3') or 
starts-with(@name, 'meleeWpnSpearT3')]" name="craft_time">240</setattribute>

<!-- T4 weapons-->
<!-- IZY melee weapons -->
<setattribute xpath="/recipes/recipe[starts-with(@name, 'IZYMeleeT4')]" name="craft_time">360</setattribute>

<!-- IZY ranged weapons -->
<setattribute xpath="/recipes/recipe[starts-with(@name, 'IZYgunT4')]" name="craft_time">540</setattribute>

<!-- Vanilla ranged weapons-->
<!-- <setattribute xpath="/recipes/recipe[xxx]" name="craft_time"></setattribute> -->
<!-- Vanilla melee -->
<!-- <setattribute xpath="/recipes/recipe[xxx]" name="craft_time">360</setattribute> -->
</if>
</conditional>

<!-- End of 2.6.1.5 -->

<!-- *** IZY_RMP_44magnum -->
<!-- <conditional>
<if cond="mod_loaded('IZY_RMP_44magnum') and mod_version('IZY_RMP_44magnum') = version(1,1,0,4)"> -->

<!-- Start of 2.6.1.5 -->

<!-- IZYgunT4DualMagnumDesertEagles: added missing resourceDuctTape to ingredients and passive effects. -->

<insertafter xpath="/recipes/recipe[@name='IZYgunT4DualMagnumDesertEagles']/ingredient[@name='resourceForgedSteel']">
<ingredient name="resourceDuctTape" count="20"/>
</insertafter>

<csv xpath="/recipes/recipe[@name='IZYgunT4DualMagnumDesertEagles']/effect_group/passive_effect[@tags='gunHandgunT1PistolParts']/@tags" delim="," op="Add">resourceDuctTape</csv>

<!-- End of 2.6.1.5 -->

<!-- </if>
</conditional> -->

<!-- *** IZY_RMP_Miscpack -->
<!-- <conditional>
<if cond="mod_loaded('IZY_RMP_Miscpack') and mod_version('IZY_RMP_Miscpack') = version(1,1,0,4)"> -->

<!-- Added 2.6.1.1 for 5.1.3 2026-04-15 -->

<append xpath="/recipes">
		
<!-- Updated campfire recipe for ammoleadball.
Check bonus from perkAdvancedEngineering -->

<recipe name="ammoleadball" count="1" craft_area="campfire" tags="perkAdvancedEngineering">
	<ingredient name="resourceScrapLead" count="5"/>
		<effect_group>
			<passive_effect name="CraftingIngredientCount" level="1,5" operation="base_add" value="-1" tags="resourceScrapLead"/>
		</effect_group>			
</recipe>

<!-- New forge recipe for ammoleadball.
Check bonus from perkAdvancedEngineering. -->
<recipe name="ammoleadball" count="1" material_based="true" craft_area="forge" is_trackable="false" tags="perkAdvancedEngineering">
	<ingredient name="unit_lead" count="3"/>
	<ingredient name="unit_clay" count="1"/>
	<effect_group>
		<passive_effect name="CraftingIngredientCount" operation="perc_add" level="0,1,2,3,4" value=".25,.25,.25,.12,.06" tags="unit_lead"/>
	</effect_group>
</recipe>

<!-- Updated ammoMuzzleloadershot with packMuleCrafting. -->
<recipe name="ammoMuzzleloadershot" count="1" tags="packMuleCrafting,workbenchCrafting">
	<ingredient name="ammoleadball" count="1"/>
	<ingredient name="resourceGunPowder" count="2"/>
	<ingredient name="resourcePaper" count="1"/>
</recipe>
</append>

<!-- TODO/TBD: add ammopress recipe? -->

<!-- Start of 2.6.1.5 -->

<!-- Fixed IZYgunT4BowVanhelsingAutomaticCrossbowVH resourceLegendaryParts passive effect and missing resourceLeather ingredient.-->
<set xpath="/recipes/recipe[@name='IZYgunT4BowVanhelsingAutomaticCrossbowVH']/effect_group/passive_effect[@tags='resourceLegendaryParts']/@level">2,6</set>
<set xpath="/recipes/recipe[@name='IZYgunT4BowVanhelsingAutomaticCrossbowVH']/effect_group/passive_effect[@tags='resourceLegendaryParts']/@value">1,5</set>
<insertafter xpath="/recipes/recipe[@name='IZYgunT4BowVanhelsingAutomaticCrossbowVH']/ingredient[@name='resourceDuctTape']"><ingredient name="resourceLeather" count="35"/></insertafter>

<!-- </if>
</conditional> -->


<!-- TODO check -->
<!-- *** zzz_Ammo_Press_Add-On_Compatibility_Patch -->
<conditional>
<if cond="mod_loaded('zzz_Ammo_Press_Add-On_Compatibility_Patch') and mod_version('zzz_Ammo_Press_Add-On_Compatibility_Patch') = version(2,5,2)">

<!-- Removed ammoShotgunShellDragoBreath and ammoShotgunShellDragoBreathBundle recipe. -->
		
<remove xpath="/recipes/recipe[@name='ammoShotgunShellDragoBreath' or @name='ammoShotgunShellDragoBreathBundle']" />		

</if>
</conditional>

<!-- *** IZY_RMP_Demopack -->

<!-- <conditional>
<if cond="mod_loaded('IZY_RMP_Demopack') and mod_version('IZY_RMP_Demopack') = version(1,1,0,4)"> -->

<!-- Made the following grenade recipes learnable:
ammo25mmGrenadeTraining
ammo25mmGrenadeHE
ammo25mmGrenadeFRAGS
ammoRocketRPGTraning
ammoRocketRPGHE
ammoRocketRPGIncendiary
-->

<set xpath="/recipes/recipe[@name='ammo25mmGrenadeTraining' or @name='ammo25mmGrenadeHE'or @name='ammo25mmGrenadeFRAGS'or @name='ammoRocketRPGTraning'or @name='ammoRocketRPGHE'or @name='ammoRocketRPGIncendiary']/@tags">learnable,workbenchCrafting</set>

<!-- </if>
</conditional> -->

<!-- *** IZY_RMP_9mmVAL -->

<!-- <conditional>
<if cond="mod_loaded('IZY_RMP_9mmVAL') and mod_version('IZY_RMP_9mmVAL') = version(1,1,0,4)"> -->

<!-- Removed legendary part requirement from level 6 IZYgunT0SMGPIPEsubmachinegun recipe.  -->
<remove xpath="/recipes/recipe[@name='IZYgunT0SMGPIPEsubmachinegun']/ingredient[@name='resourceLegendaryParts']" />
<remove xpath="/recipes/recipe[@name='IZYgunT0SMGPIPEsubmachinegun']/effect_group/passive_effect[@tags='resourceLegendaryParts']" />
<!-- 2.6.1.5 -->
<!-- IZYgunT0SMGPIPEsubmachinegun: set ingredient quantities in line with other pipe weapons.  -->
 
<set xpath="/recipes/recipe[@name='IZYgunT0SMGPIPEsubmachinegun']/ingredient[@name='resourceGlue']/@count">2</set>
<set xpath="/recipes/recipe[@name='IZYgunT0SMGPIPEsubmachinegun']/ingredient[@name='resourceWood']/@count">6</set>
 
<!-- Added missing resourceDuctTape to passive effects for:
IZYgunT2SMGUZIsubmachinegun
IZYgunT3SMGMP9submachinegun
IZYgunT4SMGCZScorpionEVO3
  -->

<csv xpath="/recipes/recipe[@name='IZYgunT2SMGUZIsubmachinegun' or 
@name='IZYgunT3SMGMP9submachinegun' or  @name='IZYgunT4SMGCZScorpionEVO3']/effect_group/passive_effect[@tags='gunHandgunT1PistolParts']/@tags" delim="," op="Add">resourceDuctTape</csv>

<!-- End of 2.6.1.5 -->

<!-- </if>
</conditional> -->

<!-- *** IZY_RMP_SG -->
<!-- <conditional>
<if cond="mod_loaded('IZY_RMP_SG') and mod_version('IZY_RMP_SG') = version(1,1,0,4)"> -->

<!-- Start of 2.6.1.5 -->

<!-- Made ammoShotgunShellPremium learnable. -->

<set xpath="/recipes/recipe[@name='ammoShotgunShellPremium']/@tags">learnable,workbenchCrafting</set>

<!-- Added workbench recipes for ammoShotgunShellPremiumBundle. -->
<append xpath="/recipes">
<recipe name="ammoShotgunShellPremiumBundle" count="1" craft_time="360" craft_area="workbench" tags="workbenchCrafting,learnable">
	<ingredient name="resourceBuckshot" count="80"/>
	<ingredient name="resourceGunPowder" count="480"/>
	<ingredient name="resourceScrapPolymers" count="80"/>
</recipe>

<recipe name="ammoShotgunShellPremiumBundle" count="1" craft_time="360" craft_area="workbench" tags="workbenchCrafting,learnable">
	<ingredient name="ammoShotgunShell" count="80"/>
	<ingredient name="resourceGunPowder" count="160"/>
	<ingredient name="resourceScrapPolymers" count="80"/>
</recipe>
</append>

<!-- End of 2.6.1.5 -->

<!-- Removed IZYgunT4TACshotgunM1014 from recipes. -->
<!-- <remove xpath="/recipes/recipe[@name='IZYgunT4TACshotgunM1014']" /> -->

<!-- 2.6.1.1 -->

<!-- Reverted 2.6.1.0 removal of IZYgunT4TACshotgunM1014 recipe as this has been implemented in 5.1.3. -->

<!-- </if>
</conditional> -->

<!-- *** IZY_RMP_45ACP -->
<!-- <conditional>
<if cond="mod_loaded('IZY_RMP_45ACP') and mod_version('IZY_RMP_45ACP') = version(1,1,0,4)"> -->

<!-- Made HP and AP .45 ACP recipes learnable. -->
<set xpath="/recipes/recipe[@name='ammo45ACPHighpower' or @name='ammo45ACPArmorpiecing']/@tags">learnable,workbenchCrafting</set>

<!-- Removed legendary part requirement from level 6 IZYgunT0PistolLiberatorImprovisedPistol recipe.
-->
		
<remove xpath="/recipes/recipe[@name='IZYgunT0PistolLiberatorImprovisedPistol']/ingredient[@name='resourceLegendaryParts']" />
<remove xpath="/recipes/recipe[@name='IZYgunT0PistolLiberatorImprovisedPistol']/effect_group/passive_effect[@tags='resourceLegendaryParts']" />

<!-- Start of 2.6.1.5 -->

<!-- IZYgunT0PistolLiberatorImprovisedPistol: add wood to recipe, set ingredient quantities in line with other pipe weapons.  -->

<append xpath="/recipes/recipe[@name='IZYgunT0PistolLiberatorImprovisedPistol']"><ingredient name="resourceWood" count="6"/></append>

<set xpath="/recipes/recipe[@name='IZYgunT0PistolLiberatorImprovisedPistol']/ingredient[@name='resourceMetalPipe']/@count">4</set>

<!-- IZYgunT2DualPistols45M1911A1: added missing resourceDuctTape to passive effect. -->

<csv xpath="/recipes/recipe[@name='IZYgunT2DualPistols45M1911A1']/effect_group/passive_effect[@tags='gunHandgunT1PistolParts']/@tags" delim="," op="Add">resourceDuctTape</csv>

<!-- End of 2.6.1.5 -->

<!-- </if>
</conditional>	 -->

<!-- *** IZY_RMP_556pack -->

<!-- <conditional>
<if cond="mod_loaded('IZY_RMP_556pack') and mod_version('IZY_RMP_556pack') = version(1,1,0,4)"> -->

<!-- 5.56 ammp  -->

<!-- Made HP and AP 5.56mm (single round and bundle) recipes learnable. -->
<set xpath="/recipes/recipe[@name='ammo556mmHIpower' or @name='ammo556mmArmorPiercing' or @name='ammo556mmBulletBallBundle' or @name='ammo556mmHIpowerBundle' or @name='ammo556mmArmorPiercingBundle']/@tags">learnable,workbenchCrafting</set>

<!-- Start of 2.6.1.5 -->

<!-- Fixed workbench resource discounts for ammo bundles -->

<!-- ammo556mmBulletBallBundle -->
<set xpath="/recipes/recipe[@name='ammo556mmBulletBallBundle' and @craft_area='workbench']/ingredient[@name='resourceGunPowder' and @count='180']/@count">160</set>

<!-- ammo556mmHIpowerBundle -->
<set xpath="/recipes/recipe[@name='ammo556mmHIpowerBundle' and @craft_area='workbench']/ingredient[@name='resourceGunPowder' and @count='380']/@count">320</set>

<!-- ammo556mmArmorPiercingBundle -->
<set xpath="/recipes/recipe[@name='ammo556mmArmorPiercingBundle' and @craft_area='workbench']/ingredient[@name='resourceGunPowder' and @count='260']/@count">240</set>

<remove xpath="/recipes/recipe[@name='ammo556mmArmorPiercingBundle']/ingredient[@name='resourceForgedSteel']"/>

<insertAfter xpath="recipes/recipe[@name='ammo556mmArmorPiercingBundle' and @craft_area='workbench']/ingredient[@name='resourceGunPowder']"><ingredient name="resourceScrapIron" count="400"/></insertAfter>

<!-- *** 5.56 Weapons -->

<!-- Removed IZYgunT1LRLongRifleM16a1 from recipes. -->
<remove xpath="/recipes/recipe[@name='IZYgunT1LRLongRifleM16a1']" />

<!-- Fixed incorrect tag in passive effect for IZYgunT4ARCabineHK416, IZYgunT4ARCabineHK416. -->
<!-- <csv xpath="/recipes/recipe[@name='IZYgunT4ARCabineHK416']/effect_group/passive_effect[@tags='gunHandgunT1PistolParts']/@tags" delim="," op="Add">gunMGT1AK47Parts</csv>
<csv xpath="/recipes/recipe[@name='IZYgunT4ARCabineHK416']/effect_group/passive_effect[@tags='gunHandgunT1PistolParts']/@tags" delim="," op="Remove">gunHandgunT1PistolParts</csv> -->

<set xpath="/recipes/recipe[@name='IZYgunT4ARCabineHK416' or @name='IZYgunT4BULLPUPFNF2000']/effect_group/passive_effect[contains(@tags, 'gunHandgunT1PistolParts')]/@tags">gunMGT1AK47Parts,resourceDuctTape</set>

<!-- <recipe name="IZYgunT4ARCabineHK416" count="1" craft_area="workbench" tags="learnable,perkMachineGunner,workbenchCrafting">
	<ingredient name="gunMGT1AK47Parts" count="13"/>
	<ingredient name="resourceForgedSteel" count="100"/>
	<ingredient name="resourceDuctTape" count="13"/>
	<ingredient name="resourceSpring" count="25"/>
	<ingredient name="resourceLegendaryParts" count="5"/>
	<effect_group>
		<passive_effect name="CraftingIngredientCount" level="2,6" operation="base_add" value="1,5" tags="gunHandgunT1PistolParts,resourceDuctTape"/>

 -->
 
 <!-- Removed gunRifleT1HuntingRifleParts ingredient from IZYgunT3MarksManRifle556M16A2DMR. Added resourceDuctTape. Fixed passive effect. -->
 
<remove xpath="/recipes/recipe[@name='IZYgunT3MarksManRifle556M16A2DMR']/ingredient[@name='gunRifleT1HuntingRifleParts']"/>
<insertafter xpath="/recipes/recipe[@name='IZYgunT3MarksManRifle556M16A2DMR']/ingredient[@name='resourceForgedSteel']"> <ingredient name="resourceDuctTape" count="13"/></insertafter>
<set xpath="/recipes/recipe[@name='IZYgunT3MarksManRifle556M16A2DMR']/effect_group/passive_effect[contains(@tags, 'gunRifleT1HuntingRifleParts')]/@tags">gunMGT1AK47Parts,resourceDuctTape</set>

<!-- </if>
</conditional>	 -->

<!-- *** IZY_RMP_762pack -->

<!-- <conditional>
<if cond="mod_loaded('IZY_RMP_762pack') and mod_version('IZY_RMP_762pack') = version(1,1,0,4)">	 -->

<!-- Added ammo762mmExplosiveFragmentations recipe. Borrowed from zzz_Ammo_Press_Add-On_Compatibility_Patch -->
<append xpath="/recipes">		
	<recipe name="ammo762mmExplosiveFragmentations" count="1" craft_time="10" craft_area="workbench" tags="learnable,workbenchCrafting">
		<ingredient name="resourceBulletTip" count="2"/>
		<ingredient name="resourceGunPowder" count="10"/>
		<ingredient name="resourceBulletCasing" count="1"/>
	</recipe>
<!-- 2.6.1.5 craft time changed to 420 -->
	<recipe name="ammo762mmExplosiveFragmentationsBundle" count="1" craft_time="420" craft_area="workbench" tags="learnable,workbenchCrafting">
		<ingredient name="resourceBulletTip" count="160"/>
		<ingredient name="resourceGunPowder" count="800"/>
		<ingredient name="resourceBulletCasing" count="80"/>
	</recipe>

<!-- End of 2.6.1.5 -->	
</append>

<!-- </if>
</conditional>	 -->


<!-- *** IGP fixes for 2.6 and 3.0 -->

<!-- Moved to the end of the file. -->
<include filename="IGP/recipes.xml"/>

<!-- *** Gears Options -->

<conditional>
	<if cond="mod_version('Gears') >= version(7,0,0)">
		<include filename="Options/recipes.xml"/>
	</if>
</conditional>

</if>
</conditional>

</if>
</conditional>
</RamblingMan>