<RamblingMan>
<!-- Gears Options -->

<!-- *** 1. Weapon Pack Options ### -->
<!-- *** 1.2 Remove IGP items from trader inventory. -->

<!-- *** IZY_melee -->
<conditional>
<if cond="modsetting('Combat_Sandbox_FLTR', 'Global', 'WeaponPackSettings.WeaponPacksCategory.Enable_IZY_melee') == 'Off'">
<!-- 
Removed trader entry for 
IZYMeleeT4BladeKatana
IZYMeleeT4SledghammerSpikeMace
IZYMeleeT4SpearPoleAxe
 -->
<remove xpath="/traders/trader_item_groups/trader_item_group/item[starts-with(@name, 'IZYMelee')]"/>
</if>
</conditional>

<!-- *** IZY_RMP_9mmVAL -->
<conditional>
<if cond="modsetting('Combat_Sandbox_FLTR', 'Global', 'WeaponPackSettings.WeaponPacksCategory.Enable_IZY_RMP_9mmVAL') == 'Off'">

<!-- Removed trader entry for IZY_RMP_9mmVAL guns.

IZYgunT0SMGPIPEsubmachinegun
IZYgunT1DualPistolCOLTnavyRevolver
IZYgunT1Pistol9Makarov
IZYgunT1SMGTec9submachinegun
IZYgunT2DualPistolM9bs
IZYgunT2SMGUZIsubmachinegun
IZYgunT3DualPistolGlock18C
IZYgunT3SMGMP9submachinegun
IZYgunT4DualPistolMP9s
IZYgunT4SMGCZScorpionEVO3

 -->
<remove xpath="/traders/trader_item_groups/trader_item_group/item[@name='IZYgunT0SMGPIPEsubmachinegun' or 
@name='IZYgunT1DualPistolCOLTnavyRevolver' or 
@name='IZYgunT1Pistol9Makarov' or 
@name='IZYgunT1SMGTec9submachinegun' or 
@name='IZYgunT2DualPistolM9bs' or 
@name='IZYgunT2SMGUZIsubmachinegun' or 
@name='IZYgunT3DualPistolGlock18C' or 
@name='IZYgunT3SMGMP9submachinegun' or 
@name='IZYgunT4DualPistolMP9s' or 
@name='IZYgunT4SMGCZScorpionEVO3']"/>
</if>
</conditional>

<!-- *** IZY_RMP_44magnum -->
<conditional>
<if cond="modsetting('Combat_Sandbox_FLTR', 'Global', 'WeaponPackSettings.WeaponPacksCategory.Enable_IZY_RMP_44magnum') == 'Off'">

<!-- Removed trader entry for IZY_RMP_44magnum guns.

IZYgunT3PistolMagnumAutomag44
IZYgunT4DualMagnumDesertEagles

 -->
<remove xpath="/traders/trader_item_groups/trader_item_group/item[@name='IZYgunT3PistolMagnumAutomag44' or 
@name='IZYgunT4DualMagnumDesertEagles']"/>
</if>
</conditional>

<!-- *** IZY_RMP_45ACP -->
<conditional>
<if cond="modsetting('Combat_Sandbox_FLTR', 'Global', 'WeaponPackSettings.WeaponPacksCategory.Enable_IZY_RMP_45ACP') == 'Off'">

<!-- Removed trader entry for IZY_RMP_45ACP guns.
ammo45ACPBulletBall
ammo45ACPHighpower
ammo45ACPArmorpiecing
ammo45ACPEnhanced
ammoBundle45ACPBulletBall
ammoBundle45ACPHighpower
ammoBundle45ACPArmorpiecing
ammoBundle45ACPEnhanced
IZYgunT0PistolLiberatorImprovisedPistol
IZYgunT1Pistol45M1917
IZYgunT1Pistol45Type17C96
IZYgunT2Pistol45M1911A1
IZYgunT2DualPistols45M1911A1
IZYgunT3Pistol45USP45
IZYgunT4Pistol45STIEAGLE6
IZYgunT145TACSMGMAC10
IZYgunT245SMGM3Greasegun
IZYgunT345SMGM1thompson
IZYgunT445SMGM1928thompson
IZYgunT445TACSMGKrissSuperV
IZYgunT3MarksmanRifleMMRM1Carbine45
IZYgunT4MarksmanRifle45MMRKrissVectorCarbine
 -->
