<?xml version="1.0" encoding="utf-8"?>
<Items>
  <Override>
    <Item name="Nuclear Reactor (Mini)" identifier="ekdockyard_reactor_mini" tags="reactor,containradiation" 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:3045796581%/Content/Items/Reactor/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:3045796581%/Content/Items/Reactor/reactor_mini.png" sourcerect="272,0,224,256" depth="0.8" origin="0.5,0.5" maxcondition="80" fadein="true" />
      <BrokenSprite texture="%ModDir:3045796581%/Content/Items/Reactor/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.0" comparison="And">
          <Conditional condition="gt 10" />
          <Conditional temperature="gt 1" />
        </StatusEffect>
        <StatusEffect type="Always" target="This" tags="wreckreactor" setvalue="true" duration="0.2" interval="0.1" AllowWhenBroken="true">
          <Conditional condition="eq 0" />
        </StatusEffect>
        <!-- produce heat around reactor in a 7.5m radius if the temperature is high -->
        <StatusEffect type="OnActive" target="This" interval="0.9">
          <Conditional temperature="gt 40" />
          <Explosion range="750" itemdamage="0.0" structuredamage="0.0" ballastfloradamage="0" camerashake="0" camerashakerange="0" explosiondamage="0" force="0" flames="false" smoke="false" shockwave="false" sparks="false" flash="false" underwaterbubble="false" playtinnitus="false">
            <Affliction identifier="overheating" strength="0.7" />
          </Explosion>
        </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="600.0" volumeproperty="FissionRate" volume="0.02" loop="true" />
        <!-- fuel rod explosion -->
        <StatusEffect type="OnBroken" target="This" FissionRate="0.0" disabledeltatime="true">
          <RequiredItem items="fuelrod" type="contained" />
          <sound file="Content/Items/Weapons/ExplosionLarge1.ogg" range="50000" />
          <sound file="Content/Items/Weapons/ExplosionLarge2.ogg" range="50000" />
          <Explosion range="750" ballastfloradamage="1000" structuredamage="300" itemdamage="500" force="25.0" camerashake="0" flashrange="10000" flashduration="5.0" screencolor="255,255,255,255" screencolorrange="5000" screencolorduration="3.0" decal="explosion" decalsize="1">
            <Affliction identifier="explosiondamage" strength="500" />
            <Affliction identifier="burn" strength="500" />
            <Affliction identifier="stun" strength="15" />
          </Explosion>
          <Explosion range="2000" force="0.0" camerashake="200" camerashakerange="50000" showEffects="false" empstrength="1.25" applyfireeffects="false" ignorecover="true">
            <Affliction identifier="radiationsickness" strength="75" />
            <Affliction identifier="contaminated" strength="75" />
            <Affliction identifier="emp" strength="50" multiplybymaxvitality="true" />
          </Explosion>
          <ParticleEmitter particle="underwaterexplosion" anglemin="0" anglemax="360" particleamount="3" velocitymin="0" velocitymax="0" scalemin="15" scalemax="15" />
        </StatusEffect>
        <!-- thorium fuel rod explosion -->
        <StatusEffect type="OnBroken" target="This" FissionRate="0.0" disabledeltatime="true">
          <RequiredItem items="thoriumfuelrod" type="contained" />
          <sound file="Content/Items/Weapons/ExplosionLarge1.ogg" range="50000" />
          <sound file="Content/Items/Weapons/ExplosionLarge2.ogg" range="50000" />
          <Explosion range="1500" ballastfloradamage="1000" structuredamage="600" itemdamage="1000" force="50.0" camerashake="0" flashrange="10000" flashduration="5.0" screencolor="225,150,255,255" screencolorrange="5000" screencolorduration="3.0" decal="explosion" decalsize="1">
            <Affliction identifier="explosiondamage" strength="1000" />
            <Affliction identifier="burn" strength="1000" />
            <Affliction identifier="stun" strength="30" />
          </Explosion>
          <Explosion range="2500" force="0.0" camerashake="200" camerashakerange="50000" showEffects="false" empstrength="1.25" applyfireeffects="false" ignorecover="true">
            <Affliction identifier="radiationsickness" strength="100" />
            <Affliction identifier="contaminated" strength="100" />
            <Affliction identifier="radiationsounds" strength="200" />
            <Affliction identifier="emp" strength="50" multiplybymaxvitality="true" />
          </Explosion>
          <ParticleEmitter particle="underwaterexplosion" anglemin="0" anglemax="360" particleamount="3" velocitymin="0" velocitymax="0" scalemin="15" scalemax="15" />
        </StatusEffect>
        <!-- fulgurium fuel rod explosion -->
        <StatusEffect type="OnBroken" target="This" FissionRate="0.0" disabledeltatime="true">
          <RequiredItem items="fulguriumfuelrod" type="contained" />
          <sound file="Content/Items/Weapons/ExplosionLarge1.ogg" range="50000" />
          <sound file="Content/Items/Weapons/ExplosionLarge2.ogg" range="50000" />
          <Explosion range="2250" ballastfloradamage="1000" structuredamage="900" itemdamage="1500" force="75.0" camerashake="0" flashrange="10000" flashduration="5.0" screencolor="255,125,30,255" screencolorrange="5000" screencolorduration="3.0" decal="explosion" decalsize="1">
            <Affliction identifier="explosiondamage" strength="1500" />
            <Affliction identifier="burn" strength="1500" />
            <Affliction identifier="stun" strength="45" />
          </Explosion>
          <Explosion range="4500" force="0.0" camerashake="200" camerashakerange="50000" showEffects="false" empstrength="1.25" applyfireeffects="false" ignorecover="true">
            <Affliction identifier="radiationsickness" strength="125" />
            <Affliction identifier="contaminated" strength="125" />
            <Affliction identifier="radiationsounds" strength="200" />
            <Affliction identifier="emp" strength="50" multiplybymaxvitality="true" />
          </Explosion>
          <ParticleEmitter particle="underwaterexplosion" anglemin="0" anglemax="360" particleamount="3" velocitymin="0" velocitymax="0" scalemin="15" scalemax="15" />
        </StatusEffect>
        <!-- volatile fulgurium fuel rod explosion -->
        <StatusEffect type="OnBroken" target="This" FissionRate="0.0" disabledeltatime="true">
          <RequiredItem items="fulguriumfuelrodvolatile" type="contained" />
          <sound file="Content/Items/Weapons/ExplosionLarge1.ogg" range="100000" />
          <sound file="Content/Items/Weapons/ExplosionLarge2.ogg" range="100000" />
          <Explosion range="3000" ballastfloradamage="1000" structuredamage="1200" itemdamage="2000" force="100.0" camerashake="0" flashrange="50000" flashduration="5.0" screencolor="60,200,255,255" screencolorrange="5000" screencolorduration="3.0" decal="explosion" decalsize="1">
            <Affliction identifier="explosiondamage" strength="2000" />
            <Affliction identifier="burn" strength="2000" />
            <Affliction identifier="stun" strength="60" />
          </Explosion>
          <Explosion range="6000" force="0.0" camerashake="200" camerashakerange="50000" showEffects="false" empstrength="1.25" applyfireeffects="false" ignorecover="true">
            <Affliction identifier="radiationsickness" strength="200" />
            <Affliction identifier="contaminated" strength="200" />
            <Affliction identifier="radiationsounds" strength="200" />
            <Affliction identifier="emp" strength="50" multiplybymaxvitality="true" />
          </Explosion>
          <ParticleEmitter particle="underwaterexplosion" anglemin="0" anglemax="360" particleamount="3" velocitymin="0" velocitymax="0" scalemin="15" scalemax="15" />
        </StatusEffect>
        <StatusEffect type="OnBroken" target="This">
          <sound file="Content/Items/Weapons/ExplosionDebris4.ogg" range="10000" />
          <sound file="Content/Items/Weapons/ExplosionDebris5.ogg" range="10000" />
        </StatusEffect>
        <StatusEffect type="OnBroken" target="Contained" Condition="0.0" delay="0.1" setvalue="true" />
        <SkillRequirementHint identifier="electrical" level="50" />
      </Reactor>
      <LightComponent range="10.0" lightcolor="255,255,255,0" powerconsumption="0" IsOn="false" castshadows="false" allowingameediting="false" alphablend="false">
        <IsActive targetitemcomponent="Reactor" temperature="gt 2" />
        <sprite texture="%ModDir:3045796581%/Content/Items/Reactor/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" alphablend="false">
        <IsActive targetitemcomponent="Reactor" temperaturecritical="eq true" />
        <sprite texture="%ModDir:3045796581%/Content/Items/Reactor/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" />
        <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" />
        <!-- Additional Input: Turn On -->
        <input name="poweron" displayname="connection.activate">
          <StatusEffect type="OnUse" target="This" poweron="true" setvalue="true" />
        </input>
        <!-- Additional Input: Activate Automatic Control -->
        <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>
        <Containable items="huskfigurine">
          <StatusEffect type="OnContaining" target="This" AvailableFuel="0" disabledeltatime="true" />
        </Containable>
      </ItemContainer>
      <!-- invisible inventory slot for the critical state effect item -->
      <ItemContainer capacity="1" maxstacksize="1" canbeselected="false">
        <Containable identifier="effect_reactorcritical" />
        <SubContainer capacity="1" maxstacksize="1">
          <Containable identifier="effect_reactortempincrease" />
        </SubContainer>
      </ItemContainer>
      <Repairable selectkey="Action" header="electricalrepairsheader" deteriorationspeed="0.125" mindeteriorationdelay="120" maxdeteriorationdelay="720" MinDeteriorationCondition="10" minsabotagecondition="10" RepairThreshold="75" fixDurationHighSkill="5" fixDurationLowSkill="25" msg="ItemMsgRepairScrewdriver" hudpriority="10">
        <Upgrade gameversion="2.1.18.1" AIRepairThreshold="75" RepairThreshold="75" />
        <GuiFrame relativesize="0.2,0.16" minsize="400,180" maxsize="480,280" anchor="Center" relativeoffset="0.0,0.27" style="ItemUI" />
        <RequiredSkill identifier="electrical" level="100" />
        <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="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="This,Character" targetlimbs="LeftHand,RightHand" AllowWhenBroken="true">
          <Conditional temperature="lt 1" />
          <Sound file="Content/Sounds/Damage/Electrocution1.ogg" range="1000" />
          <Explosion range="100.0" force="1.0" flames="false" shockwave="false" sparks="true" underwaterbubble="false" />
          <Affliction identifier="stun" strength="4" />
          <Affliction identifier="burn" strength="5" />
        </StatusEffect>
        <!-- set reactor condition to 30 and spawn an item inside it which damages it every second if repaired while active -->
        <StatusEffect type="OnSuccess" target="This,Character" condition="40.0" setvalue="true" comparison="And">
          <Conditional temperature="gt 1" />
          <Conditional condition="gte 40" />
          <Conditional isPlayer="eq true" />
        </StatusEffect>
        <StatusEffect type="OnSuccess" target="This,Character" comparison="And">
          <Conditional temperature="gt 1" />
          <Conditional isPlayer="eq true" />
          <SpawnItem identifier="effect_reactorcritical" spawnposition="ThisInventory" spawnifinventoryfull="false" spawnifcantbecontained="false" />
        </StatusEffect>
        <StatusEffect type="OnFailure" target="This,Character" condition="40.0" setvalue="true" comparison="And">
          <Conditional temperature="gt 1" />
          <Conditional condition="gte 40" />
          <Conditional isPlayer="eq true" />
        </StatusEffect>
        <StatusEffect type="OnFailure" target="This,Character" comparison="And">
          <Conditional temperature="gt 1" />
          <Conditional isPlayer="eq true" />
          <SpawnItem identifier="effect_reactorcritical" spawnposition="ThisInventory" spawnifinventoryfull="false" spawnifcantbecontained="false" />
        </StatusEffect>
        <!-- explode if reactor is still outputting energy while trying to repair | DISABLED
        <StatusEffect type="OnSuccess" target="This,Character" condition="0.0" setvalue="true" comparison="And">
          <Conditional temperature="gt 1" />
          <Conditional isPlayer="eq true" />
        </StatusEffect>
        <StatusEffect type="OnFailure" target="This,Character" condition="0.0" setvalue="true" comparison="And">
          <Conditional temperature="gt 1" />
          <Conditional isPlayer="eq true" />
        </StatusEffect>-->
      </Repairable>
    </Item>
  </Override>
  <Override>
    <Item name="Nuclear Reactor (Small)" identifier="ekdockyard_reactor_small" tags="reactor,containradiation" 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:3045796581%/Content/Items/Reactor/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:3045796581%/Content/Items/Reactor/reactor_small.png" sourcerect="384,0,384,344" depth="0.8" origin="0.5,0.45" maxcondition="80" fadein="true" />
      <BrokenSprite texture="%ModDir:3045796581%/Content/Items/Reactor/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 1" />
        </StatusEffect>
        <StatusEffect type="Always" target="This" tags="wreckreactor" setvalue="true" duration="0.2" interval="0.1" AllowWhenBroken="true">
          <Conditional condition="eq 0" />
        </StatusEffect>
        <!-- produce heat around reactor in a 7.5m radius if the temperature is high -->
        <StatusEffect type="OnActive" target="This" interval="0.9">
          <Conditional temperature="gt 40" />
          <Explosion range="750" itemdamage="0.0" structuredamage="0.0" ballastfloradamage="0" camerashake="0" camerashakerange="0" explosiondamage="0" force="0" flames="false" smoke="false" shockwave="false" sparks="false" flash="false" underwaterbubble="false" playtinnitus="false">
            <Affliction identifier="overheating" strength="0.7" />
          </Explosion>
        </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="600.0" volumeproperty="FissionRate" volume="0.02" loop="true" />
        <!-- fuel rod explosion -->
        <StatusEffect type="OnBroken" target="This" FissionRate="0.0" disabledeltatime="true">
          <RequiredItem items="fuelrod" type="contained" />
          <sound file="Content/Items/Weapons/ExplosionLarge1.ogg" range="50000" />
          <sound file="Content/Items/Weapons/ExplosionLarge2.ogg" range="50000" />
          <Explosion range="750" ballastfloradamage="1000" structuredamage="300" itemdamage="500" force="25.0" camerashake="0" flashrange="10000" flashduration="5.0" screencolor="255,255,255,255" screencolorrange="5000" screencolorduration="3.0" decal="explosion" decalsize="1">
            <Affliction identifier="explosiondamage" strength="500" />
            <Affliction identifier="burn" strength="500" />
            <Affliction identifier="stun" strength="15" />
          </Explosion>
          <Explosion range="2000" force="0.0" camerashake="200" camerashakerange="50000" showEffects="false" empstrength="1.25" applyfireeffects="false" ignorecover="true">
            <Affliction identifier="radiationsickness" strength="75" />
            <Affliction identifier="contaminated" strength="75" />
            <Affliction identifier="emp" strength="50" multiplybymaxvitality="true" />
          </Explosion>
          <ParticleEmitter particle="underwaterexplosion" anglemin="0" anglemax="360" particleamount="3" velocitymin="0" velocitymax="0" scalemin="15" scalemax="15" />
        </StatusEffect>
        <!-- thorium fuel rod explosion -->
        <StatusEffect type="OnBroken" target="This" FissionRate="0.0" disabledeltatime="true">
          <RequiredItem items="thoriumfuelrod" type="contained" />
          <sound file="Content/Items/Weapons/ExplosionLarge1.ogg" range="50000" />
          <sound file="Content/Items/Weapons/ExplosionLarge2.ogg" range="50000" />
          <Explosion range="1500" ballastfloradamage="1000" structuredamage="600" itemdamage="1000" force="50.0" camerashake="0" flashrange="10000" flashduration="5.0" screencolor="225,150,255,255" screencolorrange="5000" screencolorduration="3.0" decal="explosion" decalsize="1">
            <Affliction identifier="explosiondamage" strength="1000" />
            <Affliction identifier="burn" strength="1000" />
            <Affliction identifier="stun" strength="30" />
          </Explosion>
          <Explosion range="2500" force="0.0" camerashake="200" camerashakerange="50000" showEffects="false" empstrength="1.25" applyfireeffects="false" ignorecover="true">
            <Affliction identifier="radiationsickness" strength="100" />
            <Affliction identifier="contaminated" strength="100" />
            <Affliction identifier="radiationsounds" strength="200" />
            <Affliction identifier="emp" strength="50" multiplybymaxvitality="true" />
          </Explosion>
          <ParticleEmitter particle="underwaterexplosion" anglemin="0" anglemax="360" particleamount="3" velocitymin="0" velocitymax="0" scalemin="15" scalemax="15" />
        </StatusEffect>
        <!-- fulgurium fuel rod explosion -->
        <StatusEffect type="OnBroken" target="This" FissionRate="0.0" disabledeltatime="true">
          <RequiredItem items="fulguriumfuelrod" type="contained" />
          <sound file="Content/Items/Weapons/ExplosionLarge1.ogg" range="50000" />
          <sound file="Content/Items/Weapons/ExplosionLarge2.ogg" range="50000" />
          <Explosion range="2250" ballastfloradamage="1000" structuredamage="900" itemdamage="1500" force="75.0" camerashake="0" flashrange="10000" flashduration="5.0" screencolor="255,125,30,255" screencolorrange="5000" screencolorduration="3.0" decal="explosion" decalsize="1">
            <Affliction identifier="explosiondamage" strength="1500" />
            <Affliction identifier="burn" strength="1500" />
            <Affliction identifier="stun" strength="45" />
          </Explosion>
          <Explosion range="4500" force="0.0" camerashake="200" camerashakerange="50000" showEffects="false" empstrength="1.25" applyfireeffects="false" ignorecover="true">
            <Affliction identifier="radiationsickness" strength="125" />
            <Affliction identifier="contaminated" strength="125" />
            <Affliction identifier="radiationsounds" strength="200" />
            <Affliction identifier="emp" strength="50" multiplybymaxvitality="true" />
          </Explosion>
          <ParticleEmitter particle="underwaterexplosion" anglemin="0" anglemax="360" particleamount="3" velocitymin="0" velocitymax="0" scalemin="15" scalemax="15" />
        </StatusEffect>
        <!-- volatile fulgurium fuel rod explosion -->
        <StatusEffect type="OnBroken" target="This" FissionRate="0.0" disabledeltatime="true">
          <RequiredItem items="fulguriumfuelrodvolatile" type="contained" />
          <sound file="Content/Items/Weapons/ExplosionLarge1.ogg" range="100000" />
          <sound file="Content/Items/Weapons/ExplosionLarge2.ogg" range="100000" />
          <Explosion range="3000" ballastfloradamage="1000" structuredamage="1200" itemdamage="2000" force="100.0" camerashake="0" flashrange="50000" flashduration="5.0" screencolor="60,200,255,255" screencolorrange="5000" screencolorduration="3.0" decal="explosion" decalsize="1">
            <Affliction identifier="explosiondamage" strength="2000" />
            <Affliction identifier="burn" strength="2000" />
            <Affliction identifier="stun" strength="60" />
          </Explosion>
          <Explosion range="6000" force="0.0" camerashake="200" camerashakerange="50000" showEffects="false" empstrength="1.25" applyfireeffects="false" ignorecover="true">
            <Affliction identifier="radiationsickness" strength="200" />
            <Affliction identifier="contaminated" strength="200" />
            <Affliction identifier="radiationsounds" strength="200" />
            <Affliction identifier="emp" strength="50" multiplybymaxvitality="true" />
          </Explosion>
          <ParticleEmitter particle="underwaterexplosion" anglemin="0" anglemax="360" particleamount="3" velocitymin="0" velocitymax="0" scalemin="15" scalemax="15" />
        </StatusEffect>
        <StatusEffect type="OnBroken" target="This">
          <sound file="Content/Items/Weapons/ExplosionDebris4.ogg" range="10000" />
          <sound file="Content/Items/Weapons/ExplosionDebris5.ogg" range="10000" />
        </StatusEffect>
        <StatusEffect type="OnBroken" target="Contained" Condition="0.0" delay="0.1" setvalue="true" />
        <SkillRequirementHint identifier="electrical" level="50" />
      </Reactor>
      <LightComponent range="10.0" lightcolor="255,255,255,0" powerconsumption="0" IsOn="false" castshadows="false" allowingameediting="false" alphablend="false">
        <IsActive targetitemcomponent="Reactor" temperature="gt 2" />
        <sprite texture="%ModDir:3045796581%/Content/Items/Reactor/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" alphablend="false">
        <IsActive targetitemcomponent="Reactor" temperaturecritical="eq true" />
        <sprite texture="%ModDir:3045796581%/Content/Items/Reactor/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" />
        <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" />
        <!-- Additional Input: Turn On -->
        <input name="poweron" displayname="connection.activate">
          <StatusEffect type="OnUse" target="This" poweron="true" setvalue="true" />
        </input>
        <!-- Additional Input: Activate Automatic Control -->
        <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>
        <Containable items="huskfigurine">
          <StatusEffect type="OnContaining" target="This" AvailableFuel="0" disabledeltatime="true" />
        </Containable>
      </ItemContainer>
      <!-- invisible inventory slot for the critical state effect item -->
      <ItemContainer capacity="1" maxstacksize="1" canbeselected="false">
        <Containable identifier="effect_reactorcritical" />
        <SubContainer capacity="1" maxstacksize="1">
          <Containable identifier="effect_reactortempincrease" />
        </SubContainer>
      </ItemContainer>
      <Repairable selectkey="Action" header="electricalrepairsheader" deteriorationspeed="0.125" mindeteriorationdelay="120" maxdeteriorationdelay="720" MinDeteriorationCondition="10" minsabotagecondition="10" RepairThreshold="75" fixDurationHighSkill="5" fixDurationLowSkill="25" msg="ItemMsgRepairScrewdriver" hudpriority="10">
        <Upgrade gameversion="2.1.18.1" AIRepairThreshold="75" RepairThreshold="75" />
        <GuiFrame relativesize="0.2,0.16" minsize="400,180" maxsize="480,280" anchor="Center" relativeoffset="0.0,0.27" style="ItemUI" />
        <RequiredSkill identifier="electrical" level="100" />
        <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="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="This,Character" targetlimbs="LeftHand,RightHand" AllowWhenBroken="true">
          <Conditional temperature="lt 1" />
          <Sound file="Content/Sounds/Damage/Electrocution1.ogg" range="1000" />
          <Explosion range="100.0" force="1.0" flames="false" shockwave="false" sparks="true" underwaterbubble="false" />
          <Affliction identifier="stun" strength="4" />
          <Affliction identifier="burn" strength="5" />
        </StatusEffect>
        <!-- set reactor condition to 30 and spawn an item inside it which damages it every second if repaired while active -->
        <StatusEffect type="OnSuccess" target="This,Character" condition="40.0" setvalue="true" comparison="And">
          <Conditional temperature="gt 1" />
          <Conditional condition="gte 40" />
          <Conditional isPlayer="eq true" />
        </StatusEffect>
        <StatusEffect type="OnSuccess" target="This,Character" comparison="And">
          <Conditional temperature="gt 1" />
          <Conditional isPlayer="eq true" />
          <SpawnItem identifier="effect_reactorcritical" spawnposition="ThisInventory" spawnifinventoryfull="false" spawnifcantbecontained="false" />
        </StatusEffect>
        <StatusEffect type="OnFailure" target="This,Character" condition="40.0" setvalue="true" comparison="And">
          <Conditional temperature="gt 1" />
          <Conditional condition="gte 40" />
          <Conditional isPlayer="eq true" />
        </StatusEffect>
        <StatusEffect type="OnFailure" target="This,Character" comparison="And">
          <Conditional temperature="gt 1" />
          <Conditional isPlayer="eq true" />
          <SpawnItem identifier="effect_reactorcritical" spawnposition="ThisInventory" spawnifinventoryfull="false" spawnifcantbecontained="false" />
        </StatusEffect>
        <!-- explode if reactor is still outputting energy while trying to repair | DISABLED
        <StatusEffect type="OnSuccess" target="This,Character" condition="0.0" setvalue="true" comparison="And">
          <Conditional temperature="gt 1" />
          <Conditional isPlayer="eq true" />
        </StatusEffect>
        <StatusEffect type="OnFailure" target="This,Character" condition="0.0" setvalue="true" comparison="And">
          <Conditional temperature="gt 1" />
          <Conditional isPlayer="eq true" />
        </StatusEffect>-->
      </Repairable>
    </Item>
  </Override>
  <Override>
    <Item name="Slow Nuclear Reactor (Small)" identifier="ekdockyard_reactorslow_small" tags="reactor,containradiation" 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:3045796581%/Content/Items/Reactor/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:3045796581%/Content/Items/Reactor/reactorslow_small.png" sourcerect="384,0,384,344" depth="0.8" origin="0.5,0.45" maxcondition="80" fadein="true" />
      <BrokenSprite texture="%ModDir:3045796581%/Content/Items/Reactor/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 1" />
        </StatusEffect>
        <StatusEffect type="Always" target="This" tags="wreckreactor" setvalue="true" duration="0.2" interval="0.1" AllowWhenBroken="true">
          <Conditional condition="eq 0" />
        </StatusEffect>
        <!-- produce heat around reactor in a 7.5m radius if the temperature is high -->
        <StatusEffect type="OnActive" target="This" interval="0.9">
          <Conditional temperature="gt 40" />
          <Explosion range="750" itemdamage="0.0" structuredamage="0.0" ballastfloradamage="0" camerashake="0" camerashakerange="0" explosiondamage="0" force="0" flames="false" smoke="false" shockwave="false" sparks="false" flash="false" underwaterbubble="false" playtinnitus="false">
            <Affliction identifier="overheating" strength="0.7" />
          </Explosion>
        </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="600.0" volumeproperty="FissionRate" volume="0.02" loop="true" />
        <!-- fuel rod explosion -->
        <StatusEffect type="OnBroken" target="This" FissionRate="0.0" disabledeltatime="true">
          <RequiredItem items="fuelrod" type="contained" />
          <sound file="Content/Items/Weapons/ExplosionLarge1.ogg" range="50000" />
          <sound file="Content/Items/Weapons/ExplosionLarge2.ogg" range="50000" />
          <Explosion range="750" ballastfloradamage="1000" structuredamage="300" itemdamage="500" force="25.0" camerashake="0" flashrange="10000" flashduration="5.0" screencolor="255,255,255,255" screencolorrange="5000" screencolorduration="3.0" decal="explosion" decalsize="1">
            <Affliction identifier="explosiondamage" strength="500" />
            <Affliction identifier="burn" strength="500" />
            <Affliction identifier="stun" strength="15" />
          </Explosion>
          <Explosion range="2000" force="0.0" camerashake="200" camerashakerange="50000" showEffects="false" empstrength="1.25" applyfireeffects="false" ignorecover="true">
            <Affliction identifier="radiationsickness" strength="75" />
            <Affliction identifier="contaminated" strength="75" />
            <Affliction identifier="emp" strength="50" multiplybymaxvitality="true" />
          </Explosion>
          <ParticleEmitter particle="underwaterexplosion" anglemin="0" anglemax="360" particleamount="3" velocitymin="0" velocitymax="0" scalemin="15" scalemax="15" />
        </StatusEffect>
        <!-- thorium fuel rod explosion -->
        <StatusEffect type="OnBroken" target="This" FissionRate="0.0" disabledeltatime="true">
          <RequiredItem items="thoriumfuelrod" type="contained" />
          <sound file="Content/Items/Weapons/ExplosionLarge1.ogg" range="50000" />
          <sound file="Content/Items/Weapons/ExplosionLarge2.ogg" range="50000" />
          <Explosion range="1500" ballastfloradamage="1000" structuredamage="600" itemdamage="1000" force="50.0" camerashake="0" flashrange="10000" flashduration="5.0" screencolor="225,150,255,255" screencolorrange="5000" screencolorduration="3.0" decal="explosion" decalsize="1">
            <Affliction identifier="explosiondamage" strength="1000" />
            <Affliction identifier="burn" strength="1000" />
            <Affliction identifier="stun" strength="30" />
          </Explosion>
          <Explosion range="2500" force="0.0" camerashake="200" camerashakerange="50000" showEffects="false" empstrength="1.25" applyfireeffects="false" ignorecover="true">
            <Affliction identifier="radiationsickness" strength="100" />
            <Affliction identifier="contaminated" strength="100" />
            <Affliction identifier="radiationsounds" strength="200" />
            <Affliction identifier="emp" strength="50" multiplybymaxvitality="true" />
          </Explosion>
          <ParticleEmitter particle="underwaterexplosion" anglemin="0" anglemax="360" particleamount="3" velocitymin="0" velocitymax="0" scalemin="15" scalemax="15" />
        </StatusEffect>
        <!-- fulgurium fuel rod explosion -->
        <StatusEffect type="OnBroken" target="This" FissionRate="0.0" disabledeltatime="true">
          <RequiredItem items="fulguriumfuelrod" type="contained" />
          <sound file="Content/Items/Weapons/ExplosionLarge1.ogg" range="50000" />
          <sound file="Content/Items/Weapons/ExplosionLarge2.ogg" range="50000" />
          <Explosion range="2250" ballastfloradamage="1000" structuredamage="900" itemdamage="1500" force="75.0" camerashake="0" flashrange="10000" flashduration="5.0" screencolor="255,125,30,255" screencolorrange="5000" screencolorduration="3.0" decal="explosion" decalsize="1">
            <Affliction identifier="explosiondamage" strength="1500" />
            <Affliction identifier="burn" strength="1500" />
            <Affliction identifier="stun" strength="45" />
          </Explosion>
          <Explosion range="4500" force="0.0" camerashake="200" camerashakerange="50000" showEffects="false" empstrength="1.25" applyfireeffects="false" ignorecover="true">
            <Affliction identifier="radiationsickness" strength="125" />
            <Affliction identifier="contaminated" strength="125" />
            <Affliction identifier="radiationsounds" strength="200" />
            <Affliction identifier="emp" strength="50" multiplybymaxvitality="true" />
          </Explosion>
          <ParticleEmitter particle="underwaterexplosion" anglemin="0" anglemax="360" particleamount="3" velocitymin="0" velocitymax="0" scalemin="15" scalemax="15" />
        </StatusEffect>
        <!-- volatile fulgurium fuel rod explosion -->
        <StatusEffect type="OnBroken" target="This" FissionRate="0.0" disabledeltatime="true">
          <RequiredItem items="fulguriumfuelrodvolatile" type="contained" />
          <sound file="Content/Items/Weapons/ExplosionLarge1.ogg" range="100000" />
          <sound file="Content/Items/Weapons/ExplosionLarge2.ogg" range="100000" />
          <Explosion range="3000" ballastfloradamage="1000" structuredamage="1200" itemdamage="2000" force="100.0" camerashake="0" flashrange="50000" flashduration="5.0" screencolor="60,200,255,255" screencolorrange="5000" screencolorduration="3.0" decal="explosion" decalsize="1">
            <Affliction identifier="explosiondamage" strength="2000" />
            <Affliction identifier="burn" strength="2000" />
            <Affliction identifier="stun" strength="60" />
          </Explosion>
          <Explosion range="6000" force="0.0" camerashake="200" camerashakerange="50000" showEffects="false" empstrength="1.25" applyfireeffects="false" ignorecover="true">
            <Affliction identifier="radiationsickness" strength="200" />
            <Affliction identifier="contaminated" strength="200" />
            <Affliction identifier="radiationsounds" strength="200" />
            <Affliction identifier="emp" strength="50" multiplybymaxvitality="true" />
          </Explosion>
          <ParticleEmitter particle="underwaterexplosion" anglemin="0" anglemax="360" particleamount="3" velocitymin="0" velocitymax="0" scalemin="15" scalemax="15" />
        </StatusEffect>
        <StatusEffect type="OnBroken" target="This">
          <sound file="Content/Items/Weapons/ExplosionDebris4.ogg" range="10000" />
          <sound file="Content/Items/Weapons/ExplosionDebris5.ogg" range="10000" />
        </StatusEffect>
        <StatusEffect type="OnBroken" target="Contained" Condition="0.0" delay="0.1" setvalue="true" />
        <SkillRequirementHint identifier="electrical" level="50" />
      </Reactor>
      <LightComponent range="10.0" lightcolor="255,255,255,0" powerconsumption="0" IsOn="false" castshadows="false" allowingameediting="false" alphablend="false">
        <IsActive targetitemcomponent="Reactor" temperature="gt 2" />
        <sprite texture="%ModDir:3045796581%/Content/Items/Reactor/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" alphablend="false">
        <IsActive targetitemcomponent="Reactor" temperaturecritical="eq true" />
        <sprite texture="%ModDir:3045796581%/Content/Items/Reactor/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" />
        <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" />
        <!-- Additional Input: Turn On -->
        <input name="poweron" displayname="connection.activate">
          <StatusEffect type="OnUse" target="This" poweron="true" setvalue="true" />
        </input>
        <!-- Additional Input: Activate Automatic Control -->
        <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>
        <Containable items="huskfigurine">
          <StatusEffect type="OnContaining" target="This" AvailableFuel="0" disabledeltatime="true" />
        </Containable>
      </ItemContainer>
      <!-- invisible inventory slot for the critical state effect item -->
      <ItemContainer capacity="1" maxstacksize="1" canbeselected="false">
        <Containable identifier="effect_reactorcritical" />
        <SubContainer capacity="1" maxstacksize="1">
          <Containable identifier="effect_reactortempincrease" />
        </SubContainer>
      </ItemContainer>
      <Repairable selectkey="Action" header="electricalrepairsheader" deteriorationspeed="0.125" mindeteriorationdelay="120" maxdeteriorationdelay="720" MinDeteriorationCondition="10" minsabotagecondition="10" RepairThreshold="75" fixDurationHighSkill="5" fixDurationLowSkill="25" msg="ItemMsgRepairScrewdriver" hudpriority="10">
        <Upgrade gameversion="2.1.18.1" AIRepairThreshold="75" RepairThreshold="75" />
        <GuiFrame relativesize="0.2,0.16" minsize="400,180" maxsize="480,280" anchor="Center" relativeoffset="0.0,0.27" style="ItemUI" />
        <RequiredSkill identifier="electrical" level="100" />
        <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="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="This,Character" targetlimbs="LeftHand,RightHand" AllowWhenBroken="true">
          <Conditional temperature="lt 1" />
          <Sound file="Content/Sounds/Damage/Electrocution1.ogg" range="1000" />
          <Explosion range="100.0" force="1.0" flames="false" shockwave="false" sparks="true" underwaterbubble="false" />
          <Affliction identifier="stun" strength="4" />
          <Affliction identifier="burn" strength="5" />
        </StatusEffect>
        <!-- set reactor condition to 30 and spawn an item inside it which damages it every second if repaired while active -->
        <StatusEffect type="OnSuccess" target="This,Character" condition="40.0" setvalue="true" comparison="And">
          <Conditional temperature="gt 1" />
          <Conditional condition="gte 40" />
          <Conditional isPlayer="eq true" />
        </StatusEffect>
        <StatusEffect type="OnSuccess" target="This,Character" comparison="And">
          <Conditional temperature="gt 1" />
          <Conditional isPlayer="eq true" />
          <SpawnItem identifier="effect_reactorcritical" spawnposition="ThisInventory" spawnifinventoryfull="false" spawnifcantbecontained="false" />
        </StatusEffect>
        <StatusEffect type="OnFailure" target="This,Character" condition="40.0" setvalue="true" comparison="And">
          <Conditional temperature="gt 1" />
          <Conditional condition="gte 40" />
          <Conditional isPlayer="eq true" />
        </StatusEffect>
        <StatusEffect type="OnFailure" target="This,Character" comparison="And">
          <Conditional temperature="gt 1" />
          <Conditional isPlayer="eq true" />
          <SpawnItem identifier="effect_reactorcritical" spawnposition="ThisInventory" spawnifinventoryfull="false" spawnifcantbecontained="false" />
        </StatusEffect>
        <!-- explode if reactor is still outputting energy while trying to repair | DISABLED
        <StatusEffect type="OnSuccess" target="This,Character" condition="0.0" setvalue="true" comparison="And">
          <Conditional temperature="gt 1" />
          <Conditional isPlayer="eq true" />
        </StatusEffect>
        <StatusEffect type="OnFailure" target="This,Character" condition="0.0" setvalue="true" comparison="And">
          <Conditional temperature="gt 1" />
          <Conditional isPlayer="eq true" />
        </StatusEffect>-->
      </Repairable>
    </Item>
  </Override>
</Items>