<?xml version="1.0" encoding="utf-8"?>
<Items>
  <Item name="" identifier="handcannonround" category="Weapon" maxstacksize="32" maxstacksizecharacterinventory="12" interactthroughwalls="true" cargocontaineridentifier="metalcrate" allowasextracargo="true" Scale="0.5" tags="smallitem,handcannonammo,handheldammo,pistolammoitem" impactsoundtag="impact_metal_light">
    <PreferredContainer primary="secarmcab" secondary="armcab"/>
    <PreferredContainer primary="handcannon" amount="6" spawnprobability="1.0"/>
    <PreferredContainer secondary="wrecksecarmcab" minamount="1" maxamount="6" spawnprobability="0.02"/>    
    <Price baseprice="50" sold="false" />
    <Fabricate suitablefabricators="fabricator" requiredtime="20" requiresrecipe="true" amount="6">
      <RequiredSkill identifier="weapons" level="45" />
      <RequiredItem tag="munition_propulsion" description="fabricationdescription.munition_propulsion" />
      <RequiredItem tag="advmunition_tip" description="fabricationdescription.advmunition_tip" />
      <RequiredItem tag="advmunition_core" description="fabricationdescription.advmunition_core" />
      <RequiredItem tag="advmunition_jacket" description="fabricationdescription.advmunition_jacket" />
    </Fabricate>
    <InventoryIcon texture="Content/Items/JobGear/TalentGear.png" sourcerect="166,430,40,43" origin="0.5,0.5" />
    <Sprite texture="Content/Items/Jobgear/TalentGear.png" sourcerect="3,118,24,9" depth="0.55" origin="0.5,0.5" />
    <Body width="34" height="14" density="30" />
    <Pickable slots="Any" msg="ItemMsgPickUpSelect" />
    <Projectile characterusable="false" hitscan="true" removeonhit="true">
      <ParticleEmitter particle="tracerfirearm" particleamount="1" velocitymin="0" velocitymax="0" colormultiplier="255,200,115,200" scalemultiplier="1,1" />
      <Attack structuredamage="20" targetforce="20" itemdamage="20" severlimbsprobability="1.0" penetration="0.5">
        <Affliction identifier="gunshotwound" strength="70" />
        <Affliction identifier="bleeding" strength="50" />
        <Affliction identifier="stun" strength="1.5" />
      </Attack>
      <StatusEffect type="OnImpact" target="UseTarget">
        <ParticleEmitter particle="impactfirearm" particleamount="1" velocitymin="0" velocitymax="0" scalemultiplier="6,6" colormultiplier="255,200,115,200" />
      </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.75" scalemax="1" />
      </StatusEffect>
    </Projectile>
  </Item>
  <Item name="" identifier="handcannon" category="Weapon" cargocontaineridentifier="metalcrate" allowasextracargo="true" tags="smallitem,weapon,gun,pistolitem,mountableweapon,provocativetohumanai" Scale="0.5" impactsoundtag="impact_metal_light">
    <PreferredContainer primary="secarmcab"/>
    <PreferredContainer secondary="armcab,weaponholder" />
    <Price baseprice="600" sold="false">
      <Price storeidentifier="merchantoutpost" multiplier="1.5" />
      <Price storeidentifier="merchantcity" multiplier="1.25" />
      <Price storeidentifier="merchantresearch" multiplier="1.25" />
      <Price storeidentifier="merchantmilitary" multiplier="0.9" />
      <Price storeidentifier="merchantmine" multiplier="1.25" />
    </Price>
    <Fabricate suitablefabricators="fabricator" requiredtime="70" requiresrecipe="true">
      <RequiredSkill identifier="weapons" level="60" />
      <RequiredItem identifier="titaniumaluminiumalloy" amount="3" />
      <RequiredItem identifier="physicorium" />
    </Fabricate>
    <Deconstruct time="30">
      <Item identifier="titaniumaluminiumalloy" amount="2" />
      <Item identifier="physicorium" />
    </Deconstruct>
    <InventoryIcon texture="Content/Items/JobGear/TalentGear.png" sourcerect="303,364,42,67" origin="0.5,0.5" />
    <Sprite texture="Content/Items/Jobgear/TalentGear.png" sourcerect="0,256,111,56" depth="0.55" origin="0.5,0.5" />
    <Body width="106" height="49" density="30" />
    <Holdable slots="Any,RightHand+LeftHand" controlpose="true" aimpos="90,10" handle1="-45,-4" handle2="-45,-15" msg="ItemMsgPickUpSelect" />
    <RangedWeapon reload="1" barrelpos="40,6" spread="0" unskilledspread="8" combatPriority="90" drawhudwhenequipped="true" crosshairscale="0.2">
      <Crosshair texture="Content/Items/Weapons/Crosshairs.png" sourcerect="0,256,256,256" />
      <CrosshairPointer texture="Content/Items/Weapons/Crosshairs.png" sourcerect="256,256,256,256" />
      <Sound file="Content/Items/JobGear/Captain/WEAPONS_handCannon.ogg" type="OnUse" range="3000" selectionmode="Random" />
      <Sound file="Content/Items/JobGear/Captain/WEAPONS_handCannon_1.ogg" type="OnUse" range="3000" />
      <Sound file="Content/Items/JobGear/Captain/WEAPONS_handCannon_2.ogg" type="OnUse" range="3000" />
      <Sound file="Content/Items/JobGear/Captain/WEAPONS_handCannon_3.ogg" type="OnUse" range="3000" />
      <Sound file="Content/Items/JobGear/Captain/WEAPONS_handCannon_4.ogg" type="OnUse" range="3000" />
      <Sound file="Content/Items/JobGear/Captain/WEAPONS_handCannon_5.ogg" type="OnUse" range="3000" />
      <ParticleEmitter particle="impactfirearm" particleamount="1" velocitymin="0" velocitymax="0" scalemultiplier="7.0,7.0" colormultiplier="255,200,115,200" />
      <StatusEffect type="OnUse" target="This">
        <ParticleEmitter particle="casingfirearm" particleamount="1" anglemin="90" anglemax="150" velocitymin="50" velocitymax="250" CopyEntityAngle="true" />
        <Explosion range="150.0" force="5" shockwave="false" smoke="false" flash="true" sparks="false" flames="false" underwaterbubble="false" camerashake="6.0" />
      </StatusEffect>
      <RequiredItems items="handcannonammo" type="Contained" msg="ItemMsgAmmoRequired" />
      <RequiredSkill identifier="weapons" level="60" />
    </RangedWeapon>
    <ItemContainer capacity="1" maxstacksize="6" hideitems="false" containedstateindicatorstyle="bullet" containedstateindicatorslot="0" containedspritedepth="0.56">
      <Containable items="handcannonammo" hide="true"/>
      <SlotIcon slotindex="0" texture="Content/UI/StatusMonitorUI.png" sourcerect="256,448,64,64" origin="0.5,0.5" />
      <SlotIcon slotindex="1" texture="Content/UI/StatusMonitorUI.png" sourcerect="320,448,64,64" origin="0.5,0.5" />
      <SubContainer capacity="1" maxstacksize="1">
        <Containable items="flashlight" hide="false" itempos="17,4" setactive="true"/>
      </SubContainer>
    </ItemContainer>
    <aitarget sightrange="2000" soundrange="5000" fadeouttime="5" />
    <Quality>
      <QualityStat stattype="FirepowerMultiplier" value="0.1" />
    </Quality>
    <SkillRequirementHint identifier="weapons" level="60" />
  </Item>
  <Item name="" identifier="coalitioncommendation" category="Misc" Tags="smallitem" cargocontaineridentifier="metalcrate" allowasextracargo="true" maxstacksize="32" maxstacksizecharacterinventory="8" scale="0.5" impactsoundtag="impact_soft">
    <PreferredContainer primary="crewcab"/>
    <Price baseprice="300" buyingpricemodifier="5" minleveldifficulty="40">
      <Price storeidentifier="merchantoutpost" maxavailable="0" />
      <Price storeidentifier="merchantcity" multiplier="0.9" maxavailable="1" />
      <Price storeidentifier="merchantresearch" sold="false" multiplier="0.9" />
      <Price storeidentifier="merchantmilitary" maxavailable="1" />
      <Price storeidentifier="merchantmine" sold="false" multiplier="0.75" />
    </Price>
    <Deconstruct time="20">
      <Item identifier="copper" />
    </Deconstruct>
    <InventoryIcon texture="Content/Items/JobGear/TalentGear.png" sourcerect="265,365,36,65" origin="0.5,0.5" />
    <Sprite texture="Content/Items/JobGear/TalentGear.png" sourcerect="3,4,24,43" depth="0.6" origin="0.5,0.5" />
    <Body width="19" height="40" density="25" />
    <MeleeWeapon slots="Any,RightHand,LeftHand" aimpos="40,5" handle1="0,5" holdangle="90" reload="1.0" msg="ItemMsgPickUpSelect" HitOnlyCharacters="true">
      <Attack targetimpulse="5">
        <!-- empty attack so that a talent can trigger-->
      </Attack>
      <StatusEffect type="OnUse" target="This" Condition="-100.0" disabledeltatime="true" />
      <StatusEffect type="OnUse" target="UseTarget" disabledeltatime="true">
        <Sound file="Content/Items/Button/button.ogg" type="OnUse" range="500" />
        <GiveExperience amount="275" />
      </StatusEffect>
      <StatusEffect type="OnBroken" target="This">
        <Remove />
      </StatusEffect>
    </MeleeWeapon>
  </Item>
  <Item name="" identifier="coalitionmedal" category="Misc" Tags="smallitem" cargocontaineridentifier="metalcrate" allowasextracargo="true" maxstacksize="32" maxstacksizecharacterinventory="8" scale="0.5" impactsoundtag="impact_soft">
    <PreferredContainer primary="crewcab"/>
    <Price baseprice="600" buyingpricemodifier="5" minleveldifficulty="65">
      <Price storeidentifier="merchantoutpost" maxavailable="0" />
      <Price storeidentifier="merchantcity" multiplier="0.9" maxavailable="1" />
      <Price storeidentifier="merchantresearch" sold="false" multiplier="0.9" />
      <Price storeidentifier="merchantmilitary" maxavailable="1" />
      <Price storeidentifier="merchantmine" sold="false" multiplier="0.75" />
    </Price>
    <Deconstruct time="20">
      <Item identifier="copper" />
      <Item identifier="tin" />
    </Deconstruct>
    <InventoryIcon texture="Content/Items/JobGear/TalentGear.png" sourcerect="228,365,37,65" origin="0.5,0.5" />
    <Sprite texture="Content/Items/JobGear/TalentGear.png" sourcerect="33,4,24,43" depth="0.6" origin="0.5,0.5" />
    <Body width="19" height="40" density="25" />
    <MeleeWeapon slots="Any,RightHand,LeftHand" aimpos="40,5" handle1="0,5" holdangle="90" reload="1.0" msg="ItemMsgPickUpSelect" HitOnlyCharacters="true">
      <Attack targetimpulse="5">
        <!-- empty attack so that a talent can trigger-->
      </Attack>
      <StatusEffect type="OnUse" target="This" Condition="-100.0" disabledeltatime="true" />
      <StatusEffect type="OnUse" target="UseTarget" disabledeltatime="true">
        <Sound file="Content/Items/Button/button.ogg" type="OnUse" range="500" />
        <GiveExperience amount="550" />
      </StatusEffect>
      <StatusEffect type="OnBroken" target="This">
        <Remove />
      </StatusEffect>
    </MeleeWeapon>
  </Item>
  <Item name="" identifier="cigar" category="Misc" Tags="smallitem" scale="0.5" cargocontaineridentifier="metalcrate" allowasextracargo="true" impactsoundtag="impact_soft" isshootable="true" requireaimtouse="true">
    <PreferredContainer primary="crewcab"/>
    <Price baseprice="130" sold="false" />
    <Fabricate suitablefabricators="fabricator" requiredtime="5" requiresrecipe="true">
      <RequiredItem identifier="pipetobacco" />
    </Fabricate>
    <InventoryIcon texture="Content/Items/JobGear/TalentGear.png" sourcerect="174,234,42,50" origin="0.5,0.5" />
    <Sprite texture="Content/Items/JobGear/TalentGear.png" sourcerect="0,60,50,12" depth="0.55" origin="0.5,0.5" />
    <Body width="45" height="10" density="9.9"/>
    <Holdable slots="Any,RightHand,LeftHand" aimable="false" aimpos="30,14" handle1="0,-10" swingamount="0,0" swingspeed="0.5" swingwhenusing="true" msg="ItemMsgPickUpSelect">
      <StatusEffect type="OnSecondaryUse" target="This" Condition="-4.0" />
      <StatusEffect type="OnSecondaryUse" target="This">
        <Conditional InWater="false" />
        <ParticleEmitter particle="swirlysmoke" particlespersecond="1" scalemin="1" scalemax="2" anglemin="0" anglemax="360" velocitymin="0" velocitymax="10"/>
      </StatusEffect>
      <StatusEffect type="OnSecondaryUse" target="This">
        <Conditional InWater="true" />
        <ParticleEmitter particle="bubbles" particlespersecond="3" scalemin="0.3" scalemax="0.5" anglemin="0" anglemax="360" velocitymin="0" velocitymax="10"/>
      </StatusEffect>
      <StatusEffect tags="medical" type="OnSecondaryUse" target="Character">
        <Affliction identifier="psychosisresistance" amount="20" />
        <ReduceAffliction identifier="psychosis" amount="6" />
        <ReduceAffliction identifier="hallucinating" amount="10" />
        <!-- LEGACY: Reaper's tax is here (for now) only in order to not break existing saves -->
        <ReduceAffliction identifier="reaperstax" amount="1" />
        <ReduceAffliction identifier="watchersgaze" amount="5" />
      </StatusEffect>
      <StatusEffect type="OnBroken" target="This">
        <Remove />
      </StatusEffect>
    </Holdable>
  </Item>

  <Rum name="" identifier="rum" category="Medical,Misc" maxstacksize="8" cargocontaineridentifier="mediccrate" description="" Tags="smallitem" useinhealthinterface="true" scale="0.5" impactsoundtag="impact_metal_light">
    <PreferredContainer secondary="wreckmedcab,abandonedmedcab,piratemedcab" amount="1" spawnprobability="0.01" />
    <PreferredContainer secondary="abandonedcrewcab,piratecrewcab" minamount="1" maxamount="1" spawnprobability="0.01" />
    <PreferredContainer secondary="crewcab" amount="1" spawnprobability="0.02" notcampaign="true"/>
    <PreferredContainer primary="medfabcab" secondary="medcab"/>
    <Price baseprice="130" sold="false">
      <Price storeidentifier="merchantclown" minavailable="0" maxavailable="3" sold="true">
        <Reputation faction="clowns" min="30"/>
      </Price>
      <Price storeidentifier="merchantnightclub" minavailable="0" maxavailable="3" sold="true"/>
    </Price>
    <Fabricate suitablefabricators="fabricator" requiredtime="25" requiresrecipe="true">
      <RequiredItem identifier="ethanol" />
      <RequiredItem tag="distillable" />
    </Fabricate>
    <Sprite texture="Content/Items/Jobgear/TalentGear.png" sourcerect="486,212,27,66" depth="0.6" origin="0.5,0.5" />
    <SuitableTreatment type="infection" suitability="30" />
    <SuitableTreatment type="burn" suitability="-3" />
    <Body width="27" height="66" density="20" />
    <Holdable canBeCombined="true" removeOnCombined="true" slots="Any,RightHand,LeftHand" aimpos="32,28" holdangle="30" aimangle="120" aimable="false" msg="ItemMsgPickUpSelect">
      <StatusEffect type="OnSecondaryUse" target="This" Condition="-30.0"/>
      <StatusEffect type="OnUse" target="This" Condition="-100.0" disabledeltatime="true" />
      <!-- When Rum is drunk -->
      <StatusEffect type="OnSecondaryUse" target="This,UseTarget" disabledeltatime="true" stackable="false">
        <Conditional Condition="lte 1" />
        <Affliction identifier="psychosisresistance" amount="600" />
      </StatusEffect>
      <StatusEffect type="OnSecondaryUse" target="This,UseTarget" duration="30" stackable="false" ConditionalComparison="And">
        <Conditional Condition="lte 1" />
        <Conditional huskinfection="lt 50.0" />
        <ReduceAffliction identifier="huskinfection" amount="1" />
      </StatusEffect>
      <StatusEffect type="OnSecondaryUse" target="This,UseTarget" duration="30" stackable="false">
        <Conditional Condition="lte 1" />
        <ReduceAffliction identifier="psychosis" amount="3" />
        <ReduceAffliction identifier="hallucinating" amount="3" />
        <Affliction identifier="drunk" amount="3" />
        <Remove />
      </StatusEffect>
      <!-- When Rum is used in Health GUI -->
      <StatusEffect type="OnUse" target="This, Limb" duration="10">
        <ReduceAffliction identifier="infection" amount="1.5" />
        <Affliction identifier="burn" amount="0.15" /> 
      </StatusEffect>
      <StatusEffect type="OnBroken" target="This">
        <Remove />
      </StatusEffect>
    </Holdable>
  </Rum>
</Items>