<remove xpath="/traders/trader_item_groups/trader_item_group/item[@name='ammo45ACPBulletBall' or 
@name='ammo45ACPHighpower' or 
@name='ammo45ACPArmorpiecing' or 
@name='ammo45ACPEnhanced' or 
@name='ammoBundle45ACPBulletBall' or 
@name='ammoBundle45ACPHighpower' or 
@name='ammoBundle45ACPArmorpiecing' or 
@name='ammoBundle45ACPEnhanced' or 
@name='IZYgunT0PistolLiberatorImprovisedPistol' or 
@name='IZYgunT1Pistol45M1917' or 
@name='IZYgunT1Pistol45Type17C96' or 
@name='IZYgunT2Pistol45M1911A1' or 
@name='IZYgunT2DualPistols45M1911A1' or 
@name='IZYgunT3Pistol45USP45' or 
@name='IZYgunT4Pistol45STIEAGLE6' or 
@name='IZYgunT145TACSMGMAC10' or 
@name='IZYgunT245SMGM3Greasegun' or 
@name='IZYgunT345SMGM1thompson' or 
@name='IZYgunT445SMGM1928thompson' or 
@name='IZYgunT445TACSMGKrissSuperV' or 
@name='IZYgunT3MarksmanRifleMMRM1Carbine45' or 
@name='IZYgunT4MarksmanRifle45MMRKrissVectorCarbine']"/>
</if>
</conditional>

<!-- *** IZY_RMP_556pack -->
<conditional>
<if cond="modsetting('Combat_Sandbox_FLTR', 'Global', 'WeaponPackSettings.WeaponPacksCategory.Enable_IZY_RMP_556pack') == 'Off'">

<!-- Removed trader entry for IZY_RMP_556pack guns and ammo:
ammo556mmBulletBall
ammo556mmHIpower
ammo556mmArmorPiercing
ammo556mmBulletBallBundle
ammo556mmHIpowerBundle
ammo556mmArmorPiercingBundle
IZYgunT0SNIPERpipeAR15Broken15Junk
IZYgunT1ARCabineM608SurvivalRifle
IZYgunT2ARCabineCAR15
IZYgunT3ARCabineM4Carbine
IZYgunT4ARCabineHK416
IZYgunT1LRLongRifleM16a1
IZYgunT3BULLPUPHellionVHS2
IZYgunT4BULLPUPFNF2000
IZYgunT2LMGLMG36
IZYgunT3LMGM249FNminimi
IZYgunT3MarksManRifle556M16A2DMR'

 -->
<remove xpath="/traders/trader_item_groups/trader_item_group/item[@name='ammo556mmBulletBall' or 
@name='ammo556mmHIpower' or 
@name='ammo556mmArmorPiercing' or 
@name='ammo556mmBulletBallBundle' or 
@name='ammo556mmHIpowerBundle' or 
@name='ammo556mmArmorPiercingBundle' or 
@name='IZYgunT0SNIPERpipeAR15Broken15Junk' or 
@name='IZYgunT1ARCabineM608SurvivalRifle' or 
@name='IZYgunT2ARCabineCAR15' or 
@name='IZYgunT3ARCabineM4Carbine' or 
@name='IZYgunT4ARCabineHK416' or 
@name='IZYgunT1LRLongRifleM16a1' or 
@name='IZYgunT3BULLPUPHellionVHS2' or 
@name='IZYgunT4BULLPUPFNF2000' or 
@name='IZYgunT2LMGLMG36' or 
@name='IZYgunT3LMGM249FNminimi' or 
@name='IZYgunT3MarksManRifle556M16A2DMR']"/>
</if>
</conditional>

