<Items>
  <Item
    name="Nuclear Reactor"
    type ="Reactor"
    linkable="true">
    
    <trigger/>

    <fixrequirement name="Mechanical repairs">
      <skill name="Construction" level="40"/>
      <item name="Welding Tool"/>
      <item name="Wrench"/>
    </fixrequirement>

    <fixrequirement name="Electrical repairs">
      <skill name="Electrical Engineering" level="40"/>
      <item name="Wire"/>
      <item name="Screwdriver"/>
    </fixrequirement>

    <Sprite texture = "reactor.png"  depth="0.8"/>

    <Reactor canbeselected = "true">
      <GuiFrame rect="0,0,0.6,0.7" alignment="Center" color="0.0,0.0,0.0,0.8"/>
      <requireditem name="Fuel Rod" type="Contained" msg="Fuel required to run the engine"/>
      <StatusEffect type="OnActive" target="Contained" targetnames="Fuel Rod, Heat Absorber, Temperature Control Circuit" Condition="-0.1" />
      <sound file="reactor.ogg" type="OnActive" range="2000.0" volume="FissionRate" volumemultiplier="0.02f"/>

      <StatusEffect type="OnBroken" target="This" FissionRate="0.0" disabledeltatime="true" sound="Content/Items/Reactor/explosion.ogg">
        <Explosion range ="6.0" damage="500" structuredamage="600" stun="5.0" force="5.0"/>
      </StatusEffect>
    </Reactor>

    <ConnectionPanel canbeselected = "true" msg="Rewire [Screwdriver]">
      <requireditem name="Screwdriver" type="Equipped"/>
      <output name="power_out"/>
    </ConnectionPanel>

    <ItemContainer capacity="5">
      <Containable name="Fuel Rod">
        <StatusEffect type="OnContaining" target="This" AvailableFuel="2000.0" disabledeltatime="true"/>
      </Containable>
      <Containable name="Heat Absorber"/>
      <Containable name="Temperature Control Circuit"/>  
    </ItemContainer>
  </Item>

  <Item
    name="Fuel Rod"
    Tags="smallitem"
    pickdistance="150">

    <Sprite texture ="fuelrod.png"/>

    <Body radius="6" height="22" density="5"/>

    <Holdable handle1="0,0"/>
    <Pickable slots="RightHand,Any"/>
  </Item>

  <Item
    name="Heat Absorber"
    Tags="smallitem"
    pickdistance="150">

    <Sprite texture ="heatabsorber.png"/>

    <Body radius="6" height="22" density="5"/>

    <Holdable handle1="0,0"/>
    <Pickable slots="Any"/>
  </Item>

</Items>

