<?xml version="1.0" encoding="utf-8"?>
<Items>
  
  <Item name="" 
        description=""
        identifier="chaingun" Tags="turret" category="Machine,Weapon" interactthroughwalls="true" Scale="0.5" interactdistance="10" spritecolor="1.0,1.0,1.0,1.0" focusonselected="true" offsetonselected="750" linkable="true" allowedlinks="chaingunequipment">
    <Sprite texture="Loaders.png" depth="0.01" sourcerect="0,0,256,256" canflipy="false" />
    <MinimapIcon name="Command_Weapons_Chaingun" texture="Content/UI/CommandUIAtlas.png" sourcerect="384,896,128,128" />
    <SwappableItem price="6000" replacementonuninstall="turrethardpoint" origin="128,215" swapidentifier="basicturret">
      <SchematicSprite texture="Content/UI/WeaponUI.png" sourcerect="512,0,256,389" />
      <SwapConnectedItem tag="periscope" swapto="periscope" />
      <SwapConnectedItem tag="turretammosource" swapto="chaingunloader" />
    </SwappableItem>
    <UpgradePreviewSprite scale="2.5" texture="Content/UI/WeaponUI.png" sourcerect="387,810,106,65" origin="0.5,0.5" />
    <StaticBody width="80" radius="80" />
    <Turret launchimpulse="100" spinningbarreldistance="45.0" firingrotationspeedmodifier="0.6" usefiringoffsetformuzzleflash="true" maxchargetime="1.0" canbeselected="false" firingoffset="-10,-370" characterusable="false" linkable="true" barrelpos="128,88" rotationlimits="180,360" powerconsumption="400.0" showchargeindicator="true" showprojectileindicator="true" recoildistance="50" reload="0.1" springstiffnesslowskill="2" springstiffnesshighskill="50" springdampinglowskill="0.5" springdampinghighskill="10" rotationspeedlowskill="1" rotationspeedhighskill="5" MaxAngleOffset="30" AICurrentTargetPriorityMultiplier="1.1" ChargeSoundWindupPitchSlide="0.3,1.0">
      <Sound file="Content/Items/Weapons/WEAPONS_chainGunShot1.ogg" type="OnUse" range="10000" selectionmode="Random" />
      <Sound file="Content/Items/Weapons/WEAPONS_chainGunShot2.ogg" type="OnUse" range="10000" />
      <Sound file="Content/Items/Weapons/WEAPONS_chainGunShot3.ogg" type="OnUse" range="10000" />
      <Sound file="Content/Items/Weapons/WEAPONS_chainGunShot4.ogg" type="OnUse" range="10000" />
      <Sound file="Content/Items/Weapons/WEAPONS_chainGunShot5.ogg" type="OnUse" range="10000" />
      <Sound file="Content/Items/Weapons/WEAPONS_chainGunShot6.ogg" type="OnUse" range="10000" />
      <WeaponIndicator texture="Content/UI/WeaponUI.png" sourcerect="575,914,66,32" origin="0.227, 0.531" />
      <RailSprite texture="Content/Items/Weapons/Loaders.png" depth="0.011" sourcerect="256,0,212,512" origin="0.425, 0.875" />
      <SpinningBarrelSprite spriteamount="5" texture="Content/Items/Weapons/Loaders.png" depth="0.013" sourcerect="468,0,46,296" origin="0.1, 1.4" />
      <Crosshair texture="Content/Items/Weapons/Crosshairs.png" sourcerect="256,0,256,256" />
      <CrosshairPointer texture="Content/Items/Weapons/Crosshairs.png" sourcerect="0,0,256,256" />
      <MoveSound file="Content/Items/Weapons/RailgunLoop.ogg" />
      <StartMoveSound file="Content/Items/Weapons/RailgunStart.ogg" />
      <EndMoveSound file="Content/Items/Weapons/RailgunStop.ogg" />
      <ChargeSound file="Content/Items/Weapons/CHAINGUN_chargeUp_loop.ogg" volume="2" range="10000"/>
      <RequiredSkill identifier="weapons" level="50" />
      <LightComponent LightColor="1.0,0.8,0.8,1.0" Flicker="0.0" range="2500" directional="true" IsOn="true" drawbehindsubs="true" ignorecontinuoustoggle="true" InheritParentIsActive="false">
        <LightTexture texture="Content/Lights/lightcone.png" origin="0.0,0.5" size="1.0,1.0" />
      </LightComponent>
      <ParticleEmitter particle="muzzleflashchaingun" particleamount="1" velocitymin="0" velocitymax="0" distancemin="-50" distancemax="-50" />
      <ParticleEmitter particle="muzzleflash" particleamount="1" velocitymin="0" velocitymax="0" scalemin="2" scalemax="3"/>
      <ParticleEmitter particle="swirlysmoke" particleamount="10" velocitymin="0" velocitymax="0" scalemin="2" scalemax="3" distancemin="-100" distancemax="50" />
      <StatusEffect type="OnUse" target="This">
        <Explosion range="1500.0" structuredamage="0" force="0.0" camerashake="8" flames="false" smoke="false" sparks="false" underwaterbubble="false" />
      </StatusEffect>
    </Turret>
    <aitarget maxsightrange="3000" maxsoundrange="8000" fadeouttime="5" />
    <ConnectionPanel selectkey="Action" canbeselected="true" msg="ItemMsgRewireScrewdriver" hudpriority="10">
      <GuiFrame relativesize="0.2,0.32" minsize="400,350" maxsize="480,420" anchor="Center" style="ConnectionPanel" />
      <RequiredItem items="screwdriver" type="Equipped" />
      <input name="power_in" displayname="connection.powerin" />
      <input name="position_in" displayname="connection.turretaimingin" />
      <input name="trigger_in" displayname="connection.turrettriggerin" />
      <input name="toggle_light" displayname="connection.togglelight"/>
      <input name="set_light" displayname="connection.setlight" />
      <input name="set_auto_operate" displayname="connection.setautooperate" />
      <input name="toggle_auto_operate" displayname="connection.toggleautooperate" />
    </ConnectionPanel>
    <Upgrade gameversion="0.19.5.0">
      <Turret rotationspeedhighskill="5" />
    </Upgrade>
    <SkillRequirementHint identifier="weapons" level="50" />
  </Item>

  <Item name="" identifier="chaingunloader" tags="chaingunequipment,chaingunammosource,turretammosource" category="Machine,Weapon" linkable="true" allowedlinks="chaingun" scale="0.5" damagedbyexplosions="true" explosiondamagemultiplier="0.2">
    <SwappableItem canbebought="false" origin="75,356" spawnwithid="chaingunammobox"/>
    <Sprite name="Chaingun Loader Front" texture="Loaders.png" depth="0.78" sourcerect="701,6,149,356" origin="0.5,0.5" />
    <BrokenSprite texture="Content/Items/Weapons/Loaders.png"  sourcerect="163,563,153,351" origin="0.5,0.5" offset="0,7" depth="0.77" fadein="true" maxcondition="99"/>
    <UpgradePreviewSprite texture="Content/UI/WeaponUI.png" sourcerect="208,968,32,46" origin="0.5,0.5" />
    <DecorativeSprite name="Chaingun Loader Frame Back" texture="Loaders.png" depth="0.8" sourcerect="31,569,117,200" origin="0.5,0.5" offset="0,-68" />
    <DecorativeSprite name="Ammobelt" texture="Content/Items/Containers/containers.png" depth="0.79" sourcerect="499,663,52,142" origin="0.5,0.5"
                offset="0,12">
      <IsActiveConditional targetcontaineditem="true" condition="gt 0.0"/>
    </DecorativeSprite>
    <Repairable selectkey="Action" header="mechanicalrepairsheader" deteriorationspeed="10" mindeteriorationdelay="60" maxdeteriorationdelay="300" MinDeteriorationCondition="0" RepairThreshold="50" fixDurationHighSkill="5" fixDurationLowSkill="25" msg="ItemMsgRepairWrench" hudpriority="10">
      <StatusEffect type="InWater" target="This" condition="-0.25" />
      <GuiFrame relativesize="0.2,0.16" minsize="400,180" maxsize="480,280" anchor="Center" relativeoffset="-0.1,0.27" style="ItemUI" />
      <RequiredSkill identifier="mechanical" level="55" />
      <RequiredItem items="wrench" type="Equipped" />
      <ParticleEmitter particle="damagebubbles" particlespersecond="2" scalemin="0.5" scalemax="1.5" anglemax="360" velocitymin="-10" velocitymax="10" mincondition="0.0" maxcondition="50.0" />
      <ParticleEmitter particle="smoke" particlespersecond="2" scalemin="1" scalemax="2.5" anglemax="360" velocitymin="-50" velocitymax="50" mincondition="15.0" maxcondition="50.0" />
      <ParticleEmitter particle="heavysmoke" particlespersecond="2" scalemin="1.0" scalemax="2.5" anglemax="360" distancemax="60" mincondition="0.0" maxcondition="15.0" />
      <StatusEffect type="OnFailure" target="Character" targetlimbs="LeftHand,RightHand" AllowWhenBroken="true">
        <Sound file="Content/Items/MechanicalRepairFail.ogg" range="1000" />
        <Affliction identifier="lacerations" strength="5" />
        <Affliction identifier="stun" strength="4" />
      </StatusEffect>
    </Repairable>
    <ItemContainer hideitems="false" drawinventory="true" capacity="1" maxstacksize="1" slotsperrow="6" itempos="75,-270" iteminterval="0,0" itemrotation="0" canbeselected="true" msg="ItemMsgInteractSelect" containedspritedepth="0.79">
      <GuiFrame relativesize="0.18,0.23" anchor="Center" minsize="140,170" maxsize="280,280" style="ItemUI" />
      <Containable items="chaingunammo" />
      <!-- when the chaingun is fired, it triggers this statuseffect, causing contained ammunition boxes to spawn new ammo -->
      <StatusEffect type="OnUse" target="Contained">
        <RequiredItem items="chaingunammo" type="Contained" />
        <Use />
      </StatusEffect>
    </ItemContainer>
    <ConnectionPanel selectkey="Action" canbeselected="true" msg="ItemMsgRewireScrewdriver" hudpriority="10">
      <GuiFrame relativesize="0.2,0.32" minsize="400,350" maxsize="480,420" anchor="Center" style="ConnectionPanel" />
      <RequiredItem items="screwdriver" type="Equipped" />
      <output name="condition_out" displayname="connection.conditionout" />
      <output name="contained_conditions" displayname="connection.ammunitionout" />
    </ConnectionPanel>

    <LightComponent lightcolor="219,0,36,150" castshadows="false" range="0.0" IsOn="true" powerconsumption="0" alphablend="true" allowingameediting="false">
      <sprite texture="Content/Items/Weapons/Loaders.png" sourcerect="348,921,25,27" origin="1.685,-4.88" alpha="1.0" />
      <IsActiveConditional targetcontaineditem="true" conditionpercentage="gt 0"/>
    </LightComponent>
    <LightComponent lightcolor="255,170,1,150" castshadows="false" range="0.0" IsOn="true" powerconsumption="0" alphablend="true" allowingameediting="false">
      <sprite texture="Content/Items/Weapons/Loaders.png" sourcerect="348,921,25,27" origin="1.135,-4.88" alpha="1.0" />
      <IsActiveConditional targetcontaineditem="true" conditionpercentage="gt 20"/>
    </LightComponent>
    <LightComponent lightcolor="246,210,2,150" castshadows="false" range="0.0" IsOn="true" powerconsumption="0" alphablend="true" allowingameediting="false">
      <sprite texture="Content/Items/Weapons/Loaders.png" sourcerect="348,921,25,27" origin="0.585,-4.88" alpha="1.0" />
      <IsActiveConditional targetcontaineditem="true" conditionpercentage="gt 40"/>
    </LightComponent>
    <LightComponent lightcolor="252,230,150" castshadows="false" range="0.0" IsOn="true" powerconsumption="0" alphablend="true" allowingameediting="false">
      <sprite texture="Content/Items/Weapons/Loaders.png" sourcerect="348,921,25,27" origin="0.035,-4.88" alpha="1.0" />
      <IsActiveConditional targetcontaineditem="true" conditionpercentage="gt 60"/>
    </LightComponent>
    <LightComponent lightcolor="185,214,0,150" castshadows="false" range="0.0" IsOn="true" powerconsumption="0" alphablend="true" allowingameediting="false">
      <sprite texture="Content/Items/Weapons/Loaders.png" sourcerect="348,921,25,27" origin="-0.515,-4.88" alpha="1.0" />
      <IsActiveConditional targetcontaineditem="true" conditionpercentage="gt 80"/>
    </LightComponent>
    <LightComponent lightcolor="79,184,0,150" castshadows="false" range="0.0" IsOn="true" powerconsumption="0" alphablend="true" allowingameediting="false">
      <sprite texture="Content/Items/Weapons/Loaders.png" sourcerect="348,921,25,27" origin="-1.065,-4.88" alpha="1.0" />
      <IsActiveConditional targetcontaineditem="true" conditionpercentage="gte 100"/>
    </LightComponent>
  </Item>
  
  <Item name="" identifier="chaingunbolt" category="Weapon" scale="0.3" sonarsize="2" hideinmenus="true">
    <Sprite texture="TurretsAndDepthCharges.png" sourcerect="143,310,369,66" depth="0.55" />
    <Body width="170" height="10" density="10" />
    <Holdable slots="RightHand+LeftHand" holdpos="0,-50" handle1="-10,0" handle2="10,0" aimable="false" />
    <Projectile characterusable="false" launchimpulse="0" spread="9.5" removeonhit="true" damagedoors="true">
      <Attack structuredamage="8" itemdamage="12" severlimbsprobability="0.1" penetration="0.1">
        <Affliction identifier="lacerations" strength="12" />
        <Affliction identifier="bleeding" strength="2" />
        <Affliction identifier="stun" strength="0.025"/>
        <Affliction identifier="stun" strength="0.025" probability="0.5" />
      </Attack>
      <StatusEffect type="OnActive" target="This">
        <ParticleEmitter particle="chainguntrail" copyentityangle="true" particlespersecond="50" initialdelay="0.05" colormultiplier="240,200,50" />
      </StatusEffect>
      <StatusEffect type="OnNotContained" target="This" stackable="false" delay="2">
        <Remove />
      </StatusEffect>
      <StatusEffect type="OnImpact" target="UseTarget">
        <ParticleEmitter particle="impactfirearm" copyentityangle="true" particleamount="1" velocitymin="0" velocitymax="0" scalemin="2.0" scalemax="3.0" />    
        <ParticleEmitter particle="weldspark" copyentityangle="true" anglemin="-40" anglemax="40" particleamount="8" velocitymin="-300" velocitymax="-800" scalemin="1" scalemax="2" />    
        <ParticleEmitter particle="shrapnel" copyentityangle="true" anglemin="0" anglemax="360" particleamount="5" velocitymin="100" velocitymax="500" scalemin="0.4" scalemax="0.5" />
      </StatusEffect>
      <StatusEffect type="OnImpact" target="UseTarget">
        <Conditional entitytype="eq Structure"/>
        <Conditional hastag="eq door"/>
        <ParticleEmitter particle="spark" copyentityangle="true" anglemin="-10" anglemax="10" particleamount="5" velocitymin="-10" velocitymax="-200" scalemin="0.5" scalemax="1" />
      </StatusEffect>
    </Projectile>
  </Item>
  
  <Item name="" identifier="chaingunboltphysicorium" nameidentifier="chaingunbolt" category="Weapon" scale="0.5" sonarsize="2" hideinmenus="true" spritecolor="255,150,100,255">
    <Sprite texture="TurretsAndDepthCharges.png" sourcerect="143,310,369,66" depth="0.55" />
    <Body width="170" height="10" density="15" />
    <Holdable slots="RightHand+LeftHand" holdpos="0,-50" handle1="-10,0" handle2="10,0" aimable="false" />
    <Projectile characterusable="false" launchimpulse="0" spread="9.5" removeonhit="true" damagedoors="true">
      <Attack structuredamage="20" itemdamage="18" severlimbsprobability="0.2" penetration="0.2" targetforce="50">
        <Affliction identifier="lacerations" strength="19" />
        <Affliction identifier="bleeding" strength="2" />
        <Affliction identifier="stun" strength="0.05"/>
        <Affliction identifier="stun" strength="0.05" probability="0.5" />
      </Attack>
      <StatusEffect type="OnActive" target="This">
        <ParticleEmitter particle="chainguntrail" copyentityangle="true" particlespersecond="50" initialdelay="0.05" colormultiplier="150,150,200" />
      </StatusEffect>
      <StatusEffect type="OnNotContained" target="This" stackable="false" delay="2">
        <Remove />
      </StatusEffect>
      <StatusEffect type="OnImpact" target="UseTarget">
        <ParticleEmitter particle="impactfirearm" copyentityangle="true" particleamount="1" velocitymin="0" velocitymax="0" scalemin="2.0" scalemax="3.0" colormultiplier="255,150,200" lifetimemultiplier="3" />    
        <ParticleEmitter particle="weldspark" copyentityangle="true" anglemin="-40" anglemax="40" particleamount="8" velocitymin="-300" velocitymax="-800" scalemin="1" scalemax="2" />    
        <ParticleEmitter particle="shrapnel" copyentityangle="true" anglemin="0" anglemax="360" particleamount="5" velocitymin="100" velocitymax="500" scalemin="0.4" scalemax="0.5" />
      </StatusEffect>
      <StatusEffect type="OnImpact" target="UseTarget">
        <Conditional entitytype="eq Structure"/>
        <Conditional hastag="eq door"/>
        <ParticleEmitter particle="spark" copyentityangle="true" anglemin="-10" anglemax="10" particleamount="5" velocitymin="-10" velocitymax="-200" scalemin="0.5" scalemax="1" />
      </StatusEffect>
    </Projectile>
  </Item>

  <Item name="" identifier="chaingunboltshredder" category="Misc" scale="0.3" sonarsize="2" hideinmenus="true">
    <Sprite texture="TurretsAndDepthCharges.png" sourcerect="143,310,369,66" depth="0.55" />
    <Body width="170" height="10" density="10" />
    <Holdable slots="RightHand+LeftHand" holdpos="0,-50" handle1="-10,0" handle2="10,0" aimable="false" />
    <Projectile characterusable="false" launchimpulse="0" spread="9.5" removeonhit="true" damagedoors="true">
      <Attack structuredamage="25" itemdamage="18" severlimbsprobability="0.3" penetration="0.4">
        <Affliction identifier="lacerations" strength="12" />
        <Affliction identifier="bleeding" strength="6" />
        <Affliction identifier="stun" strength="0.05"/>
        <Affliction identifier="stun" strength="0.05" probability="0.5" />
      </Attack>
      <StatusEffect type="OnActive" target="This">
        <ParticleEmitter particle="chainguntrail" copyentityangle="true" particlespersecond="50" initialdelay="0.05" colormultiplier="240,100,50" />
      </StatusEffect>
      <StatusEffect type="OnNotContained" target="This" stackable="false" delay="2">
        <Remove />
      </StatusEffect>
      <StatusEffect type="OnImpact" target="UseTarget">
        <ParticleEmitter particle="impactfirearm" copyentityangle="true" particleamount="1" velocitymin="0" velocitymax="0" scalemin="2.0" scalemax="3.0" colormultiplier="255,220,220"/>
        <ParticleEmitter particle="weldspark" copyentityangle="true" anglemin="-40" anglemax="40" particleamount="8" velocitymin="-300" velocitymax="-800" scalemin="1" scalemax="2" />
        <ParticleEmitter particle="shrapnel" copyentityangle="true" anglemin="0" anglemax="360" particleamount="5" velocitymin="100" velocitymax="500" scalemin="0.4" scalemax="0.5" />
      </StatusEffect>
      <StatusEffect type="OnImpact" target="UseTarget">
        <Conditional entitytype="eq Structure"/>
        <Conditional hastag="eq door"/>
        <ParticleEmitter particle="spark" copyentityangle="true" anglemin="-10" anglemax="10" particleamount="5" velocitymin="-10" velocitymax="-200" scalemin="0.5" scalemax="1" />
      </StatusEffect>
    </Projectile>
  </Item>

  <Item name="" identifier="chaingunammobox" scale="0.5" tags="chaingunequipment,chaingunammo,ammobox" category="Weapon" linkable="true" impactsoundtag="impact_metal_heavy" cargocontaineridentifier="">
    <PreferredContainer primary="chaingunammosource" amount="1" mincondition="1"/>
    <PreferredContainer primary="ammoboxcontainer" mincondition="1"/>
    <!--Ensure that Thalamus always has at least one ammo box to use-->
    <PreferredContainer secondary="wreckchaingunloader" amount="1" />
    <PreferredContainer secondary="wreckammoboxcontainer" amount="1" spawnprobability="0.2"/>
    <Price baseprice="180" minavailable="1" displaynonempty="true">
      <Price storeidentifier="merchantoutpost" multiplier="1.3" />
      <Price storeidentifier="merchantcity" multiplier="1.2" sold="false"/>
      <Price storeidentifier="merchantresearch" sold="false" multiplier="1.3" />
      <Price storeidentifier="merchantmilitary" multiplier="0.9" minavailable="3" />
      <Price storeidentifier="merchantmine" sold="false" multiplier="1.2" />
      <Price storeidentifier="merchantarmory" multiplier="0.9" minavailable="3" />
    </Price>
    <Deconstruct time="10">
      <Item identifier="aluminium" />
    </Deconstruct>
    <Fabricate suitablefabricators="fabricator" requiredtime="20">
      <RequiredSkill identifier="weapons" level="40" />
      <RequiredItem tag="munition_core" amount="3" description="fabricationdescription.munition_core" />
      <RequiredItem identifier="aluminium" />
    </Fabricate>
    <Fabricate suitablefabricators="fabricator" displayname="recycleitem" requiredtime="15">
      <RequiredSkill identifier="weapons" level="35" />
      <RequiredItem tag="munition_core" amount="3" description="fabricationdescription.munition_core" />
      <RequiredItem tag="ammobox" mincondition="0.0" maxcondition="0.1" usecondition="false" description="fabricationdescription.ammoboxrecycle" header="fabricationheader.ammoboxrecycle" defaultitem="chaingunammobox" />
    </Fabricate>
    <!--<InventoryIcon texture="Content/Items/InventoryIconAtlas.png" sourcerect="320,128,64,64" />-->
    <Sprite texture="Content/Items/Containers/containers.png" depth="0.54" sourcerect="680,687,95,78" origin="0.5,0.5" />
    <Body width="90" height="72" density="50" />
    <Holdable canbecombined="true" removeoncombined="false" slots="RightHand,LeftHand" holdpos="0,-30" handle1="0,-30" aimable="false" msg="ItemMsgPickUpSelect">
      <StatValue stattype="MovementSpeed" value="-0.2" />
    </Holdable>
    <ItemContainer hideitems="true" capacity="1" drawinventory="false" canbeselected="false" canbecombined="true" ShowConditionInContainedStateIndicator="true" removecontaineditemsondeconstruct="true" containedstateindicatorstyle="bullet">
      <StatusEffect type="OnUse" target="This" disabledeltatime="true">
        <SpawnItem identifiers="chaingunbolt" spawnposition="ThisInventory" />
      </StatusEffect>
      <StatusEffect type="OnUse" target="This" condition="-0.20" disabledeltatime="true">
        <RequiredItem items="chaingunbolt" type="Contained" />
      </StatusEffect>
      <Containable items="chaingunbolt" />
    </ItemContainer>
  </Item>

  <Item name="" identifier="chaingunammoboxphysicorium" fallbacknameidentifier="chaingunammobox" scale="0.5" tags="chaingunequipment,chaingunammo,ammobox" category="Weapon" linkable="true" impactsoundtag="impact_metal_heavy" cargocontaineridentifier="">
    <PreferredContainer primary="chaingunammosource,ammoboxcontainer" mincondition="1"/>
    <PreferredContainer secondary="wreckchaingunloader" amount="1" spawnprobability="0.05"/>
    <PreferredContainer secondary="wreckammoboxcontainer" amount="1" spawnprobability="0.1"/>
    <Price baseprice="410" sold="false" displaynonempty="true" minleveldifficulty="35">
      <Price storeidentifier="merchantoutpost" multiplier="1.3"/>
      <Price storeidentifier="merchantcity" multiplier="1.2"/>
      <Price storeidentifier="merchantresearch" multiplier="1.3"/>
      <Price storeidentifier="merchantmilitary" sold="true" multiplier="0.9" minavailable="1"/>
      <Price storeidentifier="merchantmine" multiplier="1.2"/>
      <Price storeidentifier="merchantarmory" sold="true"  multiplier="0.9" minavailable="1"/>
    </Price>
    <Deconstruct time="10">
      <Item identifier="physicorium" mincondition="0.95" />
      <Item identifier="aluminium" />
    </Deconstruct>
    <Fabricate suitablefabricators="fabricator" requiredtime="20">
      <RequiredSkill identifier="weapons" level="55" />
      <RequiredItem identifier="physicorium" />
      <RequiredItem tag="advmunition_core" amount="3" description="fabricationdescription.advmunition_core" />
      <RequiredItem identifier="aluminium" />
    </Fabricate>
    <Fabricate suitablefabricators="fabricator" displayname="recycleitem" requiredtime="15">
      <RequiredSkill identifier="weapons" level="50" />
      <RequiredItem identifier="physicorium" />
      <RequiredItem tag="advmunition_core" amount="3" description="fabricationdescription.advmunition_core" />
      <RequiredItem tag="ammobox" mincondition="0.0" maxcondition="0.1" usecondition="false" description="fabricationdescription.ammoboxrecycle" header="fabricationheader.ammoboxrecycle" defaultitem="chaingunammoboxphysicorium" />
    </Fabricate>
    <!--<InventoryIcon texture="Content/Items/InventoryIconAtlas.png" sourcerect="320,128,64,64" />-->
    <Sprite texture="Content/Items/Containers/containers.png" depth="0.54" sourcerect="800,687,95,78" origin="0.5,0.5" />
    <Body width="90" height="72" density="30" />
    <Holdable canbecombined="true" removeoncombined="false" slots="RightHand,LeftHand" holdpos="0,-30" handle1="0,-30" aimable="false" msg="ItemMsgPickUpSelect">
      <StatValue stattype="MovementSpeed" value="-0.2" />
    </Holdable>
    <ItemContainer hideitems="true" capacity="1" drawinventory="false" canbeselected="false" canbecombined="true" ShowConditionInContainedStateIndicator="true" removecontaineditemsondeconstruct="true" containedstateindicatorstyle="bullet">
      <StatusEffect type="OnUse" target="This" disabledeltatime="true">
        <SpawnItem identifiers="chaingunboltphysicorium" spawnposition="ThisInventory" />
      </StatusEffect>
      <StatusEffect type="OnUse" target="This" condition="-0.20" disabledeltatime="true">
        <RequiredItem items="chaingunboltphysicorium" type="Contained" />
      </StatusEffect>
      <Containable items="chaingunboltphysicorium" />
    </ItemContainer>
  </Item>

  <Item name="" identifier="chaingunammoboxshredder" scale="0.5" tags="chaingunequipment,chaingunammo,ammobox" category="Weapon" linkable="true" impactsoundtag="impact_metal_heavy" cargocontaineridentifier="">
    <PreferredContainer primary="chaingunammosource,ammoboxcontainer" mincondition="1"/>
    <PreferredContainer secondary="wreckchaingunloader" amount="1" spawnprobability="0.05"/>
    <PreferredContainer secondary="wreckammoboxcontainer" amount="1" spawnprobability="0.1"/>
    <Price baseprice="300" minavailable="0" displaynonempty="true" minleveldifficulty="15">
      <Price storeidentifier="merchantoutpost" multiplier="1.3" />
      <Price storeidentifier="merchantcity" multiplier="1.2" sold="false"/>
      <Price storeidentifier="merchantresearch" sold="false" multiplier="1.3" />
      <Price storeidentifier="merchantmilitary" multiplier="0.9" minavailable="3" />
      <Price storeidentifier="merchantmine" sold="false" multiplier="1.2" />
      <Price storeidentifier="merchantarmory" multiplier="0.9" minavailable="3" />
    </Price>
    <Deconstruct time="10">
      <Item identifier="aluminium" />
    </Deconstruct>
    <Fabricate suitablefabricators="fabricator" requiredtime="20">
      <RequiredSkill identifier="weapons" level="60" />
      <RequiredItem tag="advmunition_tip" description="fabricationdescription.advmunition_tip" />
      <RequiredItem tag="advmunition_core" amount="3" description="fabricationdescription.advmunition_core" />
      <RequiredItem identifier="aluminium" />
    </Fabricate>
    <Fabricate suitablefabricators="fabricator" displayname="recycleitem" requiredtime="15">
      <RequiredSkill identifier="weapons" level="55" />
      <RequiredItem tag="advmunition_tip" description="fabricationdescription.advmunition_tip" />
      <RequiredItem tag="advmunition_core" amount="3" description="fabricationdescription.advmunition_core" />
      <RequiredItem tag="ammobox" mincondition="0.0" maxcondition="0.1" usecondition="false" description="fabricationdescription.ammoboxrecycle" header="fabricationheader.ammoboxrecycle" defaultitem="chaingunammoboxshredder" />
    </Fabricate>
    <!--<InventoryIcon texture="Content/Items/InventoryIconAtlas.png" sourcerect="320,128,64,64" />-->
    <Sprite texture="Content/Items/Containers/containers.png" depth="0.54" sourcerect="747,602,95,78" origin="0.5,0.5" />
    <Body width="90" height="72" density="30" />
    <Holdable canbecombined="true" removeoncombined="false" slots="RightHand,LeftHand" holdpos="0,-30" handle1="0,-30" aimable="false" msg="ItemMsgPickUpSelect">
      <StatValue stattype="MovementSpeed" value="-0.2" />
    </Holdable>
    <ItemContainer hideitems="true" capacity="1" drawinventory="false" canbeselected="false" canbecombined="true" ShowConditionInContainedStateIndicator="true" removecontaineditemsondeconstruct="true" containedstateindicatorstyle="bullet">
      <StatusEffect type="OnUse" target="This" disabledeltatime="true">
        <SpawnItem identifiers="chaingunboltshredder" spawnposition="ThisInventory" />
      </StatusEffect>
      <StatusEffect type="OnUse" target="This" condition="-0.25" disabledeltatime="true">
        <RequiredItem items="chaingunboltshredder" type="Contained" />
      </StatusEffect>
      <Containable items="chaingunboltshredder" />
    </ItemContainer>
  </Item>
</Items>