<!-- *** IZY_RMP_762pack -->
<conditional>
<if cond="modsetting('Combat_Sandbox_FLTR', 'Global', 'WeaponPackSettings.WeaponPacksCategory.Enable_IZY_RMP_762pack') == 'Off'">

<!-- Removed trader entry for IZY_RMP_762pack guns and ammo:
ammo762mmExplosiveFragmentations
ammo762mmExplosiveFragmentationsBundle
IZYgunT1SNIPERRIFLE762Mosinnagant
IZYgunT3SNIPERRIFLE762LeeEnfieldRifle
IZYgunT4SNIPERRIFLE762L96AWMRifle
IZYgunT2MarksManRifle762M1garandNavyconverted
IZYgunT3MarksManRifle762HKPSG1
IZYgunT4MarksManRifle762SVUprototypeRifle
IZYgunT4MarksManRifleM110SASS
IZYgunT2ARSTG44N
IZYgunT3ARAKM
IZYgunT1BattleRifleBARbrowningautomaticrifle
IZYgunT2BattleRifleFNFALRifle
IZYgunT3BattleRifleHKG3
IZYgunT4BattleRifleSCARH
IZYgunT2LMGlightmachinegunRPD
IZYgunT4LMGlightmachinegunMG34R -->
<remove xpath="/traders/trader_item_groups/trader_item_group/item[@name='ammo762mmExplosiveFragmentations' or 
@name='ammo762mmExplosiveFragmentationsBundle' or 
@name='IZYgunT1SNIPERRIFLE762Mosinnagant' or 
@name='IZYgunT3SNIPERRIFLE762LeeEnfieldRifle' or 
@name='IZYgunT4SNIPERRIFLE762L96AWMRifle' or 
@name='IZYgunT2MarksManRifle762M1garandNavyconverted' or 
@name='IZYgunT3MarksManRifle762HKPSG1' or 
@name='IZYgunT4MarksManRifle762SVUprototypeRifle' or 
@name='IZYgunT4MarksManRifleM110SASS' or 
@name='IZYgunT2ARSTG44N' or 
@name='IZYgunT3ARAKM' or 
@name='IZYgunT1BattleRifleBARbrowningautomaticrifle' or 
@name='IZYgunT2BattleRifleFNFALRifle' or 
@name='IZYgunT3BattleRifleHKG3' or 
@name='IZYgunT4BattleRifleSCARH' or 
@name='IZYgunT2LMGlightmachinegunRPD' or 
@name='IZYgunT4LMGlightmachinegunMG34R']"/>
</if>
</conditional>

<!-- *** IZY_RMP_SG -->
<conditional>
<if cond="modsetting('Combat_Sandbox_FLTR', 'Global', 'WeaponPackSettings.WeaponPacksCategory.Enable_IZY_RMP_SG') == 'Off'">

<!-- Removed trader entry for IZY_RMP_SG guns and ammo:
ammoShotgunShellPremium
ammoBundleShotgunShellPremium
IZYgunT1TradshotgunDoubleBarrelOverUnder
IZYgunT2TradshotgunLeveractionShotgunModel1887
IZYgunT3TradshotgunTrenchGunM1897
IZYgunT4TradshotgunBrowningAuto5
IZYgunT1TACCompactshotgunSuperShortty
IZYgunT3TACshotgunSPAS12G
IZYgunT4TACshotgunM1014

 -->
<remove xpath="/traders/trader_item_groups/trader_item_group/item[@name='ammoShotgunShellPremium' or 
@name='ammoBundleShotgunShellPremium' or 
@name='IZYgunT1TradshotgunDoubleBarrelOverUnder' or 
@name='IZYgunT2TradshotgunLeveractionShotgunModel1887' or 
@name='IZYgunT3TradshotgunTrenchGunM1897' or 
@name='IZYgunT4TradshotgunBrowningAuto5' or 
@name='IZYgunT1TACCompactshotgunSuperShortty' or 
@name='IZYgunT3TACshotgunSPAS12G' or 
@name='IZYgunT4TACshotgunM1014']"/>
</if>
</conditional>

