<?xml version="1.0" encoding="utf-8" ?>
<Items>
  <Item
		name=""
    identifier="fabricator"
    tags="fabricator,donttakeitems,dontsellitems"
    category="Machine"
		linkable="true"
    allowedlinks="deconstructor,locker"
    description=""
    scale="0.5" 
    damagedbyexplosions="true" 
    explosiondamagemultiplier="0.2">

    <Upgrade gameversion="0.10.4.0">
      <Repairable Msg="ItemMsgRepairWrench"/>
    </Upgrade>

    <UpgradePreviewSprite scale="2.5" texture="Content/UI/WeaponUI.png" sourcerect="256,960,64,64" origin="0.5,0.45" />
    <Sprite texture="Content/Items/Fabricators/FabricatorsAndDeconstructors.png" sourcerect="0,624,336,400" depth="0.8"/>
    <BrokenSprite texture="Content/Items/Fabricators/FabricatorsAndDeconstructors.png" sourcerect="336,624,336,400" depth="0.8" maxcondition="80" fadein="true" />
    <BrokenSprite texture="Content/Items/Fabricators/FabricatorsAndDeconstructors.png" sourcerect="672,624,336,400" depth="0.8" maxcondition="0" />
    <DecorativeSprite texture="Content/Items/Fabricators/FabricatorsAndDeconstructors.png" depth="0.84" offset="-103,99" sourcerect="908,301,116,87"/>
    <DecorativeSprite texture="Content/Items/Fabricators/FabricatorsAndDeconstructors.png" depth="0.81" offset="-103,99" sourcerect="825,395,114,83"/>
    <DecorativeSprite texture="Content/Items/Fabricators/FabricatorsAndDeconstructors.png" depth="0.83" offset="-72,129" sourcerect="944,395,74,74" origin="0.5,0.5" rotationspeed="-715">
      <AnimationConditional Voltage="gt 0.5" targetitemcomponent="Fabricator" />
      <AnimationConditional IsActive="True" targetitemcomponent="Fabricator" />
      <IsActiveConditional Condition="gt 0.0" />
    </DecorativeSprite>
    <DecorativeSprite texture="Content/Items/Fabricators/FabricatorsAndDeconstructors.png" depth="0.83" offset="-117,71" sourcerect="805,537,54,54" origin="0.5,0.5" rotationspeed="400">
      <AnimationConditional Voltage="gt 0.5" targetitemcomponent="Fabricator" />
      <AnimationConditional IsActive="True" targetitemcomponent="Fabricator" />
      <IsActiveConditional Condition="gt 0.0" />
    </DecorativeSprite>

    <LightComponent range="10.0" lightcolor="255,255,255,0" powerconsumption="5" IsOn="true" castshadows="false" alphablend="false" allowingameediting="false">
      <sprite texture="Content/Items/Command/navigatorLights.png" depth="0.025" sourcerect="351,624,336,400" alpha="1.0" />
    </LightComponent>

    <LightComponent range="10.0" lightcolor="255,255,255,0" powerconsumption="5" IsOn="true" castshadows="false" alphablend="false" blinkfrequency="1" allowingameediting="false">
      <sprite texture="Content/Items/Command/navigatorLights.png" depth="0.025" sourcerect="688,624,336,400" alpha="1.0" />
    </LightComponent>
    
    <Fabricator canbeselected="true" powerconsumption="500.0" msg="ItemMsgInteractSelect">
      <GuiFrame relativesize="0.4,0.45" style="ItemUI" anchor="Center" />
      <sound file="Content/Items/Fabricators/Fabricator.ogg" type="OnActive" range="1000.0" volumeproperty="RelativeVoltage" loop="true"/>
      <poweronsound file="Content/Items/PowerOnLight1.ogg" range="600" loop="false" />
      <StatusEffect type="InWater" target="This" condition="-0.5" />
    </Fabricator>

    <ConnectionPanel selectkey="Action" canbeselected="true" hudpriority="10" msg="ItemMsgRewireScrewdriver">
      <GuiFrame relativesize="0.2,0.32" minsize="400,350" maxsize="480,420" anchor="Center" style="ConnectionPanel"/>
      <RequiredSkill identifier="electrical" level="55" />
      <StatusEffect type="OnFailure" target="Character" targetlimbs="LeftHand,RightHand" AllowWhenBroken="true">
        <Sound file="Content/Sounds/Damage/Electrocution1.ogg" range="1000" />
        <Explosion range="100.0" force="1.0" flames="false" shockwave="false" sparks="true" underwaterbubble="false" />
        <Affliction identifier="stun" strength="4" probability="0.5" />
        <Affliction identifier="electricshock" strength="60"/>
        <Affliction identifier="burn" strength="5" />
        <ParticleEmitter particle="ElectricShock" DistanceMin="10" DistanceMax="25" ParticleAmount="5" ScaleMin="0.1" ScaleMax="0.12" />
      </StatusEffect>
      <RequiredItem items="screwdriver" type="Equipped"/>
      <input name="power_in" displayname="connection.powerin"/>
      <output name="condition_out" displayname="connection.conditionout" />
    </ConnectionPanel>

    <Repairable selectkey="Action" header="mechanicalrepairsheader" deteriorationspeed="0.50" mindeteriorationdelay="60" maxdeteriorationdelay="120" RepairThreshold="80" fixDurationHighSkill="5" fixDurationLowSkill="25" msg="ItemMsgRepairWrench" hudpriority="10">
      <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 capacity="5" canbeselected="true" hideitems="true" slotsperrow="5" uilabel="" allowuioverlap="true"/>
    <ItemContainer capacity="1" canbeselected="true" hideitems="true" slotsperrow="1" uilabel="" allowuioverlap="true"/>
  </Item>

  <Item
    name=""
    identifier="medicalfabricator" 
    tags="medicalfabricator,donttakeitems,dontsellitems"
    category="Machine"
		linkable="true"
    allowedlinks="deconstructor,medcabinet,locker,toxcontainer"
    scale="0.5"
    description=""
    damagedbyexplosions="true"
    explosiondamagemultiplier="0.2">
    
    <Upgrade gameversion="0.10.0.0" scale="*0.5" />
    <Upgrade gameversion="0.10.4.0">
      <Repairable Msg="ItemMsgRepairWrench"/>
    </Upgrade>

    <UpgradePreviewSprite scale="2.5" texture="Content/UI/WeaponUI.png" sourcerect="256,960,64,64" origin="0.5,0.45" />
    <Sprite texture="Content/Items/Fabricators/FabricatorsAndDeconstructors.png" depth="0.8" sourcerect="0,0,336,288" origin="0.5,0.5"/>
    <BrokenSprite texture="Content/Items/Fabricators/FabricatorsAndDeconstructors.png" sourcerect="336,0,336,288" origin="0.5,0.5" depth="0.8" maxcondition="80" fadein="true" />
    <BrokenSprite texture="Content/Items/Fabricators/FabricatorsAndDeconstructors.png" sourcerect="672,0,336,288" origin="0.5,0.5" depth="0.8" maxcondition="0" />

    <LightComponent range="10.0" lightcolor="255,255,255,0" powerconsumption="5" IsOn="true" castshadows="false" alphablend="false" allowingameediting="false">
      <sprite texture="Content/Items/Command/navigatorLights.png" depth="0.025" sourcerect="688,339,336,288" alpha="1.0" />
    </LightComponent>

    <Fabricator canbeselected = "true" powerconsumption="500.0" msg="ItemMsgInteractSelect">
      <GuiFrame relativesize="0.4,0.45" style="ItemUI" anchor="Center" />
      <sound file="Content/Items/Fabricators/Fabricator.ogg" type="OnActive" range="1000.0" volumeproperty="RelativeVoltage" loop="true"/>
      <poweronsound file="Content/Items/PowerOnLight2.ogg" range="600" loop="false" />
      <StatusEffect type="InWater" target="This" condition="-0.5" />
    </Fabricator>

    <ConnectionPanel selectkey="Action" canbeselected="true" hudpriority="10" msg="ItemMsgRewireScrewdriver">
      <GuiFrame relativesize="0.2,0.32" minsize="400,350" maxsize="480,420" anchor="Center" style="ConnectionPanel"/>
      <RequiredSkill identifier="electrical" level="55" />
      <StatusEffect type="OnFailure" target="Character" targetlimbs="LeftHand,RightHand" AllowWhenBroken="true">
        <Sound file="Content/Sounds/Damage/Electrocution1.ogg" range="1000" />
        <Explosion range="100.0" force="1.0" flames="false" shockwave="false" sparks="true" underwaterbubble="false" />
        <Affliction identifier="stun" strength="4" probability="0.5" />
        <Affliction identifier="electricshock" strength="60"/>
        <Affliction identifier="burn" strength="5" />
        <ParticleEmitter particle="ElectricShock" DistanceMin="10" DistanceMax="25" ParticleAmount="5" ScaleMin="0.1" ScaleMax="0.12" />
      </StatusEffect>
      <RequiredItem items="screwdriver" type="Equipped"/>
      <input name="power_in" displayname="connection.powerin"/>
      <output name="condition_out" displayname="connection.conditionout" />
    </ConnectionPanel>

    <Repairable selectkey="Action" header="mechanicalrepairsheader" deteriorationspeed="0.50" mindeteriorationdelay="60" maxdeteriorationdelay="120" RepairThreshold="80" fixDurationHighSkill="5" fixDurationLowSkill="25" msg="ItemMsgRepairWrench" hudpriority="10">
      <GuiFrame relativesize="0.2,0.16" minsize="400,180" maxsize="480,280" anchor="Center" relativeoffset="0.0,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 capacity="5" canbeselected="true" hideitems="true" slotsperrow="5" uilabel="" allowuioverlap="true"/>
    <ItemContainer capacity="1" canbeselected="true" hideitems="true" slotsperrow="1" uilabel="" allowuioverlap="true"/>
  </Item>

  <Item
    name=""
    identifier="deconstructor"
    tags="deconstructor,donttakeitems,dontsellitems"
    category="Machine"
		linkable="true"
    allowedlinks="fabricator,medicalfabricator,locker"
    description=""
    scale="0.5"     
    damagedbyexplosions="true" 
    explosiondamagemultiplier="0.2">

    <Upgrade gameversion="0.10.4.0">
      <Repairable Msg="ItemMsgRepairWrench"/>
    </Upgrade>

    <UpgradePreviewSprite scale="2.5" texture="Content/UI/WeaponUI.png" sourcerect="320,960,64,64" origin="0.5,0.45" />
    <Sprite texture="Content/Items/Fabricators/FabricatorsAndDeconstructors.png" depth="0.8" sourcerect="0,304,256,320"/>
    <BrokenSprite texture="Content/Items/Fabricators/FabricatorsAndDeconstructors.png" sourcerect="272,304,256,320" depth="0.8" maxcondition="80" fadein="true" />
    <BrokenSprite texture="Content/Items/Fabricators/FabricatorsAndDeconstructors.png" sourcerect="544,304,256,320" depth="0.8" maxcondition="0" />
    <LightComponent range="10.0" lightcolor="255,255,255,0" powerconsumption="5" IsOn="true" castshadows="false" alphablend="false" allowingameediting="false">
      <sprite texture="Content/Items/Command/navigatorLights.png" depth="0.025" sourcerect="0,665,256,320" origin="0.5,0.5" alpha="1.0" />
    </LightComponent>
    <DecorativeSprite texture="Content/Items/Fabricators/FabricatorsAndDeconstructors.png" depth="0.84" sourcerect="866,484,156,105"/>
    <DecorativeSprite texture="Content/Items/Fabricators/FabricatorsAndDeconstructors.png" depth="0.83" offset="-27,-20" sourcerect="944,395,74,74" origin="0.5,0.5" rotationspeed="-715">
      <AnimationConditional Voltage="gt 0.5" targetitemcomponent="Deconstructor" />
      <AnimationConditional IsActive="True" targetitemcomponent="Deconstructor" />
      <IsActiveConditional Condition="gt 0.0" />
    </DecorativeSprite>
    <DecorativeSprite texture="Content/Items/Fabricators/FabricatorsAndDeconstructors.png" depth="0.82" offset="-29,-30" sourcerect="944,395,74,74" origin="0.5,0.5" rotationspeed="-718">
      <AnimationConditional Voltage="gt 0.5" targetitemcomponent="Deconstructor" />
      <AnimationConditional IsActive="True" targetitemcomponent="Deconstructor" />
      <IsActiveConditional Condition="gt 0.0" />
    </DecorativeSprite>
    <DecorativeSprite texture="Content/Items/Fabricators/FabricatorsAndDeconstructors.png" depth="0.81" offset="-30,-40" sourcerect="944,395,74,74" origin="0.5,0.5" rotationspeed="-720">
      <AnimationConditional Voltage="gt 0.5" targetitemcomponent="Deconstructor" />
      <AnimationConditional IsActive="True" targetitemcomponent="Deconstructor" />
      <IsActiveConditional Condition="gt 0.0" />
    </DecorativeSprite>
    <DecorativeSprite texture="Content/Items/Fabricators/FabricatorsAndDeconstructors.png" depth="0.83" offset="38,-20" sourcerect="944,395,74,74" origin="0.5,0.5" rotationspeed="715">
      <AnimationConditional Voltage="gt 0.5" targetitemcomponent="Deconstructor" />
      <AnimationConditional IsActive="True" targetitemcomponent="Deconstructor" />
      <IsActiveConditional Condition="gt 0.0" />
    </DecorativeSprite>'
    <DecorativeSprite texture="Content/Items/Fabricators/FabricatorsAndDeconstructors.png" depth="0.82" offset="40,-30" sourcerect="944,395,74,74" origin="0.5,0.5" rotationspeed="718">
      <AnimationConditional Voltage="gt 0.5" targetitemcomponent="Deconstructor" />
      <AnimationConditional IsActive="True" targetitemcomponent="Deconstructor" />
      <IsActiveConditional Condition="gt 0.0" />
    </DecorativeSprite>
    <DecorativeSprite texture="Content/Items/Fabricators/FabricatorsAndDeconstructors.png" depth="0.81" offset="41,-40" sourcerect="944,395,74,74" origin="0.5,0.5" rotationspeed=" 720">
      <AnimationConditional Voltage="gt 0.5" targetitemcomponent="Deconstructor" />
      <AnimationConditional IsActive="True" targetitemcomponent="Deconstructor" />
      <IsActiveConditional Condition="gt 0.0" />
    </DecorativeSprite>

    <Deconstructor canbeselected = "true" powerconsumption="500.0" msg="ItemMsgInteractSelect">
      <GuiFrame relativesize="0.25,0.37" minsize="320,266" style="ItemUI" anchor="Center"/>
      <sound file="Content/Items/Fabricators/Deconstructor.ogg" type="OnActive" range="1000.0" volumeproperty="RelativeVoltage" loop="true"/>
      <poweronsound file="Content/Items/PowerOnLight3.ogg" range="600" loop="false" />
      <StatusEffect type="InWater" target="This" condition="-0.5" />
    </Deconstructor>

    <ConnectionPanel selectkey="Action" canbeselected="true" hudpriority="10" msg="ItemMsgRewireScrewdriver">
      <GuiFrame relativesize="0.2,0.32" minsize="400,350" maxsize="480,420" anchor="Center" style="ConnectionPanel"/>
      <RequiredSkill identifier="electrical" level="55" />
      <StatusEffect type="OnFailure" target="Character" targetlimbs="LeftHand,RightHand" AllowWhenBroken="true">
        <Sound file="Content/Sounds/Damage/Electrocution1.ogg" range="1000" />
        <Explosion range="100.0" force="1.0" flames="false" shockwave="false" sparks="true" underwaterbubble="false" />
        <Affliction identifier="stun" strength="4" probability="0.5" />
        <Affliction identifier="electricshock" strength="60"/>
        <Affliction identifier="burn" strength="5" />
        <ParticleEmitter particle="ElectricShock" DistanceMin="10" DistanceMax="25" ParticleAmount="5" ScaleMin="0.1" ScaleMax="0.12" />
      </StatusEffect>
      <RequiredItem items="screwdriver" type="Equipped"/>
      <input name="power_in" displayname="connection.powerin"/>
      <output name="condition_out" displayname="connection.conditionout" />
    </ConnectionPanel>

    <Repairable selectkey="Action" header="mechanicalrepairsheader" deteriorationspeed="0.50" mindeteriorationdelay="60" maxdeteriorationdelay="120" RepairThreshold="80" fixDurationHighSkill="5" fixDurationLowSkill="25" msg="ItemMsgRepairWrench" hudpriority="10">
      <GuiFrame relativesize="0.2,0.16" minsize="400,180" maxsize="480,280" anchor="Center" relativeoffset="0.0,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 capacity="3" canbeselected="true" hideitems="true" hudpos="0.5, 0.4" slotsperrow="3" uilabel="" allowuioverlap="true"/>
    <ItemContainer capacity="5" canbeselected="true" hideitems="true" hudpos="0.5, 0.8" slotsperrow="5" uilabel="" allowuioverlap="true"/>
  </Item>
</Items>