<?xml version="1.0" encoding="utf-8"?>
<Items>
  <Item name="" identifier="pump" tags="pump" linkable="true" category="Machine" scale="0.5" damagedbyexplosions="true" explosiondamagemultiplier="0.2" allowrotatingineditor="true" GrabWhenSelected="true">
    <UpgradePreviewSprite scale="2.0" texture="Content/UI/WeaponUI.png" sourcerect="448,960,64,64" origin="0.5,0.45" />
    <Upgrade gameversion="0.10.0.0" scale="*0.5" />
    <Sprite texture="Pumps.png" depth="0.8" sourcerect="0,0,400,192" origin="0.5,0.5"/>
    <InfectedSprite texture="Pumps.png" sourcerect="601,409,417,224" origin="0.5,0.5"/>
    <DamagedInfectedSprite texture="Pumps.png" sourcerect="175,409,417,224" origin="0.5,0.5"/>
    <BrokenSprite texture="Pumps.png" sourcerect="416,0,400,192" depth="0.8" maxcondition="80" fadein="true" />
    <BrokenSprite texture="Pumps.png" sourcerect="416,208,400,192" depth="0.8" maxcondition="0" />
    <DecorativeSprite texture="Content/Items/Pump/Pumps.png" depth="0.79" offset="-130,70" sourcerect="52,456,43,43" origin="0.5,0.5" rotationspeed="-360">
      <AnimationConditional Voltage="gt 0.3" targetitemcomponent="Pump" />
      <AnimationConditional CurrFlow="gt 0.0" targetitemcomponent="Pump" />
      <IsActiveConditional Condition="gt 0.0" />
    </DecorativeSprite>
    <DecorativeSprite texture="Content/Items/Pump/Pumps.png" depth="0.78" offset="-130,70" sourcerect="109,456,43,43"/>
    <LightComponent range="40.0" lightcolor="199,96,64,88" powerconsumption="5" IsOn="true" castshadows="false" allowingameediting="false" />
    <Pump canbeselected="true" maxflow="600" PowerConsumption="300.0" MinVoltage="0.3" IsOn="true" msg="ItemMsgInteractSelect">
      <GuiFrame relativesize="0.25,0.2" minsize="420,220" anchor="Center" style="ItemUI" />
      <sound file="Content/Items/Pump/Pump.ogg" type="OnActive" range="800.0" volumeproperty="CurrFlow" volume="0.01" loop="true" />
      <sound file="Content/Items/Pump/PumpBroken.ogg" type="Always" range="800.0" volumeproperty="CurrentBrokenVolume" volume="0.008" loop="true" />
      <PumpInEmitter particle="watersplash" particlespersecond="80" position="0,-26" anglemin="180" anglemax="180" velocitymin="400" velocitymax="500" />
      <PumpInEmitter particle="bubbles" particlespersecond="10" position="0,-26" anglemin="180" anglemax="180" velocitymin="100" velocitymax="200" />
      <PumpOutEmitter particle="bubbles" particlespersecond="5" position="157,-150" anglemin="0" anglemax="360" velocitymin="0" velocitymax="0" />
      <PumpOutEmitter particle="bubbles" particlespersecond="5" position="260,-150" anglemin="0" anglemax="360" velocitymin="0" velocitymax="0" />      
      <StatusEffect type="OnActive" target="This">
        <Conditional targetitemcomponent="Repairable" StressDeteriorationMultiplier="gt 5.0" />
        <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="heavysmoke" particlespersecond="2" scalemin="1.0" scalemax="1.5" distancemax="20" mincondition="0.0" maxcondition="15.0" />
      </StatusEffect>      
    </Pump>
    <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" />
      <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" />
      <input name="toggle" displayname="connection.togglestate" />
      <input name="set_active" displayname="connection.setstate" />
      <input name="set_speed" displayname="connection.setpumpingspeed" />
      <input name="set_targetlevel" displayname="connection.settargetwaterlevel" />
      <output name="condition_out" displayname="connection.conditionout" />
    </ConnectionPanel>
    <Repairable selectkey="Action" header="mechanicalrepairsheader" deteriorationspeed="0.125" 
                mindeteriorationdelay="60" maxdeteriorationdelay="270" MinDeteriorationCondition="0" RepairThreshold="80" fixDurationHighSkill="5" fixDurationLowSkill="25"
                StressDeteriorationThreshold="0.9" MaxStressDeteriorationMultiplier="6" StressDeteriorationIncreaseSpeed="0.05" StressDeteriorationDecreaseSpeed="0.1"
                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="1.5" distancemax="20" 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>
  </Item>
  
  <Item name="" identifier="smallpump" tags="pump" linkable="true" category="Machine" scale="0.5" damagedbyexplosions="true" explosiondamagemultiplier="0.2" allowrotatingineditor="true" GrabWhenSelected="true">
    <UpgradePreviewSprite texture="Content/UI/WeaponUI.png" sourcerect="448,960,64,64" origin="0.5,0.45" />
    <Sprite texture="Pumps.png" depth="0.8" sourcerect="1,264,133,89" origin="0.5,0.5" />
    <InfectedSprite texture="Pumps.png" sourcerect="815,0,208,143" origin="0.5,0.5"/>
    <DamagedInfectedSprite texture="Pumps.png" sourcerect="815,143,208,143" origin="0.5,0.5"/>
    <BrokenSprite texture="Pumps.png" sourcerect="134,264,133,89" depth="0.8" maxcondition="80" fadein="true" />
    <BrokenSprite texture="Pumps.png" sourcerect="267,264,133,89" depth="0.8" maxcondition="0" />
    <Pump canbeselected="true" maxflow="100" PowerConsumption="60.0" MinVoltage="0.3" IsOn="true" msg="ItemMsgInteractSelect">
      <GuiFrame relativesize="0.25,0.2" minsize="420,220" anchor="Center" style="ItemUI" />
      <sound file="Content/Items/Pump/Pump.ogg" type="OnActive" range="500.0" volumeproperty="CurrFlow" volume="0.005" loop="true" />
      <sound file="Content/Items/Pump/PumpBroken.ogg" type="Always" range="500.0" volumeproperty="CurrentBrokenVolume" volume="0.004" loop="true" />
      <PumpInEmitter particle="bubbles" particlespersecond="5" position="7,-51" anglemin="180" anglemax="180" velocitymin="100" velocitymax="200" scalemin="0.5" scalemax="0.6" />
      <PumpInEmitter particle="watersplash" particlespersecond="50" position="7,-51" anglemin="180" anglemax="180" velocitymin="200" velocitymax="400" scalemin="0.5" scalemax="0.6" />
      <PumpOutEmitter particle="bubbles" particlespersecond="5" position="7,-51" anglemin="0" anglemax="360" velocitymin="0" velocitymax="0" scalemin="0.5" scalemax="0.6" />
      <StatusEffect type="OnActive" target="This">
        <Conditional targetitemcomponent="Repairable" StressDeteriorationMultiplier="gt 5.0" />
        <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="heavysmoke" particlespersecond="2" scalemin="1.0" scalemax="1.5" distancemax="20" mincondition="0.0" maxcondition="15.0" />
      </StatusEffect>
    </Pump>
    <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" />
      <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" />
      <input name="toggle" displayname="connection.togglestate" />
      <input name="set_active" displayname="connection.setstate" />
      <input name="set_speed" displayname="connection.setpumpingspeed" />
      <input name="set_targetlevel" displayname="connection.settargetwaterlevel" />
      <output name="condition_out" displayname="connection.conditionout" />
    </ConnectionPanel>
    <Repairable selectkey="Action" header="mechanicalrepairsheader" 
                deteriorationspeed="0.2" mindeteriorationdelay="60" maxdeteriorationdelay="240" MinDeteriorationCondition="0" RepairThreshold="80" fixDurationHighSkill="5" fixDurationLowSkill="25"
                StressDeteriorationThreshold="0.9" MaxStressDeteriorationMultiplier="6" StressDeteriorationIncreaseSpeed="0.05" StressDeteriorationDecreaseSpeed="0.1"
                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="1.5" distancemax="20" 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>
  </Item>
</Items>