<!-- *** IZY_RMP_Demopack -->
<conditional>
<if cond="modsetting('Combat_Sandbox_FLTR', 'Global', 'WeaponPackSettings.WeaponPacksCategory.Enable_IZY_RMP_Demopack') == 'Off'">

<!-- Removed trader entry for IZY_RMP_Demopack guns and ammo:
ammo25mmGrenadeFRAGS
ammo25mmGrenadeHE
ammo25mmGrenadeTraining
ammoRocketRPGHE
ammoRocketRPGIncendiary
ammoRocketRPGTraning
IZYgunT2LGLChinalakeGrenadeLauncher
IZYgunT3LGLXM25
IZYgunT3RocketLauncherRPG7

 -->
<remove xpath="/traders/trader_item_groups/trader_item_group/item[@name='ammo25mmGrenadeTraining' or 
@name='ammo25mmGrenadeHE' or 
@name='ammo25mmGrenadeFRAGS' or 
@name='ammoRocketRPGTraning' or 
@name='ammoRocketRPGHE' or 
@name='ammoRocketRPGIncendiary' or 
@name='IZYgunT2LGLChinalakeGrenadeLauncher' or 
@name='IZYgunT3LGLXM25' or 
@name='IZYgunT3RocketLauncherRPG7']"/>
</if>
</conditional>

<!-- *** IZY_RMP_HVW -->
<conditional>
<if cond="modsetting('Combat_Sandbox_FLTR', 'Global', 'WeaponPackSettings.WeaponPacksCategory.Enable_IZY_RMP_HVW') == 'Off'">
<!-- Removed trader entry for IZYgunT5HeavyWeaponM2flameThrower and IZYgunT5HeavyWeaponM134MinigunGatling -->
<remove xpath="/traders/trader_item_groups/trader_item_group/item[@name='IZYgunT5HeavyWeaponM2flameThrower' or 
@name='IZYgunT5HeavyWeaponM134MinigunGatling']"/>

<!-- 2.6.1.5 -->
<!-- Removed trader entry for IZY_RMP_HVW ammo:
IZYAmmoHeavyWeaponFlamethrowerNapalmStandardMixture
IZYAmmoHeavyWeaponFlamethrowerNapalmLethalMixture
 -->
<!-- <remove xpath="/traders/trader_item_groups/trader_item_group/item[@name='IZYAmmoHeavyWeaponFlamethrowerNapalmStandardMixture' or 
@name='IZYAmmoHeavyWeaponFlamethrowerNapalmLethalMixture']"/> -->
<!-- 2.6.1.5 -->
</if>
</conditional>

<!-- *** IZY_RMP_Miscpack -->
<conditional>
<if cond="modsetting('Combat_Sandbox_FLTR', 'Global', 'WeaponPackSettings.WeaponPacksCategory.Enable_IZY_RMP_Miscpack') == 'Off'">

<!-- Removed trader entry for IZY_RMP_Miscpack guns and ammo:
ammoCrossbowLightBoltIron
ammoCrossbowLightBoltSteelAP
ammoCrossbowLightBoltStone
ammoleadball
ammoMuzzleloaderscattershot
ammoMuzzleloadershot
IZYgunT4BowVanhelsingAutomaticCrossbowVH'
IZYgunTminus1MusketFlintlockPistol
IZYgunTminus1MusketM1777Rifle
IZYgunTminus1MusketshotgunBlunderbuss

 -->
<remove xpath="/traders/trader_item_groups/trader_item_group/item[@name='ammoCrossbowLightBoltIron' or 
@name='ammoCrossbowLightBoltSteelAP' or 
@name='ammoCrossbowLightBoltStone' or 
@name='ammoleadball' or 
@name='ammoMuzzleloaderscattershot' or 
@name='ammoMuzzleloadershot' or 
@name='IZYgunT4BowVanhelsingAutomaticCrossbowVH' or 
@name='IZYgunTminus1MusketFlintlockPistol' or 
@name='IZYgunTminus1MusketM1777Rifle' or 
@name='IZYgunTminus1MusketshotgunBlunderbuss']"/>
</if>
</conditional>

