<?xml version="1.0" encoding="utf-8"?>
<Items>
  <!-- ********************************************************************************************* -->
  <!-- ****************************************Meds************************************************* -->
  <!-- ********************************************************************************************* -->
  <!-- Name: Potassium Iodide Tablets -->
  <!-- Description: Light protection from radiation, useful as a precaution of an imminent low radiation hazard. -->
  <!-- *************************************************************************************************************************************************************************** -->
  <Override>
    <Item name="Potassium Iodide Tablets" identifier="potassiumiodidetablets" category="Medical" Tags="smallitem,medical" maxstacksize="32" maxstacksizecharacterinventory="8" useinhealthinterface="true" cargocontaineridentifier="mediccrate" description="Light protection from radiation, useful as a precaution of an imminent low radiation hazard. Reduces low amounts of contamination." scale="0.3" impactsoundtag="impact_metal_light" RequireAimToUse="True">
      <PreferredContainer secondary="supplycab" minamount="1" maxamount="2" spawnprobability="0.1" notcampaign="true" />
      <PreferredContainer secondary="reactorcab" amount="1" spawnprobability="1" />
      <PreferredContainer secondary="abandonedengcab,wreckengcab,outpostengcab" minamount="1" maxamount="2" spawnprobability="0.1" />
      <PreferredContainer secondary="wrecksupplycab,beaconsupplycab" amount="1" spawnprobability="0.05" />
      <PreferredContainer secondary="wreckmedcab,abandonedmedcab" minamount="1" maxamount="2" spawnprobability="0.1" />
      <PreferredContainer secondary="outpostmedcab" minamount="1" maxamount="3" spawnprobability="0.1" />
      <PreferredContainer secondary="outpostmedcompartment" amount="1" spawnprobability="0.05" />
      <PreferredContainer secondary="researchcontainer" spawnprobability="0.02" />
      <PreferredContainer primary="medcab" secondary="medcontainer" />
      <Price baseprice="160" minavailable="0" maxavailable="10">
        <Price storeidentifier="merchantoutpost" />
        <Price storeidentifier="merchantcity" minavailable="2" />
        <Price storeidentifier="merchantresearch" minavailable="2" />
        <Price storeidentifier="merchantmilitary" minavailable="1" />
        <Price storeidentifier="merchantmine" />
        <Price storeidentifier="merchantmedical" multiplier="0.9" minavailable="3" />
      </Price>
      <Fabricate suitablefabricators="medicalfabricator" requiredtime="15" amount="1">
        <RequiredSkill identifier="medical" level="35" />
        <RequiredItem identifier="plastic" />
        <RequiredItem identifier="potassium" amount="2" />
        <RequiredItem identifier="copper" amount="1" />
        <RequiredItem identifier="saltbulb" amount="1" />
      </Fabricate>
      <Deconstruct time="2" />
      <SuitableTreatment type="contaminated" suitability="10" />
      <InventoryIcon texture="%ModDir:3045796581%/Content/Items/ER-ItemsAtlas.png" sourcerect="1,1,94,94" origin="0.5,0.5" />
      <Sprite texture="%ModDir:3045796581%/Content/Items/ER-ItemsAtlas.png" sourcerect="96,47,25,49" depth="0.6" origin="0.5,0.5" />
      <Body width="24" height="48" density="10.05" />
      <Holdable canBeCombined="true" removeOnCombined="true" slots="Any,RightHand,LeftHand" aimpos="26,22" holdpos="30,-15" holdangle="0" handle1="0,-5" aimangle="105" aimable="false" swingwhenusing="true" swingamount="3,9" swingspeed="1.0" msg="ItemMsgPickUpSelect" />
      <RangedWeapon reload="2.0" HitOnlyCharacters="true">
        <StatusEffect type="OnSecondaryUse" target="This" interval="0.1">
          <Conditional HasStatusTag="neq opened" />
          <Sound file="%ModDir:3045796581%/Content/Items/Medical/OpenPillBottle1.ogg" range="500" selectionmode="Random" />
          <Sound file="%ModDir:3045796581%/Content/Items/Medical/OpenPillBottle2.ogg" range="500" volume="0.9" selectionmode="Random" />
        </StatusEffect>
        <StatusEffect type="OnSecondaryUse" target="This" tags="opened" setvalue="true" duration="0.1" />
        <StatusEffect type="OnUse" target="This" Condition="-5.0" disabledeltatime="true">
          <Sound file="%ModDir:3045796581%/Content/Items/Medical/Swallow1.ogg" range="500" volume="4" />
        </StatusEffect>
        <!-- Values of this StatusEffect are doubled when applied to a character since it uses and requires both character and usetarget as it would otherwise not be applicable to other characters in the health menu -->
        <StatusEffect type="OnUse" target="Character,UseTarget" duration="10.0">
          <ReduceAffliction identifier="contaminated" amount="0.5" />
          <Affliction identifier="radiationresistance" amount="15" />
        </StatusEffect>
        <!-- Remove the item when fully used -->
        <StatusEffect type="OnBroken" target="This">
          <Remove />
        </StatusEffect>
      </RangedWeapon>
      <SkillRequirementHint identifier="medical" level="20" />
    </Item>
  </Override>
  <!-- Name: Activated Carbon Tablets -->
  <!-- Description: Used to cure low amounts of poisoning and radiation. Excessive use can be harmful. -->
  <!-- *************************************************************************************************************************************************************************** -->
  <Override>
    <Item name="Activated Carbon Tablets" identifier="activatedcarbontablets" category="Medical" Tags="smallitem,medical" maxstacksize="32" maxstacksizecharacterinventory="8" useinhealthinterface="true" cargocontaineridentifier="mediccrate" description="Used to cure low amounts of poisoning and radiation. Useless against contamination. Excessive use can be harmful." scale="0.3" impactsoundtag="impact_metal_light" RequireAimToUse="True">
      <PreferredContainer secondary="supplycab" minamount="1" maxamount="2" spawnprobability="0.1" notcampaign="true" />
      <PreferredContainer secondary="abandonedengcab,wreckengcab,outpostengcab" minamount="1" maxamount="2" spawnprobability="0.1" />
      <PreferredContainer secondary="wrecksupplycab,beaconsupplycab" amount="1" spawnprobability="0.05" />
      <PreferredContainer secondary="wreckmedcab,abandonedmedcab" minamount="1" maxamount="2" spawnprobability="0.1" />
      <PreferredContainer secondary="outpostmedcab" minamount="1" maxamount="3" spawnprobability="0.1" />
      <PreferredContainer secondary="outpostmedcompartment" amount="1" spawnprobability="0.05" />
      <PreferredContainer secondary="researchcontainer" spawnprobability="0.02" />
      <PreferredContainer primary="medcab" secondary="medcontainer" spawnprobability="0.3" />
      <Price baseprice="50" minavailable="0" maxavailable="10">
        <Price storeidentifier="merchantoutpost" />
        <Price storeidentifier="merchantcity" minavailable="2" />
        <Price storeidentifier="merchantresearch" minavailable="2" />
        <Price storeidentifier="merchantmilitary" minavailable="1" />
        <Price storeidentifier="merchantmine" />
        <Price storeidentifier="merchantmedical" multiplier="0.9" minavailable="3" />
      </Price>
      <Fabricate suitablefabricators="medicalfabricator" requiredtime="15" amount="1">
        <RequiredSkill identifier="medical" level="35" />
        <RequiredItem identifier="plastic" />
        <RequiredItem identifier="carbon" amount="3" />
      </Fabricate>
      <Deconstruct time="2" />
      <SuitableTreatment type="poison" suitability="15" />
      <SuitableTreatment identifier="radiationsickness" suitability="15" />
      <SuitableTreatment identifier="trackcarbonintake" suitability="-50.5" />
      <InventoryIcon texture="%ModDir:3045796581%/Content/Items/ER-ItemsAtlas.png" sourcerect="122,1,94,94" origin="0.5,0.5" />
      <Sprite texture="%ModDir:3045796581%/Content/Items/ER-ItemsAtlas.png" sourcerect="217,47,25,49" depth="0.6" origin="0.5,0.5" />
      <Body width="24" height="48" density="10.05" />
      <Holdable canBeCombined="true" removeOnCombined="true" slots="Any,RightHand,LeftHand" aimpos="26,22" holdpos="30,-15" holdangle="0" handle1="0,-5" aimangle="105" aimable="false" swingwhenusing="true" swingamount="3,9" swingspeed="1.0" msg="ItemMsgPickUpSelect" />
      <RangedWeapon reload="2.0" HitOnlyCharacters="true">
        <StatusEffect type="OnSecondaryUse" target="This" interval="0.1">
          <Conditional HasStatusTag="neq opened" />
          <Sound file="%ModDir:3045796581%/Content/Items/Medical/OpenPillBottle1.ogg" range="500" selectionmode="Random" />
          <Sound file="%ModDir:3045796581%/Content/Items/Medical/OpenPillBottle2.ogg" range="500" volume="0.9" selectionmode="Random" />
        </StatusEffect>
        <StatusEffect type="OnSecondaryUse" target="This" tags="opened" setvalue="true" duration="0.1" />
        <StatusEffect type="OnUse" target="This" Condition="-5.0" disabledeltatime="true">
          <Sound file="%ModDir:3045796581%/Content/Items/Medical/Swallow1.ogg" range="500" volume="4" />
        </StatusEffect>
        <!-- Values of this StatusEffect are doubled when applied to a character since it uses and requires both character and usetarget as it would otherwise not be applicable to other characters in the health menu -->
        <StatusEffect type="OnUse" target="Character,UseTarget" duration="10.0">
          <Affliction identifier="trackcarbonintake" amount="5.05" />
          <ReduceAffliction identifier="radiationsickness" amount="0.75" />
          <ReduceAffliction identifier="morbusinepoisoning" amount="0.75" />
          <ReduceAffliction identifier="sufforinpoisoning" amount="0.75" />
          <ReduceAffliction identifier="deliriuminepoisoning" amount="0.75" />
          <ReduceAffliction identifier="cyanidepoisoning" amount="0.75" />
        </StatusEffect>
        <!-- Remove the item when fully used -->
        <StatusEffect type="OnBroken" target="This">
          <Remove />
        </StatusEffect>
      </RangedWeapon>
      <SkillRequirementHint identifier="medical" level="20" />
    </Item>
  </Override>
  <!-- Name: AntiRad -->
  <!-- Slows down cellular degradation caused by radiation. -->
  <!-- *************************************************************************************************************************************************************************** -->
  <Override>
    <AntiRad name="" identifier="antirad" category="Medical" maxstacksize="32" maxstacksizecharacterinventory="8" cargocontaineridentifier="mediccrate" Tags="smallitem,chem,medical,syringe" description="" useinhealthinterface="true" scale="0.5" impactsoundtag="impact_metal_light" RequireAimToUse="True">
      <Upgrade gameversion="0.10.0.0" scale="0.5" />
      <PreferredContainer secondary="wreckmedcab,abandonedmedcab" amount="1" spawnprobability="0.1" />
      <PreferredContainer secondary="outpostmedcab" amount="1" spawnprobability="0.2" />
      <PreferredContainer secondary="outpostmedcompartment" amount="1" spawnprobability="0.06" />
      <PreferredContainer primary="medcab" secondary="medcontainer" />
      <Price baseprice="125" minleveldifficulty="11">
        <Price storeidentifier="merchantoutpost" />
        <Price storeidentifier="merchantcity" />
        <Price storeidentifier="merchantresearch" />
        <Price storeidentifier="merchantmilitary" />
        <Price storeidentifier="merchantmine" />
        <Price storeidentifier="merchantmedical" minavailable="2" multiplier="0.9" />
      </Price>
      <Fabricate suitablefabricators="medicalfabricator" requiredtime="30">
        <RequiredSkill identifier="medical" level="35" />
        <RequiredItem identifier="radiotoxin" />
        <RequiredItem identifier="stabilozine" />
      </Fabricate>
      <Deconstruct time="20">
        <Item identifier="stabilozine" />
      </Deconstruct>
      <SuitableTreatment identifier="radiationsickness" suitability="100" />
      <!--<SuitableTreatment identifier="contaminated" suitability="100" />-->
      <InventoryIcon texture="Content/Items/InventoryIconAtlas.png" sourcerect="128,704,64,64" origin="0.5,0.5" />
      <Sprite texture="Content/Items/Medical/Medicines.png" sourcerect="149,142,37,67" depth="0.6" origin="0.5,0.5" />
      <Body width="35" height="65" density="10.2" waterdragcoefficient="1" />
      <MeleeWeapon canBeCombined="true" removeOnCombined="true" slots="Any,RightHand,LeftHand" aimpos="40,5" handle1="0,0" holdangle="220" reload="1.0" msg="ItemMsgPickUpSelect" HitOnlyCharacters="true">
        <RequiredSkill identifier="medical" level="25" />
        <StatusEffect type="OnSuccess" target="This" Condition="-100.0" setvalue="true" />
        <StatusEffect type="OnFailure" target="This" Condition="-100.0" setvalue="true" />
        <StatusEffect tags="medical" type="OnSuccess" target="UseTarget" duration="1.0">
          <ReduceAffliction identifier="radiationsickness" amount="100.0" />
          <!--<ReduceAffliction identifier="contaminated" amount="100.0" />-->
        </StatusEffect>
        <StatusEffect tags="medical" type="OnFailure" target="UseTarget" duration="1.0">
          <ReduceAffliction identifier="radiationsickness" amount="25.0" />
          <!--<ReduceAffliction identifier="contaminated" amount="25.0" />-->
        </StatusEffect>
        <StatusEffect type="OnSuccess" target="UseTarget">
          <Conditional entitytype="eq Character" />
          <Sound file="Content/Items/Medical/Syringe.ogg" range="500" />
        </StatusEffect>
        <StatusEffect type="OnFailure" target="UseTarget">
          <Conditional entitytype="eq Character" />
          <Sound file="Content/Items/Medical/Syringe.ogg" range="500" />
        </StatusEffect>
        <StatusEffect type="OnImpact" target="UseTarget" multiplyafflictionsbymaxvitality="true" AllowWhenBroken="true">
          <Affliction identifier="stun" amount="0.1" />
        </StatusEffect>
        <!-- Remove the item when fully used -->
        <StatusEffect type="OnBroken" target="This">
          <Remove />
        </StatusEffect>
      </MeleeWeapon>
      <Projectile characterusable="false" launchimpulse="18.0" sticktocharacters="true" launchrotation="-90" inheritstatuseffectsfrom="MeleeWeapon" inheritrequiredskillsfrom="MeleeWeapon" />
      <SkillRequirementHint identifier="medical" level="25" />
    </AntiRad>
  </Override>
  <!-- Name: Deconsol -->
  <!-- Decontamination Solution. Reduces contamination when sprayed at the character with a sprayer. -->
  <!-- *************************************************************************************************************************************************************************** -->
  <Override>
    <Item name="Deconsol" identifier="deconsoltank" category="Equipment,Fuel" health="100" maxstacksize="8" maxstacksizecharacterinventory="1" MaxStackSizeHoldableOrWearableInventory="1" Tags="smallitem,medical,deconsol" description="A decontamination solution. Needs to be sprayed onto a contaminated person by using a sprayer." cargocontaineridentifier="mediccrate" scale="0.5" impactsoundtag="impact_metal_light">
      <PreferredContainer primary="medcab" secondary="medcontainer" />
      <PreferredContainer primary="reactorcab" amount="1" spawnprobability="1" />
      <PreferredContainer primary="sprayer" amount="1" spawnprobability="0.25" />
      <PreferredContainer secondary="wreckmedcab,abandonedmedcab" amount="1" spawnprobability="0.1" />
      <PreferredContainer secondary="outpostmedcab" amount="1" spawnprobability="0.2" />
      <PreferredContainer secondary="outpostmedcompartment" amount="1" spawnprobability="0.06" />
      <Price baseprice="250" displaynonempty="true">
        <Price storeidentifier="merchantoutpost" minavailable="0" />
        <Price storeidentifier="merchantcity" minavailable="5" />
        <Price storeidentifier="merchantresearch" multiplier="1.25" minavailable="3" />
        <Price storeidentifier="merchantmedical" multiplier="0.8" minavailable="10" />
        <Price storeidentifier="merchantmilitary" multiplier="1.25" minavailable="0" />
        <Price storeidentifier="merchantmine" sold="false" multiplier="1.5" minavailable="15" />
      </Price>
      <Deconstruct time="10">
        <Item identifier="aluminium" />
      </Deconstruct>
      <Fabricate suitablefabricators="medicalfabricator" requiredtime="15">
        <RequiredSkill identifier="medical" level="45" />
        <RequiredItem identifier="aluminium" amount="2" />
        <RequiredItem identifier="ethanol" amount="1" />
        <RequiredItem identifier="stabilozine" amount="1" />
        <RequiredItem identifier="potassium" amount="1" />
        <RequiredItem identifier="sodium" amount="1" />
      </Fabricate>
      <Fabricate suitablefabricators="medicalfabricator" displayname="recycleitem" requiredtime="8">
        <RequiredSkill identifier="medical" level="45" />
        <RequiredItem identifier="deconsoltank" mincondition="0.0" maxcondition="0.1" usecondition="false" />
        <RequiredItem identifier="ethanol" amount="1" />
        <RequiredItem identifier="stabilozine" amount="1" />
        <RequiredItem identifier="potassium" amount="1" />
        <RequiredItem identifier="sodium" amount="1" />
      </Fabricate>
      <InventoryIcon texture="%ModDir:3045796581%/Content/Items/ER-ItemsAtlas.png" sourcerect="243,1,64,64" origin="0.5,0.5" />
      <Sprite texture="%ModDir:3045796581%/Content/Items/ER-ItemsAtlas.png" sourcerect="308,1,24,63" depth="0.6" origin="0.5,0.5" />
      <Body width="20" height="62" density="9.7" />
      <Holdable canbecombined="true" slots="Any,RightHand,LeftHand" holdpos="30,-15" handle1="0,5" handle2="0,-5" msg="ItemMsgPickUpSelect">
        <StatusEffect type="OnFire" target="This" Condition="-10.0" tags="onfire" duration="1" stackable="false" />
        <StatusEffect type="OnBroken" target="This" delay="1" stackable="false">
          <Conditional HasStatusTag="onfire" />
          <sound file="Content/Items/Weapons/ExplosionSmall1.ogg" range="2000" />
          <sound file="Content/Items/Weapons/ExplosionSmall2.ogg" range="2000" />
          <sound file="Content/Items/Weapons/ExplosionSmall3.ogg" range="2000" />
          <Explosion range="150.0" force="3">
            <Affliction identifier="burn" strength="25" />
            <Affliction identifier="stun" strength="5" />
          </Explosion>
        </StatusEffect>
      </Holdable>
      <Quality>
        <QualityStat stattype="Condition" value="0.1" />
      </Quality>
    </Item>
  </Override>
</Items>