<?xml version="1.0" encoding="utf-8"?>
<Items>
  <Item name="Nuclear Reactor (Mini)" identifier="ekdockyard_reactor_mini" tags="reactor" type="Reactor" scale="0.5" linkable="true" category="Machine" damagedbyexplosions="true" explosiondamagemultiplier="0.2" description="Usable device for generating electrical power. A successfull miniaturization of small-modular-reactor architecture, compact enough to see use on some shuttle craft for extended range.">
    <trigger />
    <Sprite texture="%ModDir%/Items/Generator/reactor_mini.png" sourcerect="16,0,224,256" origin="0.5,0.5" depth="0.8" />
    <UpgradePreviewSprite scale="3.0" texture="Content/UI/WeaponUI.png" sourcerect="0,960,64,64" origin="0.5,0.45" />
    <BrokenSprite texture="%ModDir%/Items/Generator/reactor_mini.png" sourcerect="272,0,224,256" depth="0.8" origin="0.5,0.5" maxcondition="80" fadein="true" />
    <BrokenSprite texture="%ModDir%/Items/Generator/reactor_mini.png" sourcerect="16,256,224,256" depth="0.8" origin="0.5,0.5" maxcondition="0" />
    <aitarget sightrange="500" soundrange="2500" />
    <Reactor canbeselected="true" firedelay="15" meltdowndelay="30" maxpoweroutput="2500" fuelconsumptionrate="0.05" vulnerabletoemp="false" msg="ItemMsgInteractSelect">
      <StatusEffect type="InWater" target="This" condition="-1" comparison="and">
        <Conditional condition="gt 10" />
        <Conditional temperature="gt 2" />
      </StatusEffect>
      <GuiFrame relativesize="0.5,0.45" minsize="700,350" maxsize="2688,1166" anchor="Center" relativeoffset="0.1,0" style="ItemUI" />
      <GraphLine texture="Content/Items/Reactor/graphLine.png">
        <Sprite name="ReactorGraphLine" texture="Content/Items/Reactor/graphLine.png" sourcerect="0,0,32,32" />
      </GraphLine>
      <FissionRateMeter>
        <Sprite name="FissionRateMeter" texture="Content/Items/Reactor/reactor.png" sourcerect="544,770,441,240" origin="0.5,1" />
      </FissionRateMeter>
      <TurbineOutputMeter>
        <Sprite name="TurbineOutputMeter" texture="Content/Items/Reactor/reactor.png" sourcerect="544,770,441,240" origin="0.5,1" />
      </TurbineOutputMeter>
      <MeterPointer>
        <Sprite name="MeterPointer" texture="Content/UI/UIAtlasDevices.png" sourcerect="938,846,31,167 " origin="0.5,0.9" />
      </MeterPointer>
      <SectorSprite>
        <Sprite name="SectorSprite" texture="Content/UI/UIAtlasDevices.png" sourcerect="769,326,238,455" origin="0.95,0.5" />
      </SectorSprite>
      <TempMeterFrame>
        <Sprite name="TempMeterFrame" texture="Content/UI/UIAtlasDevices.png" sourcerect="92,517,59,265" origin="0,0" size="0.5,1" />
      </TempMeterFrame>
      <TempMeterBar>
        <Sprite name="TempMeterBar" texture="Content/UI/UIAtlasDevices.png" sourcerect="270,414,106,47" origin="0.5,0" />
      </TempMeterBar>
      <TempRangeIndicator>
        <Sprite name="TempRangeIndicator" texture="Content/UI/UIAtlasDevices.png" sourcerect="31,614,52,25" origin="0.5,0.5" size="0.6,0.6" />
      </TempRangeIndicator>
      <RequiredSkill identifier="electrical" level="50" />
      <sound file="Content/Items/Reactor/Reactor.ogg" type="OnActive" range="2000.0" volumeproperty="FissionRate" volume="0.02" loop="true" />
      <StatusEffect type="OnBroken" target="This" FissionRate="0.0" disabledeltatime="true">
        <Conditional temperature="gt 2" />
        <sound file="Content/Items/Weapons/ExplosionLarge2.ogg" range="8000" selectionmode="All" />
        <sound file="Content/Items/Weapons/ExplosionDebris5.ogg" range="8000" />
        <Explosion range="400" structuredamage="100" force="5.0" camerashake="200" flashrange="4000" flashduration="5.0" screencolor="255,255,255,255" screencolorrange="3000" screencolorduration="3.0">
          <Affliction identifier="burn" strength="200" />
          <Affliction identifier="explosiondamage" strength="50" />
          <Affliction identifier="radiationsickness" strength="50" />
          <Affliction identifier="stun" strength="5" />
        </Explosion>
      </StatusEffect>
      <StatusEffect type="OnBroken" target="Contained" Condition="0.0" setvalue="true">
        <Conditional temperature="gt 2" />
      </StatusEffect>
    </Reactor>
    <LightComponent range="10.0" lightcolor="255,255,255,0" powerconsumption="0" IsOn="false" castshadows="false" allowingameediting="false">
      <IsActive targetitemcomponent="Reactor" temperature="gt 2" />
      <sprite texture="%ModDir%/Items/Generator/reactor_mini.png" depth="0.025" sourcerect="272,257,224,254" origin="0.5,0.5" alpha="1.0" />
    </LightComponent>
    <LightComponent range="10.0" lightcolor="255,25,15,0" powerconsumption="0" IsOn="false" castshadows="false" allowingameediting="false" blinkfrequency="1">
      <IsActive targetitemcomponent="Reactor" temperaturecritical="eq true" />
      <sprite texture="%ModDir%/Items/Generator/reactor_mini.png" depth="0.025" sourcerect="272,257,224,254" origin="0.5,0.5" alpha="1.0" />
    </LightComponent>
    <ConnectionPanel selectkey="Action" canbeselected="true" msg="ItemMsgRewireScrewdriver" hudpriority="10">
      <GuiFrame relativesize="0.3,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">
        <Sound file="Content/Sounds/Damage/Electrocution1.ogg" range="1000" />
        <Explosion range="100.0" stun="0" force="5.0" flames="false" shockwave="false" sparks="true" underwaterbubble="false" />
        <Affliction identifier="stun" strength="4" />
        <Affliction identifier="burn" strength="5" />
      </StatusEffect>
      <RequiredItem items="screwdriver" type="Equipped" />
      <output name="power_out" displayname="connection.powerout" maxwires="1" />
      <output name="temperature_out" displayname="connection.temperatureout" />
      <input name="shutdown" displayname="connection.shutdown">
        <!-- Manually set state to false because shutdown signal is sometimes unreliable -->
        <StatusEffect type="OnUse" target="This" poweron="false" setvalue="true" />
      </input>
      <output name="meltdown_warning" displayname="connection.meltdownwarning">
        <StatusEffect type="OnUse" target="This">
          <ParticleEmitter particle="smoke" particleburstamount="3" particleburstinterval="0.5" particlespersecond="2" scalemin="1" scalemax="2.5" anglemin="0" anglemax="359" velocitymin="-50" velocitymax="50" mincondition="15.0" maxcondition="40.0" />
          <ParticleEmitter particle="DarkSmoke" particleburstamount="3" particleburstinterval="0.5" particlespersecond="20" scalemin="2.5" scalemax="3.5" anglemin="50" anglemax="130" velocitymin="10" velocitymax="50" mincondition="0.0" maxcondition="60.0" />
          <ParticleEmitter particle="DarkSmoke" particleburstamount="3" particleburstinterval="0.5" particlespersecond="40" scalemin="2.5" scalemax="3.5" distancemin="-15" distancemax="15" anglemin="50" anglemax="130" velocitymin="10" velocitymax="100" mincondition="0.0" maxcondition="20.0" />
          <ParticleEmitter particle="swirlysmoke" particlespersecond="3" scalemin="1" scalemax="2" anglemin="0" anglemax="360" velocitymin="0" velocitymax="10" />
          <sound file="Content/Items/Reactor/ReactorOverheatAlarm.ogg" type="OnUse" range="10000.0" loop="true" volume="1.0" />
        </StatusEffect>
      </output>
      <input name="set_fissionrate" displayname="connection.setfissionrate" />
      <input name="set_turbineoutput" displayname="connection.setturbineoutput" />
      <output name="power_value_out" displayname="connection.powervalueout" />
      <output name="load_value_out" displayname="connection.loadvalueout" />
      <output name="fuel_out" displayname="connection.availablefuelout" />
      <output name="condition_out" displayname="connection.conditionout" />
      <output name="fuel_percentage_left" displayname="connection.fuelpercentageout" />
      <!-- Control Additions autotemp="True" -->
      <input name="poweron" displayname="connection.activate">
        <StatusEffect type="OnUse" target="This" poweron="true" setvalue="true" />
      </input>
      <input name="autotemp" displayname="pumpautocontrol">
        <StatusEffect type="OnUse" target="This" autotemp="true" setvalue="true" />
      </input>
    </ConnectionPanel>
    <ItemContainer capacity="1" maxstacksize="1" canbeselected="true" hudpos="0.5,0.15" slotsperrow="1" uilabel="FuelRods">
      <Containable items="fuelrod">
        <StatusEffect type="OnContaining" target="This" AvailableFuel="80.0" disabledeltatime="true" />
      </Containable>
      <Containable items="fulguriumfuelrod">
        <StatusEffect type="OnContaining" target="This" AvailableFuel="150.0" disabledeltatime="true" />
      </Containable>
      <Containable items="thoriumfuelrod">
        <StatusEffect type="OnContaining" target="This" AvailableFuel="100.0" disabledeltatime="true" />
      </Containable>
      <Containable items="fulguriumfuelrodvolatile">
        <StatusEffect type="OnContaining" target="This" AvailableFuel="150.0" disabledeltatime="true" />
      </Containable>
    </ItemContainer>
    <Repairable selectkey="Action" header="mechanicalrepairsheader" deteriorationspeed="0.125" mindeteriorationdelay="120" maxdeteriorationdelay="720" MinDeteriorationCondition="10" minsabotagecondition="10" RepairThreshold="50" fixDurationHighSkill="5" fixDurationLowSkill="25" msg="ItemMsgRepairWrench" hudpriority="10">
      <GuiFrame relativesize="0.2,0.16" minsize="400,180" maxsize="480,216" anchor="Center" relativeoffset="0.0,0.27" style="ItemUI" />
      <RequiredSkill identifier="mechanical" level="55" />
      <RequiredItem items="wrench" type="equipped" />
      <ParticleEmitter particle="damagebubbles" particleburstamount="2" particleburstinterval="2.0" particlespersecond="2" scalemin="0.5" scalemax="1.5" anglemin="0" anglemax="359" velocitymin="-10" velocitymax="10" mincondition="0.0" maxcondition="50.0" />
      <ParticleEmitter particle="DarkSmoke" particleburstamount="3" particleburstinterval="0.5" particlespersecond="8" scalemin="1.8" scalemax="2.5" anglemin="0" anglemax="359" velocitymin="-50" velocitymax="50" mincondition="0.0" maxcondition="50.0" />
      <ParticleEmitter particle="heavysmoke" particleburstinterval="0.25" particlespersecond="2" scalemin="2.5" scalemax="5.0" mincondition="0.0" maxcondition="15.0" />
      <StatusEffect type="OnFailure" target="Character" targetlimbs="LeftHand,RightHand">
        <Sound file="Content/Items/MechanicalRepairFail.ogg" range="1000" />
        <Affliction identifier="lacerations" strength="5" />
        <Affliction identifier="stun" strength="4" />
      </StatusEffect>
    </Repairable>
  </Item>
  <Item name="Nuclear Reactor (Small)" identifier="ekdockyard_reactor_small" tags="reactor" type="Reactor" scale="0.5" linkable="true" category="Machine" damagedbyexplosions="true" explosiondamagemultiplier="0.2" description="Usable device for generating electrical power. An undersized reactor unit for vessels with lower power requirements.">
    <trigger />
    <Sprite texture="%ModDir%/Items/Generator/reactor_small.png" sourcerect="0,0,384,344" origin="0.5,0.45" depth="0.8" />
    <UpgradePreviewSprite scale="3.0" texture="Content/UI/WeaponUI.png" sourcerect="0,960,64,64" origin="0.5,0.45" />
    <BrokenSprite texture="%ModDir%/Items/Generator/reactor_small.png" sourcerect="384,0,384,344" depth="0.8" origin="0.5,0.45" maxcondition="80" fadein="true" />
    <BrokenSprite texture="%ModDir%/Items/Generator/reactor_small.png" sourcerect="0,352,384,344" depth="0.8" origin="0.5,0.45" maxcondition="0" />
    <aitarget sightrange="500" soundrange="2500" />
    <Reactor canbeselected="true" firedelay="17.5" meltdowndelay="60" maxpoweroutput="5000" fuelconsumptionrate="0.1" vulnerabletoemp="false" msg="ItemMsgInteractSelect">
      <StatusEffect type="InWater" target="This" condition="-0.5" comparison="and">
        <Conditional condition="gt 10" />
        <Conditional temperature="gt 2" />
      </StatusEffect>
      <GuiFrame relativesize="0.5,0.45" minsize="700,350" maxsize="2688,1166" anchor="Center" relativeoffset="0.1,0" style="ItemUI" />
      <GraphLine texture="Content/Items/Reactor/graphLine.png">
        <Sprite name="ReactorGraphLine" texture="Content/Items/Reactor/graphLine.png" sourcerect="0,0,32,32" />
      </GraphLine>
      <FissionRateMeter>
        <Sprite name="FissionRateMeter" texture="Content/Items/Reactor/reactor.png" sourcerect="544,770,441,240" origin="0.5,1" />
      </FissionRateMeter>
      <TurbineOutputMeter>
        <Sprite name="TurbineOutputMeter" texture="Content/Items/Reactor/reactor.png" sourcerect="544,770,441,240" origin="0.5,1" />
      </TurbineOutputMeter>
      <MeterPointer>
        <Sprite name="MeterPointer" texture="Content/UI/UIAtlasDevices.png" sourcerect="938,846,31,167 " origin="0.5,0.9" />
      </MeterPointer>
      <SectorSprite>
        <Sprite name="SectorSprite" texture="Content/UI/UIAtlasDevices.png" sourcerect="769,326,238,455" origin="0.95,0.5" />
      </SectorSprite>
      <TempMeterFrame>
        <Sprite name="TempMeterFrame" texture="Content/UI/UIAtlasDevices.png" sourcerect="92,517,59,265" origin="0,0" size="0.5,1" />
      </TempMeterFrame>
      <TempMeterBar>
        <Sprite name="TempMeterBar" texture="Content/UI/UIAtlasDevices.png" sourcerect="270,414,106,47" origin="0.5,0" />
      </TempMeterBar>
      <TempRangeIndicator>
        <Sprite name="TempRangeIndicator" texture="Content/UI/UIAtlasDevices.png" sourcerect="31,614,52,25" origin="0.5,0.5" size="0.6,0.6" />
      </TempRangeIndicator>
      <RequiredSkill identifier="electrical" level="50" />
      <sound file="Content/Items/Reactor/Reactor.ogg" type="OnActive" range="2000.0" volumeproperty="FissionRate" volume="0.02" loop="true" />
      <StatusEffect type="OnBroken" target="This" FissionRate="0.0" disabledeltatime="true">
        <Conditional temperature="gt 2" />
        <sound file="Content/Items/Weapons/ExplosionLarge2.ogg" range="8000" selectionmode="All" />
        <sound file="Content/Items/Weapons/ExplosionDebris5.ogg" range="8000" />
        <Explosion range="600" structuredamage="100" force="5.0" camerashake="200" flashrange="6000" flashduration="5.0" screencolor="255,255,255,255" screencolorrange="3500" screencolorduration="3.0">
          <Affliction identifier="burn" strength="200" />
          <Affliction identifier="explosiondamage" strength="50" />
          <Affliction identifier="radiationsickness" strength="50" />
          <Affliction identifier="stun" strength="5" />
        </Explosion>
      </StatusEffect>
      <StatusEffect type="OnBroken" target="Contained" Condition="0.0" setvalue="true">
        <Conditional temperature="gt 2" />
      </StatusEffect>
    </Reactor>
    <LightComponent range="10.0" lightcolor="255,255,255,0" powerconsumption="0" IsOn="false" castshadows="false" allowingameediting="false">
      <IsActive targetitemcomponent="Reactor" temperature="gt 2" />
      <sprite texture="%ModDir%/Items/Generator/reactor_small.png" depth="0.025" sourcerect="386,354,380,340" origin="0.5,0.45" alpha="1.0" />
    </LightComponent>
    <LightComponent range="10.0" lightcolor="255,25,15,0" powerconsumption="0" IsOn="false" castshadows="false" allowingameediting="false" blinkfrequency="1">
      <IsActive targetitemcomponent="Reactor" temperaturecritical="eq true" />
      <sprite texture="%ModDir%/Items/Generator/reactor_small.png" depth="0.025" sourcerect="386,354,380,340" origin="0.5,0.45" alpha="1.0" />
    </LightComponent>
    <ConnectionPanel selectkey="Action" canbeselected="true" msg="ItemMsgRewireScrewdriver" hudpriority="10">
      <GuiFrame relativesize="0.3,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">
        <Sound file="Content/Sounds/Damage/Electrocution1.ogg" range="1000" />
        <Explosion range="100.0" stun="0" force="5.0" flames="false" shockwave="false" sparks="true" underwaterbubble="false" />
        <Affliction identifier="stun" strength="4" />
        <Affliction identifier="burn" strength="5" />
      </StatusEffect>
      <RequiredItem items="screwdriver" type="Equipped" />
      <output name="power_out" displayname="connection.powerout" maxwires="1" />
      <output name="temperature_out" displayname="connection.temperatureout" />
      <input name="shutdown" displayname="connection.shutdown">
        <!-- Manually set state to false because shutdown signal is sometimes unreliable -->
        <StatusEffect type="OnUse" target="This" poweron="false" setvalue="true" />
      </input>
      <output name="meltdown_warning" displayname="connection.meltdownwarning">
        <StatusEffect type="OnUse" target="This">
          <ParticleEmitter particle="smoke" particleburstamount="3" particleburstinterval="0.5" particlespersecond="2" scalemin="1" scalemax="2.5" anglemin="0" anglemax="359" velocitymin="-50" velocitymax="50" mincondition="15.0" maxcondition="40.0" />
          <ParticleEmitter particle="DarkSmoke" particleburstamount="3" particleburstinterval="0.5" particlespersecond="20" scalemin="2.5" scalemax="3.5" anglemin="50" anglemax="130" velocitymin="10" velocitymax="50" mincondition="0.0" maxcondition="60.0" />
          <ParticleEmitter particle="DarkSmoke" particleburstamount="3" particleburstinterval="0.5" particlespersecond="40" scalemin="2.5" scalemax="3.5" distancemin="-15" distancemax="15" anglemin="50" anglemax="130" velocitymin="10" velocitymax="100" mincondition="0.0" maxcondition="20.0" />
          <ParticleEmitter particle="swirlysmoke" particlespersecond="3" scalemin="1" scalemax="2" anglemin="0" anglemax="360" velocitymin="0" velocitymax="10" />
          <sound file="Content/Items/Reactor/ReactorOverheatAlarm.ogg" type="OnUse" range="10000.0" loop="true" volume="1.0" />
        </StatusEffect>
      </output>
      <input name="set_fissionrate" displayname="connection.setfissionrate" />
      <input name="set_turbineoutput" displayname="connection.setturbineoutput" />
      <output name="power_value_out" displayname="connection.powervalueout" />
      <output name="load_value_out" displayname="connection.loadvalueout" />
      <output name="fuel_out" displayname="connection.availablefuelout" />
      <output name="condition_out" displayname="connection.conditionout" />
      <output name="fuel_percentage_left" displayname="connection.fuelpercentageout" />
      <!-- Control Additions autotemp="True" -->
      <input name="poweron" displayname="connection.activate">
        <StatusEffect type="OnUse" target="This" poweron="true" setvalue="true" />
      </input>
      <input name="autotemp" displayname="pumpautocontrol">
        <StatusEffect type="OnUse" target="This" autotemp="true" setvalue="true" />
      </input>
    </ConnectionPanel>
    <ItemContainer capacity="2" maxstacksize="1" canbeselected="true" hudpos="0.5,0.15" slotsperrow="1" uilabel="FuelRods">
      <Containable items="fuelrod">
        <StatusEffect type="OnContaining" target="This" AvailableFuel="80.0" disabledeltatime="true" />
      </Containable>
      <Containable items="fulguriumfuelrod">
        <StatusEffect type="OnContaining" target="This" AvailableFuel="150.0" disabledeltatime="true" />
      </Containable>
      <Containable items="thoriumfuelrod">
        <StatusEffect type="OnContaining" target="This" AvailableFuel="100.0" disabledeltatime="true" />
      </Containable>
      <Containable items="fulguriumfuelrodvolatile">
        <StatusEffect type="OnContaining" target="This" AvailableFuel="150.0" disabledeltatime="true" />
      </Containable>
    </ItemContainer>
    <Repairable selectkey="Action" header="mechanicalrepairsheader" deteriorationspeed="0.125" mindeteriorationdelay="120" maxdeteriorationdelay="720" MinDeteriorationCondition="10" minsabotagecondition="10" RepairThreshold="50" fixDurationHighSkill="5" fixDurationLowSkill="25" msg="ItemMsgRepairWrench" hudpriority="10">
      <GuiFrame relativesize="0.2,0.16" minsize="400,180" maxsize="480,216" anchor="Center" relativeoffset="0.0,0.27" style="ItemUI" />
      <RequiredSkill identifier="mechanical" level="55" />
      <RequiredItem items="wrench" type="equipped" />
      <ParticleEmitter particle="damagebubbles" particleburstamount="2" particleburstinterval="2.0" particlespersecond="2" scalemin="0.5" scalemax="1.5" anglemin="0" anglemax="359" velocitymin="-10" velocitymax="10" mincondition="0.0" maxcondition="50.0" />
      <ParticleEmitter particle="DarkSmoke" particleburstamount="3" particleburstinterval="0.5" particlespersecond="8" scalemin="1.8" scalemax="2.5" anglemin="0" anglemax="359" velocitymin="-50" velocitymax="50" mincondition="0.0" maxcondition="50.0" />
      <ParticleEmitter particle="heavysmoke" particleburstinterval="0.25" particlespersecond="2" scalemin="2.5" scalemax="5.0" mincondition="0.0" maxcondition="15.0" />
      <StatusEffect type="OnFailure" target="Character" targetlimbs="LeftHand,RightHand">
        <Sound file="Content/Items/MechanicalRepairFail.ogg" range="1000" />
        <Affliction identifier="lacerations" strength="5" />
        <Affliction identifier="stun" strength="4" />
      </StatusEffect>
    </Repairable>
  </Item>
  <Item name="Slow Nuclear Reactor (Small)" identifier="ekdockyard_reactorslow_small" tags="reactor" type="Reactor" scale="0.5" linkable="true" category="Machine" damagedbyexplosions="true" explosiondamagemultiplier="0.2" description="Nuclear power generation design which is designed for high-mass reaction and efficient usage of fuel at sub-critical levels.">
    <trigger />
    <Sprite texture="%ModDir%/Items/Generator/reactorslow_small.png" sourcerect="0,0,384,344" origin="0.5,0.45" depth="0.8" />
    <UpgradePreviewSprite scale="3.0" texture="Content/UI/WeaponUI.png" sourcerect="0,960,64,64" origin="0.5,0.45" />
    <BrokenSprite texture="%ModDir%/Items/Generator/reactorslow_small.png" sourcerect="384,0,384,344" depth="0.8" origin="0.5,0.45" maxcondition="80" fadein="true" />
    <BrokenSprite texture="%ModDir%/Items/Generator/reactorslow_small.png" sourcerect="0,352,384,344" depth="0.8" origin="0.5,0.45" maxcondition="0" />
    <aitarget sightrange="500" soundrange="2500" />
    <Reactor canbeselected="true" firedelay="17.5" meltdowndelay="60" maxpoweroutput="5000" fuelconsumptionrate="0.05" vulnerabletoemp="false" msg="ItemMsgInteractSelect">
      <StatusEffect type="InWater" target="This" condition="-0.5" comparison="and">
        <Conditional condition="gt 10" />
        <Conditional temperature="gt 2" />
      </StatusEffect>
      <GuiFrame relativesize="0.5,0.45" minsize="700,350" maxsize="2688,1166" anchor="Center" relativeoffset="0.1,0" style="ItemUI" />
      <GraphLine texture="Content/Items/Reactor/graphLine.png">
        <Sprite name="ReactorGraphLine" texture="Content/Items/Reactor/graphLine.png" sourcerect="0,0,32,32" />
      </GraphLine>
      <FissionRateMeter>
        <Sprite name="FissionRateMeter" texture="Content/Items/Reactor/reactor.png" sourcerect="544,770,441,240" origin="0.5,1" />
      </FissionRateMeter>
      <TurbineOutputMeter>
        <Sprite name="TurbineOutputMeter" texture="Content/Items/Reactor/reactor.png" sourcerect="544,770,441,240" origin="0.5,1" />
      </TurbineOutputMeter>
      <MeterPointer>
        <Sprite name="MeterPointer" texture="Content/UI/UIAtlasDevices.png" sourcerect="938,846,31,167 " origin="0.5,0.9" />
      </MeterPointer>
      <SectorSprite>
        <Sprite name="SectorSprite" texture="Content/UI/UIAtlasDevices.png" sourcerect="769,326,238,455" origin="0.95,0.5" />
      </SectorSprite>
      <TempMeterFrame>
        <Sprite name="TempMeterFrame" texture="Content/UI/UIAtlasDevices.png" sourcerect="92,517,59,265" origin="0,0" size="0.5,1" />
      </TempMeterFrame>
      <TempMeterBar>
        <Sprite name="TempMeterBar" texture="Content/UI/UIAtlasDevices.png" sourcerect="270,414,106,47" origin="0.5,0" />
      </TempMeterBar>
      <TempRangeIndicator>
        <Sprite name="TempRangeIndicator" texture="Content/UI/UIAtlasDevices.png" sourcerect="31,614,52,25" origin="0.5,0.5" size="0.6,0.6" />
      </TempRangeIndicator>
      <RequiredSkill identifier="electrical" level="50" />
      <sound file="Content/Items/Reactor/Reactor.ogg" type="OnActive" range="2000.0" volumeproperty="FissionRate" volume="0.02" loop="true" />
      <StatusEffect type="OnBroken" target="This" FissionRate="0.0" disabledeltatime="true">
        <Conditional temperature="gt 2" />
        <sound file="Content/Items/Weapons/ExplosionLarge2.ogg" range="8000" selectionmode="All" />
        <sound file="Content/Items/Weapons/ExplosionDebris5.ogg" range="8000" />
        <Explosion range="600" structuredamage="100" force="5.0" camerashake="200" flashrange="6000" flashduration="5.0" screencolor="255,255,255,255" screencolorrange="3500" screencolorduration="3.0">
          <Affliction identifier="burn" strength="200" />
          <Affliction identifier="explosiondamage" strength="50" />
          <Affliction identifier="radiationsickness" strength="50" />
          <Affliction identifier="stun" strength="5" />
        </Explosion>
      </StatusEffect>
      <StatusEffect type="OnBroken" target="Contained" Condition="0.0" setvalue="true">
        <Conditional temperature="gt 2" />
      </StatusEffect>
    </Reactor>
    <LightComponent range="10.0" lightcolor="255,255,255,0" powerconsumption="0" IsOn="false" castshadows="false" allowingameediting="false">
      <IsActive targetitemcomponent="Reactor" temperature="gt 2" />
      <sprite texture="%ModDir%/Items/Generator/reactorslow_small.png" depth="0.025" sourcerect="388,356,376,336" origin="0.5,0.45" alpha="1.0" />
    </LightComponent>
    <LightComponent range="10.0" lightcolor="255,25,15,0" powerconsumption="0" IsOn="false" castshadows="false" allowingameediting="false" blinkfrequency="1">
      <IsActive targetitemcomponent="Reactor" temperaturecritical="eq true" />
      <sprite texture="%ModDir%/Items/Generator/reactorslow_small.png" depth="0.025" sourcerect="388,356,376,336" origin="0.5,0.45" alpha="1.0" />
    </LightComponent>
    <ConnectionPanel selectkey="Action" canbeselected="true" msg="ItemMsgRewireScrewdriver" hudpriority="10">
      <GuiFrame relativesize="0.3,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">
        <Sound file="Content/Sounds/Damage/Electrocution1.ogg" range="1000" />
        <Explosion range="100.0" stun="0" force="5.0" flames="false" shockwave="false" sparks="true" underwaterbubble="false" />
        <Affliction identifier="stun" strength="4" />
        <Affliction identifier="burn" strength="5" />
      </StatusEffect>
      <RequiredItem items="screwdriver" type="Equipped" />
      <output name="power_out" displayname="connection.powerout" maxwires="1" />
      <output name="temperature_out" displayname="connection.temperatureout" />
      <input name="shutdown" displayname="connection.shutdown">
        <!-- Manually set state to false because shutdown signal is sometimes unreliable -->
        <StatusEffect type="OnUse" target="This" poweron="false" setvalue="true" />
      </input>
      <output name="meltdown_warning" displayname="connection.meltdownwarning">
        <StatusEffect type="OnUse" target="This">
          <ParticleEmitter particle="smoke" particleburstamount="3" particleburstinterval="0.5" particlespersecond="2" scalemin="1" scalemax="2.5" anglemin="0" anglemax="359" velocitymin="-50" velocitymax="50" mincondition="15.0" maxcondition="40.0" />
          <ParticleEmitter particle="DarkSmoke" particleburstamount="3" particleburstinterval="0.5" particlespersecond="20" scalemin="2.5" scalemax="3.5" anglemin="50" anglemax="130" velocitymin="10" velocitymax="50" mincondition="0.0" maxcondition="60.0" />
          <ParticleEmitter particle="DarkSmoke" particleburstamount="3" particleburstinterval="0.5" particlespersecond="40" scalemin="2.5" scalemax="3.5" distancemin="-15" distancemax="15" anglemin="50" anglemax="130" velocitymin="10" velocitymax="100" mincondition="0.0" maxcondition="20.0" />
          <ParticleEmitter particle="swirlysmoke" particlespersecond="3" scalemin="1" scalemax="2" anglemin="0" anglemax="360" velocitymin="0" velocitymax="10" />
          <sound file="Content/Items/Reactor/ReactorOverheatAlarm.ogg" type="OnUse" range="10000.0" loop="true" volume="1.0" />
        </StatusEffect>
      </output>
      <input name="set_fissionrate" displayname="connection.setfissionrate" />
      <input name="set_turbineoutput" displayname="connection.setturbineoutput" />
      <output name="power_value_out" displayname="connection.powervalueout" />
      <output name="load_value_out" displayname="connection.loadvalueout" />
      <output name="fuel_out" displayname="connection.availablefuelout" />
      <output name="condition_out" displayname="connection.conditionout" />
      <output name="fuel_percentage_left" displayname="connection.fuelpercentageout" />
      <!-- Control Additions autotemp="True" -->
      <input name="poweron" displayname="connection.activate">
        <StatusEffect type="OnUse" target="This" poweron="true" setvalue="true" />
      </input>
      <input name="autotemp" displayname="pumpautocontrol">
        <StatusEffect type="OnUse" target="This" autotemp="true" setvalue="true" />
      </input>
    </ConnectionPanel>
    <ItemContainer capacity="2" maxstacksize="1" canbeselected="true" hudpos="0.5,0.15" slotsperrow="1" uilabel="FuelRods">
      <Containable items="fuelrod">
        <StatusEffect type="OnContaining" target="This" AvailableFuel="40.0" disabledeltatime="true" />
      </Containable>
      <Containable items="fulguriumfuelrod">
        <StatusEffect type="OnContaining" target="This" AvailableFuel="75.0" disabledeltatime="true" />
      </Containable>
      <Containable items="thoriumfuelrod">
        <StatusEffect type="OnContaining" target="This" AvailableFuel="50.0" disabledeltatime="true" />
      </Containable>
      <Containable items="fulguriumfuelrodvolatile">
        <StatusEffect type="OnContaining" target="This" AvailableFuel="75.0" disabledeltatime="true" />
      </Containable>
    </ItemContainer>
    <Repairable selectkey="Action" header="mechanicalrepairsheader" deteriorationspeed="0.125" mindeteriorationdelay="120" maxdeteriorationdelay="720" MinDeteriorationCondition="10" minsabotagecondition="10" RepairThreshold="50" fixDurationHighSkill="5" fixDurationLowSkill="25" msg="ItemMsgRepairWrench" hudpriority="10">
      <GuiFrame relativesize="0.2,0.16" minsize="400,180" maxsize="480,216" anchor="Center" relativeoffset="0.0,0.27" style="ItemUI" />
      <RequiredSkill identifier="mechanical" level="55" />
      <RequiredItem items="wrench" type="equipped" />
      <ParticleEmitter particle="damagebubbles" particleburstamount="2" particleburstinterval="2.0" particlespersecond="2" scalemin="0.5" scalemax="1.5" anglemin="0" anglemax="359" velocitymin="-10" velocitymax="10" mincondition="0.0" maxcondition="50.0" />
      <ParticleEmitter particle="DarkSmoke" particleburstamount="3" particleburstinterval="0.5" particlespersecond="8" scalemin="1.8" scalemax="2.5" anglemin="0" anglemax="359" velocitymin="-50" velocitymax="50" mincondition="0.0" maxcondition="50.0" />
      <ParticleEmitter particle="heavysmoke" particleburstinterval="0.25" particlespersecond="2" scalemin="2.5" scalemax="5.0" mincondition="0.0" maxcondition="15.0" />
      <StatusEffect type="OnFailure" target="Character" targetlimbs="LeftHand,RightHand">
        <Sound file="Content/Items/MechanicalRepairFail.ogg" range="1000" />
        <Affliction identifier="lacerations" strength="5" />
        <Affliction identifier="stun" strength="4" />
      </StatusEffect>
    </Repairable>
  </Item>
  <Item name="Diesel Biofuel" identifier="ekdockyard_generatorfuel" Tags="mediumitem,generatorfuel,reactorfuel" category="Fuel" cargocontaineridentifier="metalcrate" scale="0.5" description="Hydrocarbon-based fuel used by diesel generators." maxstacksize="4">
    <PreferredContainer primary="ek_dieselgenerator" minamount="1" maxamount="1" />
    <Price baseprice="150">
      <Price storeidentifier="merchantoutpost" multiplier="1" minavailable="4" />
      <Price storeidentifier="merchantcity" multiplier="0.9" minavailable="6" />
      <Price storeidentifier="merchantresearch" multiplier="0.9" minavailable="8" />
      <Price storeidentifier="merchantmilitary" multiplier="1.1" minavailable="3" />
      <Price storeidentifier="merchantmine" multiplier="1.1" minavailable="3" />
    </Price>
    <!--
	45
	30
	30
	60 
	-->
    <Deconstruct time="10">
      <Item identifier="plastic" />
      <Item identifier="organicfiber" mincondition="0.1" copycondition="true" />
      <Item identifier="ethanol" mincondition="0.1" copycondition="true" />
    </Deconstruct>
    <Fabricate suitablefabricators="fabricator" requiredtime="15">
      <RequiredSkill identifier="mechanical" level="40" />
      <RequiredItem identifier="plastic" />
      <RequiredItem identifier="organicfiber" />
      <RequiredItem identifier="organicfiber" />
      <RequiredItem identifier="ethanol" />
    </Fabricate>
    <Fabricate suitablefabricators="fabricator" displayname="ekdockyard_generatorfuel_empty" outcondition="0.0">
      <RequiredSkill identifier="mechanical" level="15" />
      <RequiredItem identifier="plastic" />
    </Fabricate>
    <Fabricate suitablefabricators="fabricator" displayname="recycleitem" requiredtime="15">
      <RequiredSkill identifier="mechanical" level="30" />
      <RequiredItem identifier="ekdockyard_generatorfuel" mincondition="0.0" usecondition="false" />
      <RequiredItem identifier="organicfiber" />
      <RequiredItem identifier="organicfiber" />
      <RequiredItem identifier="ethanol" />
    </Fabricate>
    <InventoryIcon texture="%ModDir%/Items/Generator/fuel_items.png" sourcerect="96,0,64,64" origin="0.5,0.5" />
    <Sprite texture="%ModDir%/Items/Generator/fuel_items.png" depth="0.55" sourcerect="0,0,88,128" />
    <Body width="72" height="116" density="9" />
    <Holdable slots="Any,RightHand,LeftHand" holdpos="10,-75" handle1="-3,47" aimable="false" msg="ItemMsgPickUpSelect" canBeCombined="true" removeOnCombined="false">
      <StatusEffect type="OnFire" target="This" Condition="-100.0" disabledeltatime="true" delay="3" stackable="false" checkconditionalalways="true">
        <Conditional HasStatusTag="onfire" />
        <sound file="Content/Items/Weapons/ExplosionSmall3.ogg" range="5000" selectionmode="All" />
        <sound file="Content/Items/Weapons/ExplosionDebris3.ogg" range="5000" />
        <Fire size="100" />
        <Explosion range="250.0" structuredamage="15" force="3.0">
          <Affliction identifier="burn" strength="15" />
          <Affliction identifier="stun" strength="5" />
        </Explosion>
        <Remove />
      </StatusEffect>
      <!--
	  <StatusEffect type="OnBroken" target="This" disabledeltatime="true" delay="0.5" stackable="false">
        <Remove />
      </StatusEffect>
	  -->
    </Holdable>
  </Item>
  <Item name="Diesel Generator (Large)" identifier="ekdockyard_generatordiesel_large" tags="generator,ek_dieselgenerator" type="Reactor" scale="0.5" linkable="true" category="Machine" damagedbyexplosions="true" explosiondamagemultiplier="0.2">
    <trigger x="96" y="-64" width="576" height="240" />
    <Sprite texture="%ModDir%/Items/Generator/generator_diesel_large.png" sourcerect="0,0,768,368" origin="0.5,0.45" depth="0.8" />
    <UpgradePreviewSprite scale="3.0" texture="Content/UI/WeaponUI.png" sourcerect="0,960,64,64" origin="0.5,0.45" />
    <BrokenSprite texture="%ModDir%/Items/Generator/generator_diesel_large.png" sourcerect="0,368,768,368" depth="0.8" origin="0.5,0.45" maxcondition="90" mincondition="60" fadein="true" />
    <BrokenSprite texture="%ModDir%/Items/Generator/generator_diesel_large.png" sourcerect="0,368,768,368" depth="0.8" origin="0.5,0.45" maxcondition="60" />
    <BrokenSprite texture="%ModDir%/Items/Generator/generator_diesel_large.png" sourcerect="0,736,768,368" depth="0.8" origin="0.5,0.45" maxcondition="1" />
    <aitarget sightrange="500" soundrange="10000" />
    <Reactor canbeselected="true" firedelay="20" meltdowndelay="60" maxpoweroutput="9000" fuelconsumptionrate="0.5" vulnerabletoemp="false" msg="ItemMsgInteractSelect">
      <StatusEffect type="InWater" target="This" condition="-1">
        <Conditional temperature="gt 2" />
      </StatusEffect>
      <GuiFrame relativesize="0.5,0.45" minsize="700,350" maxsize="2688,1166" anchor="Center" relativeoffset="0.1,0" style="ItemUI" />
      <GraphLine texture="Content/Items/Reactor/graphLine.png">
        <Sprite name="ReactorGraphLine" texture="Content/Items/Reactor/graphLine.png" sourcerect="0,0,32,32" />
      </GraphLine>
      <FissionRateMeter>
        <Sprite name="FissionRateMeter" texture="Content/Items/Reactor/reactor.png" sourcerect="544,770,441,240" origin="0.5,1" />
      </FissionRateMeter>
      <TurbineOutputMeter>
        <Sprite name="TurbineOutputMeter" texture="Content/Items/Reactor/reactor.png" sourcerect="544,770,441,240" origin="0.5,1" />
      </TurbineOutputMeter>
      <MeterPointer>
        <Sprite name="MeterPointer" texture="Content/UI/UIAtlasDevices.png" sourcerect="938,846,31,167 " origin="0.5,0.9" />
      </MeterPointer>
      <SectorSprite>
        <Sprite name="SectorSprite" texture="Content/UI/UIAtlasDevices.png" sourcerect="769,326,238,455" origin="0.95,0.5" />
      </SectorSprite>
      <TempMeterFrame>
        <Sprite name="TempMeterFrame" texture="Content/UI/UIAtlasDevices.png" sourcerect="92,517,59,265" origin="0,0" size="0.5,1" />
      </TempMeterFrame>
      <TempMeterBar>
        <Sprite name="TempMeterBar" texture="Content/UI/UIAtlasDevices.png" sourcerect="270,414,106,47" origin="0.5,0" />
      </TempMeterBar>
      <TempRangeIndicator>
        <Sprite name="TempRangeIndicator" texture="Content/UI/UIAtlasDevices.png" sourcerect="31,614,52,25" origin="0.5,0.5" size="0.6,0.6" />
      </TempRangeIndicator>
      <RequiredSkill identifier="mechanical" level="50" />
      <sound file="%ModDir%/Items/Generator/generator_diesel_large.ogg" type="OnActive" range="1750.0" volumeproperty="FissionRate" volume="0.02" loop="true" />
      <StatusEffect type="OnBroken" target="This" FissionRate="0.0" disabledeltatime="true">
        <sound file="Content/Items/Weapons/ExplosionLarge2.ogg" range="8000" selectionmode="All" />
        <sound file="Content/Items/Weapons/ExplosionDebris5.ogg" range="8000" />
        <Explosion range="500.0" ballastfloradamage="110" structuredamage="10" itemdamage="200" stun="2" force="30.0" severlimbsprobability="0.6">
          <Affliction identifier="burn" strength="90" />
          <Affliction identifier="explosiondamage" strength="30" />
          <Affliction identifier="lacerations" strength="15" />
        </Explosion>
        <Fire size="300" />
      </StatusEffect>
    </Reactor>
    <ConnectionPanel selectkey="Action" canbeselected="true" msg="ItemMsgRewireScrewdriver" hudpriority="10">
      <GuiFrame relativesize="0.3,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">
        <Sound file="Content/Sounds/Damage/Electrocution1.ogg" range="1000" />
        <Explosion range="100.0" stun="0" force="5.0" flames="false" shockwave="false" sparks="true" underwaterbubble="false" />
        <Affliction identifier="stun" strength="5" />
        <Affliction identifier="burn" strength="5" />
      </StatusEffect>
      <RequiredItem items="screwdriver" type="Equipped" />
      <output name="power_out" displayname="connection.powerout" />
      <output name="temperature_out" displayname="connection.temperatureout" />
      <input name="shutdown" displayname="connection.shutdown">
        <!-- Manually set state to false because shutdown signal is sometimes unreliable -->
        <StatusEffect type="OnUse" target="This" poweron="false" setvalue="true" />
      </input>
      <output name="meltdown_warning" displayname="connection.meltdownwarning">
        <StatusEffect type="OnUse" target="This">
          <ParticleEmitter particle="smoke" particleburstamount="3" particleburstinterval="0.5" particlespersecond="2" scalemin="1" scalemax="2.5" anglemin="0" anglemax="359" velocitymin="-50" velocitymax="50" mincondition="15.0" maxcondition="50.0" />
          <ParticleEmitter particle="swirlysmoke" particlespersecond="3" scalemin="1" scalemax="2" anglemin="0" anglemax="360" velocitymin="0" velocitymax="10" />
          <sound file="Content/Items/Engine/EngineBroken.ogg" type="OnUse" range="3250.0" loop="true" volume="1.0" />
        </StatusEffect>
      </output>
      <input name="set_fissionrate" displayname="connection.setfissionrate" />
      <input name="set_turbineoutput" displayname="connection.setturbineoutput" />
      <output name="power_value_out" displayname="connection.powervalueout" />
      <output name="load_value_out" displayname="connection.loadvalueout" />
      <output name="fuel_out" displayname="connection.availablefuelout" />
      <output name="condition_out" displayname="connection.conditionout" />
      <output name="fuel_percentage_left" displayname="connection.fuelpercentageout" />
      <!-- Control Additions autotemp="True" -->
      <input name="poweron" displayname="connection.activate">
        <StatusEffect type="OnUse" target="This" poweron="true" setvalue="true" />
      </input>
      <input name="autotemp" displayname="pumpautocontrol">
        <StatusEffect type="OnUse" target="This" autotemp="true" setvalue="true" />
      </input>
    </ConnectionPanel>
    <ItemContainer capacity="1" maxstacksize="1" canbeselected="true" hudpos="0.5,0.15" slotsperrow="1" uilabel="FuelRods">
      <Containable items="ekdockyard_generatorfuel,generatorfuel">
        <StatusEffect type="OnContaining" target="This" AvailableFuel="100.0" disabledeltatime="true" />
      </Containable>
      <!--
	  <Containable items="ekdockyard_generatorfuel">
        <StatusEffect type="OnContaining" target="This" AvailableFuel="100.0" disabledeltatime="true" />
      </Containable>
	  -->
    </ItemContainer>
    <Repairable selectkey="Action" header="mechanicalrepairsheader" deteriorationspeed="0.125" mindeteriorationdelay="120" maxdeteriorationdelay="720" MinDeteriorationCondition="10" minsabotagecondition="10" RepairThreshold="80" fixDurationHighSkill="15" fixDurationLowSkill="35" msg="ItemMsgRepairWrench" hudpriority="10">
      <GuiFrame relativesize="0.2,0.16" minsize="400,180" maxsize="480,216" anchor="Center" relativeoffset="0.0,0.27" style="ItemUI" />
      <RequiredSkill identifier="mechanical" level="55" />
      <RequiredItem items="wrench" type="equipped" />
      <ParticleEmitter particle="damagebubbles" particleburstamount="2" particleburstinterval="2.0" particlespersecond="2" scalemin="0.5" scalemax="1.5" anglemin="0" anglemax="359" velocitymin="-10" velocitymax="10" mincondition="0.0" maxcondition="50.0" />
      <ParticleEmitter particle="smoke" particleburstamount="3" particleburstinterval="0.5" particlespersecond="2" scalemin="1" scalemax="2.5" anglemin="0" anglemax="359" velocitymin="-50" velocitymax="50" mincondition="15.0" maxcondition="50.0" />
      <ParticleEmitter particle="heavysmoke" particleburstinterval="0.25" particlespersecond="2" scalemin="2.5" scalemax="5.0" mincondition="0.0" maxcondition="15.0" />
      <StatusEffect type="OnFailure" target="Character" targetlimbs="LeftHand,RightHand">
        <Sound file="Content/Items/MechanicalRepairFail.ogg" range="1000" />
        <Affliction identifier="lacerations" strength="5" />
        <Affliction identifier="stun" strength="5" />
      </StatusEffect>
    </Repairable>
  </Item>
  <Item name="Diesel Generator (Medium)" identifier="ekdockyard_generatordiesel_medium" tags="generator,ek_dieselgenerator" type="Reactor" scale="0.5" linkable="true" category="Machine" damagedbyexplosions="true" explosiondamagemultiplier="0.2">
    <trigger x="56" y="-64" width="448" height="224" />
    <Sprite texture="%ModDir%/Items/Generator/generator_diesel_medium.png" sourcerect="0,0,560,352" origin="0.5,0.45" depth="0.8" />
    <UpgradePreviewSprite scale="3.0" texture="Content/UI/WeaponUI.png" sourcerect="0,960,64,64" origin="0.5,0.45" />
    <BrokenSprite texture="%ModDir%/Items/Generator/generator_diesel_medium.png" sourcerect="560,0,560,352" depth="0.8" origin="0.5,0.45" maxcondition="90" mincondition="60" fadein="true" />
    <BrokenSprite texture="%ModDir%/Items/Generator/generator_diesel_medium.png" sourcerect="560,0,560,352" depth="0.8" origin="0.5,0.45" maxcondition="60" />
    <BrokenSprite texture="%ModDir%/Items/Generator/generator_diesel_medium.png" sourcerect="0,352,560,352" depth="0.8" origin="0.5,0.45" maxcondition="1" />
    <aitarget sightrange="500" soundrange="7500" />
    <Reactor canbeselected="true" firedelay="20" meltdowndelay="60" maxpoweroutput="6000" fuelconsumptionrate="0.35" vulnerabletoemp="false" msg="ItemMsgInteractSelect">
      <StatusEffect type="InWater" target="This" condition="-1.5">
        <Conditional temperature="gt 2" />
      </StatusEffect>
      <GuiFrame relativesize="0.5,0.45" minsize="700,350" maxsize="2688,1166" anchor="Center" relativeoffset="0.1,0" style="ItemUI" />
      <GraphLine texture="Content/Items/Reactor/graphLine.png">
        <Sprite name="ReactorGraphLine" texture="Content/Items/Reactor/graphLine.png" sourcerect="0,0,32,32" />
      </GraphLine>
      <FissionRateMeter>
        <Sprite name="FissionRateMeter" texture="Content/Items/Reactor/reactor.png" sourcerect="544,770,441,240" origin="0.5,1" />
      </FissionRateMeter>
      <TurbineOutputMeter>
        <Sprite name="TurbineOutputMeter" texture="Content/Items/Reactor/reactor.png" sourcerect="544,770,441,240" origin="0.5,1" />
      </TurbineOutputMeter>
      <MeterPointer>
        <Sprite name="MeterPointer" texture="Content/UI/UIAtlasDevices.png" sourcerect="938,846,31,167 " origin="0.5,0.9" />
      </MeterPointer>
      <SectorSprite>
        <Sprite name="SectorSprite" texture="Content/UI/UIAtlasDevices.png" sourcerect="769,326,238,455" origin="0.95,0.5" />
      </SectorSprite>
      <TempMeterFrame>
        <Sprite name="TempMeterFrame" texture="Content/UI/UIAtlasDevices.png" sourcerect="92,517,59,265" origin="0,0" size="0.5,1" />
      </TempMeterFrame>
      <TempMeterBar>
        <Sprite name="TempMeterBar" texture="Content/UI/UIAtlasDevices.png" sourcerect="270,414,106,47" origin="0.5,0" />
      </TempMeterBar>
      <TempRangeIndicator>
        <Sprite name="TempRangeIndicator" texture="Content/UI/UIAtlasDevices.png" sourcerect="31,614,52,25" origin="0.5,0.5" size="0.6,0.6" />
      </TempRangeIndicator>
      <RequiredSkill identifier="mechanical" level="50" />
      <sound file="%ModDir%/Items/Generator/generator_diesel_medium.ogg" type="OnActive" range="1250.0" volumeproperty="FissionRate" volume="0.02" loop="true" />
      <StatusEffect type="OnBroken" target="This" FissionRate="0.0" disabledeltatime="true">
        <sound file="Content/Items/Weapons/ExplosionLarge2.ogg" range="8000" selectionmode="All" />
        <sound file="Content/Items/Weapons/ExplosionDebris5.ogg" range="8000" />
        <Explosion range="400.0" ballastfloradamage="110" structuredamage="10" itemdamage="200" stun="2" force="20.0" severlimbsprobability="0.6">
          <Affliction identifier="burn" strength="90" />
          <Affliction identifier="explosiondamage" strength="30" />
          <Affliction identifier="lacerations" strength="15" />
        </Explosion>
        <Fire size="300" />
      </StatusEffect>
    </Reactor>
    <LightComponent range="10.0" lightcolor="255,255,255,0" powerconsumption="0" IsOn="false" castshadows="false" allowingameediting="false" flicker="0.3" flickerspeed="0.2">
      <IsActive targetitemcomponent="Reactor" temperature="gt 2" />
      <sprite texture="%ModDir%/Items/Generator/generator_diesel_medium.png" depth="0.025" sourcerect="560,352,144,96" origin="-0.3,-0.22" alpha="1.0" />
    </LightComponent>
    <LightComponent range="10.0" lightcolor="255,100,100,0" powerconsumption="0" IsOn="false" castshadows="false" allowingameediting="false" blinkfrequency="1">
      <IsActive targetitemcomponent="Reactor" temperaturecritical="eq true" />
      <sprite texture="%ModDir%/Items/Generator/generator_diesel_medium.png" depth="0.025" sourcerect="560,352,144,96" origin="-0.3,-0.22" alpha="1.0" />
    </LightComponent>
    <ConnectionPanel selectkey="Action" canbeselected="true" msg="ItemMsgRewireScrewdriver" hudpriority="10">
      <GuiFrame relativesize="0.3,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">
        <Sound file="Content/Sounds/Damage/Electrocution1.ogg" range="1000" />
        <Explosion range="100.0" stun="0" force="5.0" flames="false" shockwave="false" sparks="true" underwaterbubble="false" />
        <Affliction identifier="stun" strength="5" />
        <Affliction identifier="burn" strength="5" />
      </StatusEffect>
      <RequiredItem items="screwdriver" type="Equipped" />
      <output name="power_out" displayname="connection.powerout" />
      <output name="temperature_out" displayname="connection.temperatureout" />
      <input name="shutdown" displayname="connection.shutdown">
        <!-- Manually set state to false because shutdown signal is sometimes unreliable -->
        <StatusEffect type="OnUse" target="This" poweron="false" setvalue="true" />
      </input>
      <output name="meltdown_warning" displayname="connection.meltdownwarning">
        <StatusEffect type="OnUse" target="This">
          <ParticleEmitter particle="smoke" particleburstamount="3" particleburstinterval="0.5" particlespersecond="2" scalemin="1" scalemax="2.5" anglemin="0" anglemax="359" velocitymin="-50" velocitymax="50" mincondition="15.0" maxcondition="50.0" />
          <ParticleEmitter particle="swirlysmoke" particlespersecond="3" scalemin="1" scalemax="2" anglemin="0" anglemax="360" velocitymin="0" velocitymax="10" />
          <sound file="Content/Items/Engine/EngineBroken.ogg" type="OnUse" range="2750.0" loop="true" volume="1.0" />
        </StatusEffect>
      </output>
      <input name="set_fissionrate" displayname="connection.setfissionrate" />
      <input name="set_turbineoutput" displayname="connection.setturbineoutput" />
      <output name="power_value_out" displayname="connection.powervalueout" />
      <output name="load_value_out" displayname="connection.loadvalueout" />
      <output name="fuel_out" displayname="connection.availablefuelout" />
      <output name="condition_out" displayname="connection.conditionout" />
      <output name="fuel_percentage_left" displayname="connection.fuelpercentageout" />
      <!-- Control Additions autotemp="True" -->
      <input name="poweron" displayname="connection.activate">
        <StatusEffect type="OnUse" target="This" poweron="true" setvalue="true" />
      </input>
      <input name="autotemp" displayname="pumpautocontrol">
        <StatusEffect type="OnUse" target="This" autotemp="true" setvalue="true" />
      </input>
    </ConnectionPanel>
    <ItemContainer capacity="1" maxstacksize="1" canbeselected="true" hudpos="0.5,0.15" slotsperrow="1" uilabel="FuelRods">
      <Containable items="ekdockyard_generatorfuel,generatorfuel">
        <StatusEffect type="OnContaining" target="This" AvailableFuel="100.0" disabledeltatime="true" />
      </Containable>
      <!--
	  <Containable items="ekdockyard_generatorfuel">
        <StatusEffect type="OnContaining" target="This" AvailableFuel="100.0" disabledeltatime="true" />
      </Containable>
	  -->
    </ItemContainer>
    <Repairable selectkey="Action" header="mechanicalrepairsheader" deteriorationspeed="0.125" mindeteriorationdelay="120" maxdeteriorationdelay="720" MinDeteriorationCondition="10" minsabotagecondition="10" RepairThreshold="80" fixDurationHighSkill="10" fixDurationLowSkill="25" msg="ItemMsgRepairWrench" hudpriority="10">
      <GuiFrame relativesize="0.2,0.16" minsize="400,180" maxsize="480,216" anchor="Center" relativeoffset="0.0,0.27" style="ItemUI" />
      <RequiredSkill identifier="mechanical" level="55" />
      <RequiredItem items="wrench" type="equipped" />
      <ParticleEmitter particle="damagebubbles" particleburstamount="2" particleburstinterval="2.0" particlespersecond="2" scalemin="0.5" scalemax="1.5" anglemin="0" anglemax="359" velocitymin="-10" velocitymax="10" mincondition="0.0" maxcondition="50.0" />
      <ParticleEmitter particle="smoke" particleburstamount="3" particleburstinterval="0.5" particlespersecond="2" scalemin="1" scalemax="2.5" anglemin="0" anglemax="359" velocitymin="-50" velocitymax="50" mincondition="15.0" maxcondition="50.0" />
      <ParticleEmitter particle="heavysmoke" particleburstinterval="0.25" particlespersecond="2" scalemin="2.5" scalemax="5.0" mincondition="0.0" maxcondition="15.0" />
      <StatusEffect type="OnFailure" target="Character" targetlimbs="LeftHand,RightHand">
        <Sound file="Content/Items/MechanicalRepairFail.ogg" range="1000" />
        <Affliction identifier="lacerations" strength="5" />
        <Affliction identifier="stun" strength="5" />
      </StatusEffect>
    </Repairable>
  </Item>
  <Item name="Diesel Generator (Small)" identifier="ekdockyard_generatordiesel_small" tags="generator,ek_dieselgenerator" type="Reactor" scale="0.5" linkable="true" category="Machine" damagedbyexplosions="true" explosiondamagemultiplier="0.2">
    <trigger x="48" y="-32" width="256" height="224" />
    <Sprite texture="%ModDir%/Items/Generator/generator_diesel_medium.png" sourcerect="0,704,352,288" origin="0.5,0.45" depth="0.8" />
    <UpgradePreviewSprite scale="3.0" texture="Content/UI/WeaponUI.png" sourcerect="0,960,64,64" origin="0.5,0.45" />
    <BrokenSprite texture="%ModDir%/Items/Generator/generator_diesel_medium.png" sourcerect="352,704,352,288" depth="0.8" origin="0.5,0.45" maxcondition="90" mincondition="60" fadein="true" />
    <BrokenSprite texture="%ModDir%/Items/Generator/generator_diesel_medium.png" sourcerect="352,704,352,288" depth="0.8" origin="0.5,0.45" maxcondition="60" />
    <BrokenSprite texture="%ModDir%/Items/Generator/generator_diesel_medium.png" sourcerect="704,704,352,288" depth="0.8" origin="0.5,0.45" maxcondition="1" />
    <aitarget sightrange="500" soundrange="5000" />
    <Reactor canbeselected="true" firedelay="20" meltdowndelay="60" maxpoweroutput="3000" fuelconsumptionrate="0.2" vulnerabletoemp="false" msg="ItemMsgInteractSelect">
      <StatusEffect type="InWater" target="This" condition="-2">
        <Conditional temperature="gt 2" />
      </StatusEffect>
      <GuiFrame relativesize="0.5,0.45" minsize="700,350" maxsize="2688,1166" anchor="Center" relativeoffset="0.1,0" style="ItemUI" />
      <GraphLine texture="Content/Items/Reactor/graphLine.png">
        <Sprite name="ReactorGraphLine" texture="Content/Items/Reactor/graphLine.png" sourcerect="0,0,32,32" />
      </GraphLine>
      <FissionRateMeter>
        <Sprite name="FissionRateMeter" texture="Content/Items/Reactor/reactor.png" sourcerect="544,770,441,240" origin="0.5,1" />
      </FissionRateMeter>
      <TurbineOutputMeter>
        <Sprite name="TurbineOutputMeter" texture="Content/Items/Reactor/reactor.png" sourcerect="544,770,441,240" origin="0.5,1" />
      </TurbineOutputMeter>
      <MeterPointer>
        <Sprite name="MeterPointer" texture="Content/UI/UIAtlasDevices.png" sourcerect="938,846,31,167 " origin="0.5,0.9" />
      </MeterPointer>
      <SectorSprite>
        <Sprite name="SectorSprite" texture="Content/UI/UIAtlasDevices.png" sourcerect="769,326,238,455" origin="0.95,0.5" />
      </SectorSprite>
      <TempMeterFrame>
        <Sprite name="TempMeterFrame" texture="Content/UI/UIAtlasDevices.png" sourcerect="92,517,59,265" origin="0,0" size="0.5,1" />
      </TempMeterFrame>
      <TempMeterBar>
        <Sprite name="TempMeterBar" texture="Content/UI/UIAtlasDevices.png" sourcerect="270,414,106,47" origin="0.5,0" />
      </TempMeterBar>
      <TempRangeIndicator>
        <Sprite name="TempRangeIndicator" texture="Content/UI/UIAtlasDevices.png" sourcerect="31,614,52,25" origin="0.5,0.5" size="0.6,0.6" />
      </TempRangeIndicator>
      <RequiredSkill identifier="mechanical" level="50" />
      <sound file="%ModDir%/Items/Generator/generator_diesel_small_mono.ogg" type="OnActive" range="750.0" volumeproperty="FissionRate" volume="0.02" loop="true" />
      <StatusEffect type="OnBroken" target="This" FissionRate="0.0" disabledeltatime="true">
        <sound file="Content/Items/Weapons/ExplosionLarge2.ogg" range="8000" selectionmode="All" />
        <sound file="Content/Items/Weapons/ExplosionDebris5.ogg" range="8000" />
        <Explosion range="300.0" ballastfloradamage="110" structuredamage="5" itemdamage="140" stun="2" force="15.0" severlimbsprobability="0.6">
          <Affliction identifier="burn" strength="75" />
          <Affliction identifier="explosiondamage" strength="20" />
          <Affliction identifier="lacerations" strength="8" />
        </Explosion>
        <Fire size="150" />
      </StatusEffect>
    </Reactor>
    <ConnectionPanel selectkey="Action" canbeselected="true" msg="ItemMsgRewireScrewdriver" hudpriority="10">
      <GuiFrame relativesize="0.3,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">
        <Sound file="Content/Sounds/Damage/Electrocution1.ogg" range="1000" />
        <Explosion range="100.0" stun="0" force="5.0" flames="false" shockwave="false" sparks="true" underwaterbubble="false" />
        <Affliction identifier="stun" strength="5" />
        <Affliction identifier="burn" strength="5" />
      </StatusEffect>
      <RequiredItem items="screwdriver" type="Equipped" />
      <output name="power_out" displayname="connection.powerout" />
      <output name="temperature_out" displayname="connection.temperatureout" />
      <input name="shutdown" displayname="connection.shutdown">
        <!-- Manually set state to false because shutdown signal is sometimes unreliable -->
        <StatusEffect type="OnUse" target="This" poweron="false" setvalue="true" />
      </input>
      <output name="meltdown_warning" displayname="connection.meltdownwarning">
        <StatusEffect type="OnUse" target="This">
          <ParticleEmitter particle="smoke" particleburstamount="3" particleburstinterval="0.5" particlespersecond="2" scalemin="1" scalemax="2.5" anglemin="0" anglemax="359" velocitymin="-50" velocitymax="50" mincondition="15.0" maxcondition="50.0" />
          <ParticleEmitter particle="swirlysmoke" particlespersecond="3" scalemin="1" scalemax="2" anglemin="0" anglemax="360" velocitymin="0" velocitymax="10" />
          <sound file="Content/Items/Engine/EngineBroken.ogg" type="OnUse" range="2250.0" loop="true" volume="1.0" />
        </StatusEffect>
      </output>
      <input name="set_fissionrate" displayname="connection.setfissionrate" />
      <input name="set_turbineoutput" displayname="connection.setturbineoutput" />
      <output name="power_value_out" displayname="connection.powervalueout" />
      <output name="load_value_out" displayname="connection.loadvalueout" />
      <output name="fuel_out" displayname="connection.availablefuelout" />
      <output name="condition_out" displayname="connection.conditionout" />
      <output name="fuel_percentage_left" displayname="connection.fuelpercentageout" />
      <!-- Control Additions autotemp="True" -->
      <input name="poweron" displayname="connection.activate">
        <StatusEffect type="OnUse" target="This" poweron="true" setvalue="true" />
      </input>
      <input name="autotemp" displayname="pumpautocontrol">
        <StatusEffect type="OnUse" target="This" autotemp="true" setvalue="true" />
      </input>
    </ConnectionPanel>
    <ItemContainer capacity="1" maxstacksize="1" canbeselected="true" hudpos="0.5,0.15" slotsperrow="1" uilabel="FuelRods">
      <Containable items="ekdockyard_generatorfuel,generatorfuel">
        <StatusEffect type="OnContaining" target="This" AvailableFuel="100.0" disabledeltatime="true" />
      </Containable>
      <!--
	  <Containable items="ekdockyard_generatorfuel">
        <StatusEffect type="OnContaining" target="This" AvailableFuel="100.0" disabledeltatime="true" />
      </Containable>
	  -->
    </ItemContainer>
    <Repairable selectkey="Action" header="mechanicalrepairsheader" deteriorationspeed="0.125" mindeteriorationdelay="120" maxdeteriorationdelay="720" MinDeteriorationCondition="10" minsabotagecondition="10" RepairThreshold="80" fixDurationHighSkill="5" fixDurationLowSkill="15" msg="ItemMsgRepairWrench" hudpriority="10">
      <GuiFrame relativesize="0.2,0.16" minsize="400,180" maxsize="480,216" anchor="Center" relativeoffset="0.0,0.27" style="ItemUI" />
      <RequiredSkill identifier="mechanical" level="55" />
      <RequiredItem items="wrench" type="equipped" />
      <ParticleEmitter particle="damagebubbles" particleburstamount="2" particleburstinterval="2.0" particlespersecond="2" scalemin="0.5" scalemax="1.5" anglemin="0" anglemax="359" velocitymin="-10" velocitymax="10" mincondition="0.0" maxcondition="50.0" />
      <ParticleEmitter particle="smoke" particleburstamount="3" particleburstinterval="0.5" particlespersecond="2" scalemin="1" scalemax="2.5" anglemin="0" anglemax="359" velocitymin="-50" velocitymax="50" mincondition="15.0" maxcondition="50.0" />
      <ParticleEmitter particle="heavysmoke" particleburstinterval="0.25" particlespersecond="2" scalemin="2.5" scalemax="5.0" mincondition="0.0" maxcondition="15.0" />
      <StatusEffect type="OnFailure" target="Character" targetlimbs="LeftHand,RightHand">
        <Sound file="Content/Items/MechanicalRepairFail.ogg" range="1000" />
        <Affliction identifier="lacerations" strength="5" />
        <Affliction identifier="stun" strength="5" />
      </StatusEffect>
    </Repairable>
  </Item>
  <Item name="Fusion Fuel (Tritium Deuterium)" identifier="ekdockyard_fusionfuel_tritiumdeuterium" Tags="smallitem,fusionfuel,reactorfuel,fusionfuellevel2" category="Fuel" maxstacksize="4" cargocontaineridentifier="metalcrate" health="100" scale="0.5" description="Conventional fusile material which predates the colonies. However due to the immense colony resource demands, production of viable tritium deuterium fuel on industrial scale is still very costly.">
    <PreferredContainer primary="reactorcab,storagecab" />
    <PreferredContainer primary="wreckreactorcab" minamount="0" maxamount="1" spawnprobability="0.05" />
    <Price baseprice="275" soldeverywhere="false">
      <!-- 170 -->
      <Price storeidentifier="merchantoutpost" multiplier="1.2" sold="false" />
      <Price storeidentifier="merchantcity" multiplier="1.15" minavailable="2" />
      <Price storeidentifier="merchantresearch" multiplier="1" sold="false" />
      <Price storeidentifier="merchantmilitary" multiplier="1.3" minavailable="2" />
      <Price storeidentifier="merchantmine" multiplier="0.9" sold="false" />
    </Price>
    <!--
	42
	75
	44
	-->
    <Deconstruct time="10">
      <Item identifier="aluminium" />
    </Deconstruct>
    <Fabricate suitablefabricators="fabricator" requiredtime="60" amount="2">
      <RequiredSkill identifier="medical" level="30" />
      <RequiredSkill identifier="electrical" level="40" />
      <RequiredItem identifier="aluminium" />
      <RequiredItem identifier="aluminium" />
      <RequiredItem identifier="fuelrod" mincondition="0.9" />
      <RequiredItem identifier="lithium" mincondition="0.9" usecondition="false" />
    </Fabricate>
    <Fabricate suitablefabricators="fabricator" requiredtime="60" amount="3">
      <RequiredSkill identifier="medical" level="30" />
      <RequiredSkill identifier="electrical" level="40" />
      <RequiredItem identifier="aluminium" />
      <RequiredItem identifier="aluminium" />
      <RequiredItem identifier="aluminium" />
      <RequiredItem identifier="thoriumfuelrod" mincondition="0.9" />
      <RequiredItem identifier="lithium" mincondition="0.9" usecondition="false" />
    </Fabricate>
    <InventoryIcon texture="%ModDir%/Items/Generator/fuel_items.png" sourcerect="160,0,64,64" origin="0.5,0.5" />
    <Sprite texture="%ModDir%/Items/Generator/fuel_items.png" depth="0.55" sourcerect="88,128,88,120" />
    <BrokenSprite texture="%ModDir%/Items/Generator/fuel_items.png" depth="0.55" sourcerect="0,128,88,120" origin="0.5,0.5" maxcondition="0" />
    <Body width="72" height="108" density="15" />
    <Holdable handle1="0,0" slots="Any,RightHand,LeftHand" msg="ItemMsgPickUpSelect" removeOnCombined="true">
      <!--
	  <StatusEffect type="OnBroken" target="This">
        <Remove />
      </StatusEffect>
	  -->
    </Holdable>
  </Item>
  <Item name="Fusion Fuel (Oxygenite)" identifier="ekdockyard_fusionfuel_oxygenite" Tags="smallitem,fusionfuel,reactorfuel,fusionfuellevel1" category="Fuel" maxstacksize="4" cargocontaineridentifier="metalcrate" health="100" scale="0.5" description="A mixture of pressurized oxygenite vapor and lithium dust. The process takes advantage of oxygenite's unique metaphysical properties, producing an easy-fusing fuel but relatively low effective output.">
    <PreferredContainer primary="reactorcab,storagecab" />
    <Price baseprice="225" soldeverywhere="false">
      <!-- 145 -->
      <Price storeidentifier="merchantoutpost" multiplier="1.2" sold="false" />
      <Price storeidentifier="merchantcity" multiplier="1.15" sold="false" />
      <Price storeidentifier="merchantresearch" multiplier="1" minavailable="2" />
      <Price storeidentifier="merchantmilitary" multiplier="1.3" sold="false" />
      <Price storeidentifier="merchantmine" multiplier="0.9" sold="false" />
    </Price>
    <!--
	42
	80
	22
	-->
    <Deconstruct time="10">
      <Item identifier="aluminium" />
    </Deconstruct>
    <Fabricate suitablefabricators="fabricator" requiredtime="15">
      <RequiredSkill identifier="medical" level="50" />
      <RequiredItem identifier="aluminium" />
      <RequiredItem identifier="liquidoxygenite" mincondition="0.9" />
      <RequiredItem identifier="lithium" mincondition="0.5" usecondition="true" />
    </Fabricate>
    <Fabricate suitablefabricators="fabricator" requiredtime="30" amount="2">
      <RequiredSkill identifier="medical" level="50" />
      <RequiredItem identifier="aluminium" />
      <RequiredItem identifier="aluminium" />
      <RequiredItem identifier="liquidoxygenite" mincondition="0.9" />
      <RequiredItem identifier="liquidoxygenite" mincondition="0.9" />
      <RequiredItem identifier="lithium" mincondition="0.9" usecondition="false" />
    </Fabricate>
    <InventoryIcon texture="%ModDir%/Items/Generator/fuel_items.png" sourcerect="224,0,64,64" origin="0.5,0.5" />
    <Sprite texture="%ModDir%/Items/Generator/fuel_items.png" depth="0.55" sourcerect="176,128,88,120" />
    <BrokenSprite texture="%ModDir%/Items/Generator/fuel_items.png" depth="0.55" sourcerect="0,128,88,120" origin="0.5,0.5" maxcondition="0" />
    <Body width="72" height="108" density="15" />
    <Holdable handle1="0,0" slots="Any,RightHand,LeftHand" msg="ItemMsgPickUpSelect" removeOnCombined="true">
      <!--
	  <StatusEffect type="OnBroken" target="This">
        <Remove />
      </StatusEffect>
	  -->
    </Holdable>
  </Item>
  <Item name="Fusion Fuel (Helium-3)" identifier="ekdockyard_fusionfuel_helium3" Tags="smallitem,fusionfuel,reactorfuel,fusionfuellevel1" category="Fuel" maxstacksize="4" cargocontaineridentifier="metalcrate" health="100" scale="0.5" description="A naturally occuring but thinly scattered fusile material. Sometimes found in large veins with other radioactive minerals or within' icy asteroids, making it a relatively easy fuel source to come by - until recently.">
    <PreferredContainer primary="reactorcab,storagecab" />
    <Price baseprice="220" soldeverywhere="false">
      <!-- 142 -->
      <Price storeidentifier="merchantoutpost" multiplier="1.2" minavailable="2" />
      <Price storeidentifier="merchantcity" multiplier="1.15" minavailable="2" />
      <Price storeidentifier="merchantresearch" multiplier="1" sold="false" />
      <Price storeidentifier="merchantmilitary" multiplier="1.3" minavailable="2" />
      <Price storeidentifier="merchantmine" multiplier="0.9" minavailable="2" />
    </Price>
    <!--
	42
	100
	-->
    <Deconstruct time="10">
      <Item identifier="aluminium" />
    </Deconstruct>
    <Fabricate suitablefabricators="fabricator" requiredtime="15">
      <RequiredSkill identifier="electrical" level="40" />
      <RequiredItem identifier="aluminium" />
      <RequiredItem identifier="uraniumore" />
    </Fabricate>
    <Fabricate suitablefabricators="fabricator" requiredtime="30" amount="2">
      <RequiredSkill identifier="electrical" level="40" />
      <RequiredItem identifier="aluminium" />
      <RequiredItem identifier="aluminium" />
      <RequiredItem identifier="uraniumore" />
      <RequiredItem identifier="uraniumore" />
    </Fabricate>
    <Fabricate suitablefabricators="fabricator" requiredtime="30" amount="3">
      <RequiredSkill identifier="electrical" level="40" />
      <RequiredItem identifier="aluminium" />
      <RequiredItem identifier="aluminium" />
      <RequiredItem identifier="thorianite" />
    </Fabricate>
    <InventoryIcon texture="%ModDir%/Items/Generator/fuel_items.png" sourcerect="288,0,64,64" origin="0.5,0.5" />
    <Sprite texture="%ModDir%/Items/Generator/fuel_items.png" depth="0.55" sourcerect="264,128,88,120" />
    <BrokenSprite texture="%ModDir%/Items/Generator/fuel_items.png" depth="0.55" sourcerect="0,128,88,120" origin="0.5,0.5" maxcondition="0" />
    <Body width="72" height="108" density="15" />
    <Holdable handle1="0,0" slots="Any,RightHand,LeftHand" msg="ItemMsgPickUpSelect" removeOnCombined="true">
      <!--
	  <StatusEffect type="OnBroken" target="This">
        <Remove />
      </StatusEffect>
	  -->
    </Holdable>
  </Item>
  <Item name="Fusion Fuel (Alien Cell)" identifier="ekdockyard_fusionfuel_aliencell" Tags="smallitem,fusionfuel,reactorfuel,fusionfuellevel3" category="Fuel" maxstacksize="4" cargocontaineridentifier="metalcrate" health="100" scale="0.5" description="Experimental fusile matter supply powered by an alien cell. Capable of producing a very energetic reaction, however its exact function is not well understood.">
    <PreferredContainer primary="reactorcab,storagecab" />
    <Price baseprice="280" soldeverywhere="false">
      <!-- 175 -->
      <Price storeidentifier="merchantoutpost" multiplier="1.2" sold="false" />
      <Price storeidentifier="merchantcity" multiplier="1.15" sold="false" />
      <Price storeidentifier="merchantresearch" multiplier="1" sold="false" />
      <Price storeidentifier="merchantmilitary" multiplier="1.3" sold="false" />
      <Price storeidentifier="merchantmine" multiplier="0.9" sold="false" />
    </Price>
    <!--
	42
	75
	62.5
	-->
    <Deconstruct time="10">
      <Item identifier="aluminium" />
    </Deconstruct>
    <Fabricate suitablefabricators="fabricator" requiredtime="30" amount="2">
      <RequiredSkill identifier="electrical" level="50" />
      <RequiredItem identifier="aluminium" />
      <RequiredItem identifier="aluminium" />
      <RequiredItem identifier="alienpowercell" mincondition="0.9" usecondition="false" />
      <RequiredItem identifier="thorium" mincondition="0.9" usecondition="false" />
    </Fabricate>
    <InventoryIcon texture="%ModDir%/Items/Generator/fuel_items.png" sourcerect="352,0,64,64" origin="0.5,0.5" />
    <Sprite texture="%ModDir%/Items/Generator/fuel_items.png" depth="0.55" sourcerect="88,248,88,120" />
    <BrokenSprite texture="%ModDir%/Items/Generator/fuel_items.png" depth="0.55" sourcerect="0,248,88,120" origin="0.5,0.5" maxcondition="0" />
    <Body width="72" height="108" density="15" />
    <LightComponent AllowInGameEditing="false" lightcolor="112,146,190,50" canbeselected="false" range="60.0" IsOn="true" castshadows="false" />
    <Holdable handle1="0,0" slots="Any,RightHand,LeftHand" msg="ItemMsgPickUpSelect" removeOnCombined="true">
      <!--
	  <StatusEffect type="OnBroken" target="This">
        <Remove />
      </StatusEffect>
	  -->
    </Holdable>
  </Item>
  <Item name="ekdockyard_fusionsmall_aftereffectemitter" identifier="ekdockyard_fusionsmall_aftereffectemitter" Scale="0.5" tags="" sonarsize="20" hideinmenus="true">
    <Sprite texture="%ModDir%/Items/Generator/reactor_fusion_small.png" sourcerect="0,0,2,2" depth="0.55" origin="0.5,0.5" />
    <ItemComponent>
      <StatusEffect type="Always" target="This" Condition="-100.0" disabledeltatime="true" stackable="false">
        <Explosion range="1750" structuredamage="0" force="2" camerashake="200" empstrength="1.25" flames="false" underwaterbubble="false" applyfireeffects="false" ignorecover="true">
          <Affliction identifier="radiationsickness" strength="50" />
          <Affliction identifier="stun" strength="1" />
        </Explosion>
      </StatusEffect>
      <StatusEffect type="OnBroken" target="This">
        <Remove />
      </StatusEffect>
    </ItemComponent>
  </Item>
  <Item name="ekdockyard_fusionmedium_aftereffectemitter" identifier="ekdockyard_fusionmedium_aftereffectemitter" Scale="0.5" tags="" sonarsize="20" hideinmenus="true">
    <Sprite texture="%ModDir%/Items/Generator/reactor_fusion_medium.png" sourcerect="0,0,2,2" depth="0.55" origin="0.5,0.5" />
    <ItemComponent>
      <StatusEffect type="Always" target="This" Condition="-100.0" disabledeltatime="true" stackable="false">
        <Explosion range="2250" structuredamage="0" force="2" camerashake="200" empstrength="1.25" flames="false" underwaterbubble="false" applyfireeffects="false" ignorecover="true">
          <Affliction identifier="radiationsickness" strength="70" />
          <Affliction identifier="stun" strength="1.5" />
        </Explosion>
      </StatusEffect>
      <StatusEffect type="OnBroken" target="This">
        <Remove />
      </StatusEffect>
    </ItemComponent>
  </Item>
  <Item name="ekdockyard_fusionlarge_aftereffectemitter" identifier="ekdockyard_fusionlarge_aftereffectemitter" Scale="0.5" tags="" sonarsize="20" hideinmenus="true">
    <Sprite texture="%ModDir%/Items/Generator/reactor_fusion_medium.png" sourcerect="0,0,2,2" depth="0.55" origin="0.5,0.5" />
    <ItemComponent>
      <StatusEffect type="Always" target="This" Condition="-100.0" disabledeltatime="true" stackable="false">
        <Explosion range="2750" structuredamage="0" force="2" camerashake="200" empstrength="1.25" flames="false" underwaterbubble="false" applyfireeffects="false" ignorecover="true">
          <Affliction identifier="radiationsickness" strength="90" />
          <Affliction identifier="stun" strength="2.0" />
        </Explosion>
      </StatusEffect>
      <StatusEffect type="OnBroken" target="This">
        <Remove />
      </StatusEffect>
    </ItemComponent>
  </Item>
  <Item name="Fusion Reactor (Small)" identifier="ekdockyard_reactorfusion_small" tags="reactor" type="Reactor" scale="0.5" description="Miniaturized magnetic-confinement fusion reactor utilizing a spherical Tokamak configuration. Capable of using a wide variety of fuel mixtures." linkable="true" category="Machine" damagedbyexplosions="true" explosiondamagemultiplier="0.2">
    <trigger />
    <Sprite texture="%ModDir%/Items/Generator/reactor_fusion_small.png" sourcerect="0,0,320,352" origin="0.5,0.48" depth="0.8" />
    <UpgradePreviewSprite scale="3.0" texture="Content/UI/WeaponUI.png" sourcerect="0,960,64,64" origin="0.5,0.45" />
    <BrokenSprite texture="%ModDir%/Items/Generator/reactor_fusion_small.png" sourcerect="320,0,320,352" depth="0.8" origin="0.5,0.48" maxcondition="90" mincondition="0" fadein="true" />
    <BrokenSprite texture="%ModDir%/Items/Generator/reactor_fusion_small.png" sourcerect="320,352,320,352" depth="0.8" origin="0.5,0.48" maxcondition="0" />
    <DecorativeSprite texture="%ModDir%/Items/Generator/reactor_fusion_small.png" sourcerect="0,352,208,208" depth="0.82" origin="0.5,0.55" />
    <aitarget sightrange="500" soundrange="5000" />
    <Reactor canbeselected="true" firedelay="10" meltdowndelay="9" maxpoweroutput="6000" fuelconsumptionrate="0.1" vulnerabletoemp="false" msg="ItemMsgInteractSelect">
      <StatusEffect type="InWater" target="This" condition="-0.5" comparison="and">
        <Conditional condition="gt 10" />
        <Conditional temperature="gt 2" />
      </StatusEffect>
      <GuiFrame relativesize="0.5,0.45" minsize="700,350" maxsize="2688,1166" anchor="Center" relativeoffset="0.1,0" style="ItemUI" />
      <GraphLine texture="Content/Items/Reactor/graphLine.png">
        <Sprite name="ReactorGraphLine" texture="Content/Items/Reactor/graphLine.png" sourcerect="0,0,32,32" />
      </GraphLine>
      <FissionRateMeter>
        <Sprite name="FissionRateMeter" texture="Content/Items/Reactor/reactor.png" sourcerect="544,770,441,240" origin="0.5,1" />
      </FissionRateMeter>
      <TurbineOutputMeter>
        <Sprite name="TurbineOutputMeter" texture="Content/Items/Reactor/reactor.png" sourcerect="544,770,441,240" origin="0.5,1" />
      </TurbineOutputMeter>
      <MeterPointer>
        <Sprite name="MeterPointer" texture="Content/UI/UIAtlasDevices.png" sourcerect="938,846,31,167 " origin="0.5,0.9" />
      </MeterPointer>
      <SectorSprite>
        <Sprite name="SectorSprite" texture="Content/UI/UIAtlasDevices.png" sourcerect="769,326,238,455" origin="0.95,0.5" />
      </SectorSprite>
      <TempMeterFrame>
        <Sprite name="TempMeterFrame" texture="Content/UI/UIAtlasDevices.png" sourcerect="92,517,59,265" origin="0,0" size="0.5,1" />
      </TempMeterFrame>
      <TempMeterBar>
        <Sprite name="TempMeterBar" texture="Content/UI/UIAtlasDevices.png" sourcerect="270,414,106,47" origin="0.5,0" />
      </TempMeterBar>
      <TempRangeIndicator>
        <Sprite name="TempRangeIndicator" texture="Content/UI/UIAtlasDevices.png" sourcerect="31,614,52,25" origin="0.5,0.5" size="0.6,0.6" />
      </TempRangeIndicator>
      <RequiredSkill identifier="electrical" level="50" />
      <sound file="%ModDir%/Items/Generator/reactor_fusion_small.ogg" type="OnActive" range="2000.0" volumeproperty="FissionRate" volume="0.04" loop="true" />
      <StatusEffect type="OnBroken" target="This" FissionRate="0.0" disabledeltatime="true">
        <Conditional temperature="gt 2" />
        <sound file="Content/Items/Weapons/ExplosionLarge2.ogg" range="6000" selectionmode="All" />
        <sound file="Content/Items/Weapons/ExplosionDebris5.ogg" range="4000" />
        <sound file="Content/Items/Weapons/Emp.ogg" range="10000" />
        <Explosion range="400" structuredamage="30" itemdamage="130" force="5.0" camerashake="200" flashrange="5000" flashduration="1.0" screencolor="225,200,255,255" screencolorrange="5000" screencolorduration="3.0" flames="false" underwaterbubble="false">
          <Affliction identifier="burn" strength="125" />
          <Affliction identifier="explosiondamage" strength="75" />
          <Affliction identifier="stun" strength="5" />
        </Explosion>
        <SpawnItem identifier="ekdockyard_fusionsmall_aftereffectemitter" spawnposition="This" />
      </StatusEffect>
    </Reactor>
    <LightComponent range="10.0" lightcolor="255,255,255,0" powerconsumption="0" IsOn="false" castshadows="false" allowingameediting="false" flicker="0.3" flickerspeed="0.2">
      <IsActive targetitemcomponent="Reactor" temperature="gt 2" />
      <sprite texture="%ModDir%/Items/Generator/reactor_fusion_small.png" depth="0.025" sourcerect="229,357,86,70" origin="0.5,1.47" alpha="1.0" />
    </LightComponent>
    <LightComponent range="10.0" lightcolor="130,200,255,0" powerconsumption="0" IsOn="false" castshadows="false" allowingameediting="false" flicker="0.3" flickerspeed="0.8">
      <IsActive targetitemcomponent="Reactor" temperature="gt 2" />
      <sprite texture="%ModDir%/Items/Generator/reactor_fusion_small.png" depth="0.025" sourcerect="0,577,320,126" origin="0.5,0.564" alpha="1.0" />
    </LightComponent>
    <LightComponent range="125.0" lightcolor="255,25,0,150" powerconsumption="0" IsOn="false" castshadows="false" allowingameediting="false" blinkfrequency="4">
      <IsActive targetitemcomponent="Reactor" temperaturecritical="eq true" />
      <sprite texture="%ModDir%/Items/Generator/reactor_fusion_small.png" depth="0.025" sourcerect="229,357,86,70" origin="0.5,1.47" alpha="1.0" />
    </LightComponent>
    <ConnectionPanel selectkey="Action" canbeselected="true" msg="ItemMsgRewireScrewdriver" hudpriority="10">
      <GuiFrame relativesize="0.3,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">
        <Sound file="Content/Sounds/Damage/Electrocution1.ogg" range="1000" />
        <Explosion range="100.0" stun="0" force="5.0" flames="false" shockwave="false" sparks="true" underwaterbubble="false" />
        <Affliction identifier="stun" strength="5" />
        <Affliction identifier="burn" strength="5" />
      </StatusEffect>
      <RequiredItem items="screwdriver" type="Equipped" />
      <output name="power_out" displayname="connection.powerout" maxwires="1" />
      <output name="temperature_out" displayname="connection.temperatureout" />
      <input name="shutdown" displayname="connection.shutdown">
        <!-- Manually set state to false because shutdown signal is sometimes unreliable -->
        <StatusEffect type="OnUse" target="This" poweron="false" setvalue="true" />
      </input>
      <output name="meltdown_warning" displayname="connection.meltdownwarning">
        <StatusEffect type="OnUse" target="This">
          <ParticleEmitter particle="smoke" particleburstamount="2" particleburstinterval="0.5" particlespersecond="2" scalemin="1" scalemax="2.5" anglemin="0" anglemax="359" velocitymin="-50" velocitymax="50" mincondition="15.0" maxcondition="50.0" />
          <ParticleEmitter particle="swirlysmoke" particlespersecond="2" scalemin="1" scalemax="2" anglemin="0" anglemax="360" velocitymin="0" velocitymax="10" />
          <ParticleEmitter particle="ekdockyard_reactorfusion_meltdownarcs" particlespersecond="1.5" scalemin="1" scalemax="1.5" distancemin="0" distancemax="50" anglemin="0" anglemax="360" velocitymin="0" velocitymax="100" />
          <ParticleEmitter particle="ekdockyard_reactorfusion_meltdownarcs" particlespersecond="1" scalemin="1" scalemax="1.5" distancemin="0" distancemax="50" anglemin="0" anglemax="360" velocitymin="0" velocitymax="100" />
          <ParticleEmitter particle="plasmaspark" emitinterval="1" particleamount="5" scalemin="1" scalemax="1.5" anglemin="0" anglemax="360" velocitymin="200" velocitymax="800" colormultiplier="255,150,225,255" />
          <sound file="Content/Items/Reactor/ReactorOverheatAlarm.ogg" type="OnUse" range="10000.0" loop="true" volume="1.0" />
        </StatusEffect>
      </output>
      <input name="set_fissionrate" displayname="connection.setfissionrate" />
      <input name="set_turbineoutput" displayname="connection.setturbineoutput" />
      <output name="power_value_out" displayname="connection.powervalueout" />
      <output name="load_value_out" displayname="connection.loadvalueout" />
      <output name="fuel_out" displayname="connection.availablefuelout" />
      <output name="condition_out" displayname="connection.conditionout" />
      <output name="fuel_percentage_left" displayname="connection.fuelpercentageout" />
      <!-- Control Additions autotemp="True" -->
      <input name="poweron" displayname="connection.activate">
        <StatusEffect type="OnUse" target="This" poweron="true" setvalue="true" />
      </input>
      <input name="autotemp" displayname="pumpautocontrol">
        <StatusEffect type="OnUse" target="This" autotemp="true" setvalue="true" />
      </input>
    </ConnectionPanel>
    <ItemContainer capacity="1" maxstacksize="1" canbeselected="true" hudpos="0.5,0.15" slotsperrow="1" uilabel="FuelRods">
      <Containable items="fusionfuellevel1">
        <StatusEffect type="OnContaining" target="This" AvailableFuel="75" disabledeltatime="true" />
      </Containable>
      <Containable items="fusionfuellevel2">
        <StatusEffect type="OnContaining" target="This" AvailableFuel="110" disabledeltatime="true" />
      </Containable>
      <Containable items="fusionfuellevel3">
        <StatusEffect type="OnContaining" target="This" AvailableFuel="160" disabledeltatime="true" />
      </Containable>
    </ItemContainer>
    <Repairable selectkey="Action" header="electricalrepairsheader" deteriorationspeed="0.08" mindeteriorationdelay="240" maxdeteriorationdelay="720" MinDeteriorationCondition="10" minsabotagecondition="10" RepairThreshold="50" fixDurationHighSkill="15" fixDurationLowSkill="45" msg="ItemMsgRepairWrench" hudpriority="10">
      <GuiFrame relativesize="0.2,0.16" minsize="400,180" maxsize="480,216" anchor="Center" relativeoffset="0.0,0.27" style="ItemUI" />
      <RequiredSkill identifier="electrical" level="55" />
      <RequiredItem items="screwdriver" type="equipped" />
      <ParticleEmitter particle="damagebubbles" particleburstamount="2" particleburstinterval="2.0" particlespersecond="2" scalemin="0.5" scalemax="1.5" anglemin="0" anglemax="359" velocitymin="-10" velocitymax="10" mincondition="0.0" maxcondition="50.0" />
      <ParticleEmitter particle="smoke" particleburstamount="3" particleburstinterval="0.5" particlespersecond="2" scalemin="1" scalemax="2.5" anglemin="0" anglemax="359" velocitymin="-50" velocitymax="50" mincondition="15.0" maxcondition="50.0" />
      <ParticleEmitter particle="heavysmoke" particleburstinterval="0.25" particlespersecond="2" scalemin="2.5" scalemax="5.0" mincondition="0.0" maxcondition="15.0" />
      <StatusEffect type="OnFailure" target="Character" targetlimbs="LeftHand,RightHand">
        <Sound file="Content/Sounds/Damage/Electrocution1.ogg" range="1000" />
        <Affliction identifier="stun" strength="4" />
        <Affliction identifier="burn" strength="5" />
      </StatusEffect>
    </Repairable>
  </Item>
  <Item name="Fusion Reactor (Medium)" identifier="ekdockyard_reactorfusion_medium" tags="reactor" type="Reactor" scale="0.5" description="Compact Stellarator fusion reactor which circulates particles along a twisting path for improved stability. Capable of using a wide variety of fuel mixtures." linkable="true" category="Machine" damagedbyexplosions="true" explosiondamagemultiplier="0.2">
    <trigger />
    <Sprite texture="%ModDir%/Items/Generator/reactor_fusion_medium.png" sourcerect="0,0,512,368" origin="0.5,0.5" depth="0.8" />
    <UpgradePreviewSprite scale="3.0" texture="Content/UI/WeaponUI.png" sourcerect="0,960,64,64" origin="0.5,0.45" />
    <BrokenSprite texture="%ModDir%/Items/Generator/reactor_fusion_medium.png" sourcerect="512,0,512,368" depth="0.8" origin="0.5,0.5" maxcondition="90" mincondition="0" fadein="true" />
    <BrokenSprite texture="%ModDir%/Items/Generator/reactor_fusion_medium.png" sourcerect="512,384,512,368" depth="0.8" origin="0.5,0.5" maxcondition="0" />
    <aitarget sightrange="500" soundrange="5000" />
    <Reactor canbeselected="true" firedelay="10" meltdowndelay="9" maxpoweroutput="8000" fuelconsumptionrate="0.1" vulnerabletoemp="false" msg="ItemMsgInteractSelect">
      <StatusEffect type="InWater" target="This" condition="-0.5" comparison="and">
        <Conditional condition="gt 10" />
        <Conditional temperature="gt 2" />
      </StatusEffect>
      <GuiFrame relativesize="0.5,0.45" minsize="700,350" maxsize="2688,1166" anchor="Center" relativeoffset="0.1,0" style="ItemUI" />
      <GraphLine texture="Content/Items/Reactor/graphLine.png">
        <Sprite name="ReactorGraphLine" texture="Content/Items/Reactor/graphLine.png" sourcerect="0,0,32,32" />
      </GraphLine>
      <FissionRateMeter>
        <Sprite name="FissionRateMeter" texture="Content/Items/Reactor/reactor.png" sourcerect="544,770,441,240" origin="0.5,1" />
      </FissionRateMeter>
      <TurbineOutputMeter>
        <Sprite name="TurbineOutputMeter" texture="Content/Items/Reactor/reactor.png" sourcerect="544,770,441,240" origin="0.5,1" />
      </TurbineOutputMeter>
      <MeterPointer>
        <Sprite name="MeterPointer" texture="Content/UI/UIAtlasDevices.png" sourcerect="938,846,31,167 " origin="0.5,0.9" />
      </MeterPointer>
      <SectorSprite>
        <Sprite name="SectorSprite" texture="Content/UI/UIAtlasDevices.png" sourcerect="769,326,238,455" origin="0.95,0.5" />
      </SectorSprite>
      <TempMeterFrame>
        <Sprite name="TempMeterFrame" texture="Content/UI/UIAtlasDevices.png" sourcerect="92,517,59,265" origin="0,0" size="0.5,1" />
      </TempMeterFrame>
      <TempMeterBar>
        <Sprite name="TempMeterBar" texture="Content/UI/UIAtlasDevices.png" sourcerect="270,414,106,47" origin="0.5,0" />
      </TempMeterBar>
      <TempRangeIndicator>
        <Sprite name="TempRangeIndicator" texture="Content/UI/UIAtlasDevices.png" sourcerect="31,614,52,25" origin="0.5,0.5" size="0.6,0.6" />
      </TempRangeIndicator>
      <RequiredSkill identifier="electrical" level="50" />
      <sound file="%ModDir%/Items/Generator/reactor_fusion_medium.ogg" type="OnActive" range="2000.0" volumeproperty="FissionRate" volume="0.04" loop="true" />
      <StatusEffect type="OnBroken" target="This" FissionRate="0.0" disabledeltatime="true">
        <Conditional temperature="gt 2" />
        <sound file="Content/Items/Weapons/ExplosionLarge2.ogg" range="6000" selectionmode="All" />
        <sound file="Content/Items/Weapons/ExplosionDebris5.ogg" range="4000" />
        <sound file="Content/Items/Weapons/Emp.ogg" range="10000" />
        <Explosion range="600" structuredamage="40" itemdamage="130" force="5.0" camerashake="200" flashrange="5000" flashduration="1.0" screencolor="225,200,255,255" screencolorrange="5000" screencolorduration="3.0" flames="false" underwaterbubble="false">
          <Affliction identifier="burn" strength="125" />
          <Affliction identifier="explosiondamage" strength="75" />
          <Affliction identifier="stun" strength="5" />
        </Explosion>
        <SpawnItem identifier="ekdockyard_fusionmedium_aftereffectemitter" spawnposition="This" />
      </StatusEffect>
    </Reactor>
    <LightComponent range="10.0" lightcolor="255,255,255,0" powerconsumption="0" IsOn="false" castshadows="false" allowingameediting="false" flicker="0.3" flickerspeed="0.2">
      <IsActive targetitemcomponent="Reactor" temperature="gt 2" />
      <sprite texture="%ModDir%/Items/Generator/reactor_fusion_medium.png" depth="0.025" sourcerect="16,656,128,48" origin="1.094,-0.25" alpha="1.0" />
    </LightComponent>
    <LightComponent range="10.0" lightcolor="130,200,255,0" powerconsumption="0" IsOn="false" castshadows="false" allowingameediting="false" flicker="0.3" flickerspeed="0.8">
      <IsActive targetitemcomponent="Reactor" temperature="gt 2" />
      <sprite texture="%ModDir%/Items/Generator/reactor_fusion_medium.png" depth="0.025" sourcerect="16,400,480,224" origin="0.5,0.505" alpha="1.0" />
    </LightComponent>
    <LightComponent range="175.0" lightcolor="255,25,0,150" powerconsumption="0" IsOn="false" castshadows="false" allowingameediting="false" blinkfrequency="4">
      <IsActive targetitemcomponent="Reactor" temperaturecritical="eq true" />
      <sprite texture="%ModDir%/Items/Generator/reactor_fusion_medium.png" depth="0.025" sourcerect="16,656,128,48" origin="1.094,-0.24" alpha="1.0" />
    </LightComponent>
    <ConnectionPanel selectkey="Action" canbeselected="true" msg="ItemMsgRewireScrewdriver" hudpriority="10">
      <GuiFrame relativesize="0.3,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">
        <Sound file="Content/Sounds/Damage/Electrocution1.ogg" range="1000" />
        <Explosion range="100.0" stun="0" force="5.0" flames="false" shockwave="false" sparks="true" underwaterbubble="false" />
        <Affliction identifier="stun" strength="5" />
        <Affliction identifier="burn" strength="5" />
      </StatusEffect>
      <RequiredItem items="screwdriver" type="Equipped" />
      <output name="power_out" displayname="connection.powerout" maxwires="1" />
      <output name="temperature_out" displayname="connection.temperatureout" />
      <input name="shutdown" displayname="connection.shutdown">
        <!-- Manually set state to false because shutdown signal is sometimes unreliable -->
        <StatusEffect type="OnUse" target="This" poweron="false" setvalue="true" />
      </input>
      <output name="meltdown_warning" displayname="connection.meltdownwarning">
        <StatusEffect type="OnUse" target="This">
          <ParticleEmitter particle="smoke" particleburstamount="2" particleburstinterval="0.5" particlespersecond="2" scalemin="1" scalemax="2.5" anglemin="0" anglemax="359" velocitymin="-50" velocitymax="50" mincondition="15.0" maxcondition="50.0" />
          <ParticleEmitter particle="swirlysmoke" particlespersecond="2" scalemin="1" scalemax="2" anglemin="0" anglemax="360" velocitymin="0" velocitymax="10" />
          <ParticleEmitter particle="ekdockyard_reactorfusion_meltdownarcs" emitinterval="1.5" particleamount="2" scalemin="1.5" scalemax="2.0" distancemin="25" distancemax="100" anglemin="0" anglemax="360" velocitymin="0" velocitymax="100" />
          <ParticleEmitter particle="ekdockyard_reactorfusion_meltdownarcs" particlespersecond="1" scalemin="1" scalemax="1.5" distancemin="25" distancemax="75" anglemin="0" anglemax="360" velocitymin="0" velocitymax="100" />
          <ParticleEmitter particle="plasmaspark" emitinterval="1.5" particleamount="8" scalemin="1.5" scalemax="2.0" anglemin="0" anglemax="360" velocitymin="200" velocitymax="800" colormultiplier="255,150,225,255" />
          <sound file="Content/Items/Reactor/ReactorOverheatAlarm.ogg" type="OnUse" range="10000.0" loop="true" volume="1.0" />
        </StatusEffect>
      </output>
      <input name="set_fissionrate" displayname="connection.setfissionrate" />
      <input name="set_turbineoutput" displayname="connection.setturbineoutput" />
      <output name="power_value_out" displayname="connection.powervalueout" />
      <output name="load_value_out" displayname="connection.loadvalueout" />
      <output name="fuel_out" displayname="connection.availablefuelout" />
      <output name="condition_out" displayname="connection.conditionout" />
      <output name="fuel_percentage_left" displayname="connection.fuelpercentageout" />
      <!-- Control Additions autotemp="True" -->
      <input name="poweron" displayname="connection.activate">
        <StatusEffect type="OnUse" target="This" poweron="true" setvalue="true" />
      </input>
      <input name="autotemp" displayname="pumpautocontrol">
        <StatusEffect type="OnUse" target="This" autotemp="true" setvalue="true" />
      </input>
    </ConnectionPanel>
    <ItemContainer capacity="2" maxstacksize="1" canbeselected="true" hudpos="0.5,0.15" slotsperrow="1" uilabel="FuelRods">
      <Containable items="fusionfuellevel1">
        <StatusEffect type="OnContaining" target="This" AvailableFuel="37.5" disabledeltatime="true" />
      </Containable>
      <Containable items="fusionfuellevel2">
        <StatusEffect type="OnContaining" target="This" AvailableFuel="55.0" disabledeltatime="true" />
      </Containable>
      <Containable items="fusionfuellevel3">
        <StatusEffect type="OnContaining" target="This" AvailableFuel="80.0" disabledeltatime="true" />
      </Containable>
    </ItemContainer>
    <Repairable selectkey="Action" header="electricalrepairsheader" deteriorationspeed="0.08" mindeteriorationdelay="240" maxdeteriorationdelay="720" MinDeteriorationCondition="10" minsabotagecondition="10" RepairThreshold="50" fixDurationHighSkill="15" fixDurationLowSkill="45" msg="ItemMsgRepairWrench" hudpriority="10">
      <GuiFrame relativesize="0.2,0.16" minsize="400,180" maxsize="480,216" anchor="Center" relativeoffset="0.0,0.27" style="ItemUI" />
      <RequiredSkill identifier="electrical" level="55" />
      <RequiredItem items="screwdriver" type="equipped" />
      <ParticleEmitter particle="damagebubbles" particleburstamount="2" particleburstinterval="2.0" particlespersecond="2" scalemin="0.5" scalemax="1.5" anglemin="0" anglemax="359" velocitymin="-10" velocitymax="10" mincondition="0.0" maxcondition="50.0" />
      <ParticleEmitter particle="smoke" particleburstamount="3" particleburstinterval="0.5" particlespersecond="2" scalemin="1" scalemax="2.5" anglemin="0" anglemax="359" velocitymin="-50" velocitymax="50" mincondition="15.0" maxcondition="50.0" />
      <ParticleEmitter particle="heavysmoke" particleburstinterval="0.25" particlespersecond="2" scalemin="2.5" scalemax="5.0" mincondition="0.0" maxcondition="15.0" />
      <StatusEffect type="OnFailure" target="Character" targetlimbs="LeftHand,RightHand">
        <Sound file="Content/Sounds/Damage/Electrocution1.ogg" range="1000" />
        <Affliction identifier="stun" strength="4" />
        <Affliction identifier="burn" strength="5" />
      </StatusEffect>
    </Repairable>
  </Item>
  <!-- Todo: Wait for status effect conditionals to work
  <Item name="" identifier="ekdockyard_rtg_small" tags="reactor,battery" category="Electrical" Scale="0.5" description="" damagedbyexplosions="true" explosiondamagemultiplier="0.2">
    <Sprite texture="%ModDir%/Items/Electricity/variants_batteries1.png" sourcerect="0,0,128,160" depth="0.8" />
    <UpgradePreviewSprite texture="Content/UI/WeaponUI.png" sourcerect="64,961,32,22" origin="0.5,0.45" />
    <BrokenSprite texture="%ModDir%/Items/Electricity/variants_batteries1.png" sourcerect="128,0,128,160" depth="0.8" maxcondition="80" fadein="true" />
    <BrokenSprite texture="%ModDir%/Items/Electricity/variants_batteries1.png" sourcerect="128,0,128,160" depth="0.8" maxcondition="0" />
    <PowerContainer capacity="1000.0" maxrechargespeed="1000.0" maxoutput="1000.0" canbeselected="false">
	  <StatusEffect type="Always" target="This" Charge="-200.0" />
    </PowerContainer>
	<DecorativeSprite texture="%ModDir%/Items/Electricity/variants_batteries1.png" sourcerect="128,0,128,160" depth="0.78" origin="0.5,0.5">
      <IsActiveConditional targetitemcomponent="PowerContainer" ChargePercentage="gt 20" />
    </DecorativeSprite>
    <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">
        <Sound file="Content/Sounds/Damage/Electrocution1.ogg" range="1000" />
        <Explosion range="100.0" stun="0" force="5.0" flames="false" shockwave="false" sparks="true" underwaterbubble="false" />
        <Affliction identifier="stun" strength="5" />
        <Affliction identifier="burn" strength="5" />
      </StatusEffect>
      <requireditem items="Screwdriver" type="Equipped" />
      <output name="power_out" displayname="connection.powerout" />
      <output name="charge" displayname="connection.batterychargestatusout" />
      <output name="charge_%" displayname="connection.batterychargepercentage" />
	  <output name="condition_out" displayname="connection.conditionout" />
    </ConnectionPanel>
    <ItemContainer capacity="1" maxstacksize="1" canbeselected="true" hideitems="true" hudpos="0.5,0.6" uilabel="FuelRods">
      <GuiFrame relativesize="0.2,0.2" anchor="Center" relativeoffset="0,0.2" style="ItemUI" />
      <Containable items="fuelrod">
		<StatusEffect type="Always" target="This" Charge="1000.0" >
		  <RequiredItem items="fuelrod" type="Contained" />
		  <Conditional ChargePercentage="lt 99" targetcontainer="true" targetitemcomponent="PowerContainer"/>
		  <Sound file="Content/Items/WarningBeepSlow.ogg" range="500" loop="true"/>
		</StatusEffect>
        <StatusEffect type="OnContaining" target="Contained" Condition="-0.0625" >
		  <RequiredItem items="fuelrod" type="Contained" />
		  <Conditional ChargePercentage="lt 99" targetcontainer="true" targetitemcomponent="PowerContainer"/>
		</StatusEffect>
      </Containable>
    </ItemContainer>
    <Repairable selectkey="Action" header="electricalrepairsheader" deteriorationspeed="0.05" mindeteriorationdelay="240" maxdeteriorationdelay="480" mindeteriorationcondition="0" RepairThreshold="80" fixDurationHighSkill="10" fixDurationLowSkill="30" msg="ItemMsgRepairScrewdriver" hudpriority="10">
      <StatusEffect type="InWater" target="This" condition="-0.05" />
      <GuiFrame relativesize="0.2,0.16" minsize="400,180" maxsize="480,216" anchor="Center" relativeoffset="0.0,0.27" style="ItemUI" />
      <RequiredSkill identifier="electrical" level="55" />
      <RequiredItem items="screwdriver" type="Equipped" />
      <ParticleEmitter particle="damagebubbles" particleburstamount="2" particleburstinterval="2.0" particlespersecond="2" scalemin="0.5" scalemax="1.5" anglemin="0" anglemax="359" velocitymin="-10" velocitymax="10" mincondition="0.0" maxcondition="50.0" />
      <ParticleEmitter particle="MistSmoke" particlespersecond="60" anglemin="70" anglemax="100" velocitymin="0" velocitymax="20" mincondition="0.0" maxcondition="50.0" />
	  <ParticleEmitter particle="spark" particleburstamount="5" particlespersecond="5" anglemin="0" anglemax="359" velocitymin="100" velocitymax="500" particleburstinterval="2"  scalemin="0.5" scalemax="1" mincondition="0.0" maxcondition="15.0" />
      <ParticleEmitter particle="fleshsmoke" particlespersecond="2" scalemin="1" scalemax="2" mincondition="0.0" maxcondition="50.0" />
      <StatusEffect type="OnFailure" target="Character" targetlimbs="LeftHand,RightHand">
        <Sound file="Content/Sounds/Damage/Electrocution1.ogg" range="1000" />
        <Affliction identifier="stun" strength="5" />
        <Affliction identifier="burn" strength="5" />
      </StatusEffect>
    </Repairable>
  </Item>
  -->
</Items>