<!-- *** IZY_RMP_Tech -->
<conditional>
<if cond="modsetting('Combat_Sandbox_FLTR', 'Global', 'WeaponPackSettings.WeaponPacksCategory.Enable_IZY_RMP_Tech') == 'Off'">

<!-- Removed trader entry for IZY_RMP_Tech guns and ammo:
IZYgunT3TechnicalNailmachinegun

 -->
<remove xpath="/traders/trader_item_groups/trader_item_group/item[@name='IZYgunT3TechnicalNailmachinegun']"/>
</if>
</conditional>

<!-- ***   2.1 Traders don't sell T4/T5 weapons.
DISABLED, as it's implemented in Pacifis Traders  -->

<conditional>
<if cond="modsetting('Combat_Sandbox_FLTR', 'Global', 'T4Settings.T4LootingCategory.Enable_T4_Trading') == 'No'">

<remove xpath="/traders/trader_item_groups/trader_item_group/item[starts-with(@name, 'IZYgunT4') or starts-with(@name, 'IZYMeleeT4') or starts-with(@name, 'IZYgunT5')]"/>

</if>
</conditional>

<!-- *** 3. Challenge Runs: Pacifist Traders: Remove all weapons, ammo and crafting resources from trader inventory.  
-->

<conditional>
<if cond="modsetting('Combat_Sandbox_FLTR', 'Global', 'RestrictedRunSettings.RestrictedRunPacifistTrader.RestrictedRunPacifistTraderNoSell') == 'No'">

<!-- Weapons, turrets, traps -->

<remove xpath="/traders/trader_item_groups/trader_item_group/item[starts-with(@name, 'IZYMelee') or 
starts-with(@name, 'IZYgun') or 
starts-with(@name, 'gunBow') or 
starts-with(@name, 'gunExplosives') or 
starts-with(@name, 'gunHandgun') or 
starts-with(@name, 'gunShotgun') or 
starts-with(@name, 'gunRifle') or 
starts-with(@name, 'gunMG') or 
starts-with(@name, 'gunBotT1') or 
starts-with(@name, 'gunBotT2') or 
starts-with(@name, 'electricfencepost') or 
starts-with(@name, 'bladeTrap') or 
starts-with(@name, 'dartTrap') or 
starts-with(@name, 'autoTurret') or 
starts-with(@name, 'shotgunTurret') or 
starts-with(@name, 'meleeWpn')]"/>

<!-- Vanilla Mines -->
<remove xpath="/traders/trader_item_groups/trader_item_group/item[@name='mineCandyTin' or 
@name='mineHubcap' or 
@name='mineAirFilter']"/>

<!-- IZY ammo -->
<remove xpath="/traders/trader_item_groups/trader_item_group/item[@name='ammoleadball' or 
@name='ammoMuzzleloadershot' or 
@name='ammoMuzzleloaderscattershot' or 
@name='ammoCrossbowLightBoltStone' or 
@name='ammoCrossbowLightBoltIron' or 
@name='ammoCrossbowLightBoltSteelAP' or 
@name='ammo45ACPBulletBall' or 
@name='ammo45ACPHighpower' or 
@name='ammo45ACPArmorpiecing' or 
@name='ammo45ACPEnhanced' or 
@name='ammoBundle45ACPBulletBall' or 
@name='ammoBundle45ACPHighpower' or 
@name='ammoBundle45ACPArmorpiecing' or 
@name='ammoBundle45ACPEnhanced' or 
@name='ammo556mmBulletBall' or 
@name='ammo556mmHIpower' or 
@name='ammo556mmArmorPiercing' or 
@name='ammo556mmBulletBallBundle' or 
@name='ammo556mmHIpowerBundle' or 
@name='ammo556mmArmorPiercingBundle' or 
@name='ammo762mmExplosiveFragmentations' or 
@name='ammo762mmExplosiveFragmentationsBundle' or 
@name='ammoRocketRPGTraning' or 
@name='ammoRocketRPGHE' or 
@name='ammoRocketRPGIncendiary' or 
@name='ammo25mmGrenadeTraining' or 
@name='ammo25mmGrenadeFRAGS' or 
@name='ammo25mmGrenadeHE' or 
@name='ammoShotgunShellPremium' or 
@name='ammoShotgunShellDragoBreath' or 
@name='IZYAmmoHeavyWeaponFlamethrowerNapalmLethalMixture' or 
@name='IZYAmmoHeavyWeaponFlamethrowerNapalmStandardMixture']"/>

<!-- Vanilla ammo -->
<remove xpath="/traders/trader_item_groups/trader_item_group/item[@name='ammo9mmBulletBall' or 
@name='ammo9mmBulletHP' or 
@name='ammo9mmBulletAP' or 
@name='ammo44MagnumBulletBall' or 
@name='ammo44MagnumBulletHP' or 
@name='ammo44MagnumBulletAP' or 
@name='ammo762mmBulletBall' or 
@name='ammo762mmBulletHP' or 
@name='ammo762mmBulletAP' or 
@name='ammoShotgunShell' or 
@name='ammoShotgunSlug' or 
@name='ammoShotgunBreachingSlug' or 
@name='ammoJunkTurretRegular' or 
@name='ammoJunkTurretShell' or 
@name='ammoJunkTurretAP' or 
@name='ammoRocketHE' or 
@name='ammoRocketFrag' or 
@name='ammoArrowStone' or 
@name='ammoArrowIron' or 
@name='ammoArrowSteelAP' or 
@name='ammoArrowFlaming' or 
@name='ammoArrowExploding' or 
@name='ammoCrossbowBoltStone' or 
@name='ammoCrossbowBoltIron' or 
@name='ammoCrossbowBoltSteelAP' or 
@name='ammoCrossbowBoltFlaming' or 
@name='ammoCrossbowBoltExploding' or 
@name='ammoBundle9mmBulletBall' or 
@name='ammoBundle9mmBulletHP' or 
@name='ammoBundle9mmBulletAP' or 
@name='ammoBundle44MagnumBulletBall' or 
@name='ammoBundle44MagnumBulletHP' or 
@name='ammoBundle44MagnumBulletAP' or 
@name='ammoBundle762mmBulletBall' or 
@name='ammoBundle762mmBulletHP' or 
@name='ammoBundle762mmBulletAP' or 
@name='ammoBundleShotgunShell' or 
@name='ammoBundleShotgunSlug' or 
@name='ammoBundleShotgunBreachingSlug' or 
@name='ammoBundleJunkTurretRegular' or 
@name='ammoBundleJunkTurretShell' or 
@name='ammoBundleJunkTurretAP' or 
@name='ammoBundleArrowStone' or 
@name='ammoBundleArrowIron' or 
@name='ammoBundleArrowSteelAP' or 
@name='ammoBundleArrowFlaming' or 
@name='ammoBundleArrowExploding' or 
@name='ammoBundleCrossbowBoltStone' or 
@name='ammoBundleCrossbowBoltIron' or 
@name='ammoBundleCrossbowBoltSteelAP' or 
@name='ammoBundleCrossbowBoltFlaming' or 
@name='ammoBundleCrossbowBoltExploding' or 
@name='ammoDartIron']"/>

<!-- Vanilla resources -->
<remove xpath="/traders/trader_item_groups/trader_item_group/item[@name='resourceGunPowderBundle' or 
@name='resourceArrowHeadIron' or 
@name='resourceArrowHeadSteelAP' or 
@name='resourceGunPowder' or 
@name='resourceBuckshot' or 
@name='resourceBulletCasing' or 
@name='resourceBulletTip' or 
@name='resourceRocketTip' or 
@name='resourceRocketCasing']"/>

<!-- Vanilla thrown -->
<remove xpath="/traders/trader_item_groups/trader_item_group/item[@name='thrownAmmoPipeBomb' or 
@name='thrownGrenadeContact' or 
@name='thrownGrenade' or 
@name='thrownTimedCharge' or 
@name='thrownDynamite' or 
@name='thrownAmmoMolotovCocktail']"/>

<!-- Weapon mods -->
<remove xpath="/traders/trader_item_groups/trader_item_group/item[starts-with(@name, 'modGun') or starts-with(@name, 'modShotgun') or starts-with(@name, 'modMeleeClub') or starts-with(@name, 'modMeleeStun') or starts-with(@name, 'modMeleeSerrated') or starts-with(@name, 'modMeleeWeighted')]"/>

<!-- Reduce the number of gunBotT3JunkDrone in trader inventory. All traders will have max. 1, Bob will have 2. -->
<set xpath="/traders/trader_info/trader_items/item[@group='groupRangedAll']/@count">1</set>

<setattribute xpath="/traders/trader_item_groups/trader_item_group/item[@name='gunBotT3JunkDrone']" name="count">1</setattribute>

<setattribute xpath="/traders/trader_item_groups/trader_item_group/item[@name='gunBotT3JunkDrone']" name="unique_only">true</setattribute>

<set xpath="/traders/trader_info[@id='6']/trader_items/item[@group='traderRobotics']/@count">1</set>

<!-- TODO: check if weapons appear in quest rewards or bundles.. -->

</if>
</conditional>

<!-- *** 3. Challenge Runs: No Crafting Challenge: Add Q6 items to trader inventory -->

<!-- T0 and Tminus1 weapons -->
<conditional>
<if cond="modsetting('Combat_Sandbox_FLTR', 'Global', 'RestrictedRunSettings.RestrictedRunNoCrafting.RestrictedRunNoCraftingT0') == 'No'">

<!-- bowsTier0 -->
<append xpath="/traders/traderstage_templates/traderstage_template[@name='bowsTier0']"><entry min="15" max="25" quality="6"/></append>

<!-- baseTier0 -->
<append xpath="/traders/traderstage_templates/traderstage_template[@name='baseTier0']"><entry min="15" max="20" quality="6"/></append>

<!-- Add Q6 -->
<set xpath="/traders/trader_item_groups/trader_item_group[@name='groupRangedAll' or @name='groupMeleeAll']/item[contains(@name, 'T0' ) or contains (@name, 'Tminus1')]/@quality">1,6</set>

</if>
</conditional>

<!-- Remaining weapon tiers -->
<conditional>
<if cond="modsetting('Combat_Sandbox_FLTR', 'Global', 'RestrictedRunSettings.RestrictedRunNoCrafting.RestrictedRunNoCraftingWeapons') == 'No'">

<!-- bowsTier1 -->
<append xpath="/traders/traderstage_templates/traderstage_template[@name='bowsTier1']"><entry min="35" max="50" quality="6"/></append>

<!-- bowsTier2 -->
<append xpath="/traders/traderstage_templates/traderstage_template[@name='bowsTier2']"><entry min="70" max="999999" quality="6"/></append>

<!-- bowsTier3 -->
<append xpath="/traders/traderstage_templates/traderstage_template[@name='bowsTier3']"><entry min="90" max="999999" quality="6"/></append>

<!-- baseTier1 -->
<append xpath="/traders/traderstage_templates/traderstage_template[@name='baseTier1']"><entry min="60" max="70" quality="6"/></append>

<!-- baseTier2 -->
<append xpath="/traders/traderstage_templates/traderstage_template[@name='baseTier2']"><entry min="50" max="999999" quality="6"/></append>

<!-- baseTier3 -->
<append xpath="/traders/traderstage_templates/traderstage_template[@name='baseTier3']"><entry min="100" max="999999" quality="6"/></append>

<!-- Add Q6 -->
<set xpath="/traders/trader_item_groups/trader_item_group[@name='groupRangedAll' or @name='groupMeleeAll']/item[contains(@name, 'T1' ) or contains (@name, 'T2') or contains (@name, 'T3') or contains (@name, 'T4') or contains (@name, 'T5')]/@quality">1,6</set>
</if>
</conditional>
</RamblingMan>