<?xml version="1.0" encoding="utf-8" ?>
<Items>
  <Item
    name="Junction Box"
    nameidentifier="junctionbox"
    Aliases="Junction Box"
    category="Legacy"
    tags="junctionbox"
    linkable="true"
    allowedupgrades="junctionboxes"
    
    description="">
    
    <Sprite texture="junctionbox.png" sourcerect="0,0,70,84" depth="0.8" canflipx="false"/>
    <BrokenSprite texture="junctionbox.png" sourcerect="70,0,70,84" depth="0.8" maxcondition="50" fadein="true"/>
    <BrokenSprite texture="junctionbox.png" sourcerect="140,0,70,84" depth="0.8" maxcondition="0"/>

    <Repairable selectkey="Action" header="electricalrepairsheader" fixDurationHighSkill="3" fixDurationLowSkill="10" msg="ItemMsgRepairScrewdriver" hudpriority="10">
      <GuiFrame relativesize="0.2,0.16" minsize="400,180" maxsize="480,280" anchor="Center" relativeoffset="0.0,0.27" style="ItemUI"/>
      <RequiredSkill identifier="electrical" level="40"/>
      <RequiredItem identifier="screwdriver" type="Equipped"/>
    </Repairable>

    <PowerTransfer canbeselected = "true">
      <GuiFrame relativesize="0.2,0.14" minsize="450,160" anchor="Center" style="ItemUI" />
      <StatusEffect type="InWater" target="This" condition="-0.5"/>
    </PowerTransfer>

    <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="30"/>
      <StatusEffect type="OnFailure" target="Character">
        <Explosion range="50.0" stun="0" force="2.0" flames="false" shockwave="false" sparks="true" underwaterbubble="false"/>
      </StatusEffect>

      <RequiredItem identifier="screwdriver" type="Equipped"/>
      <output name="power" displayname="connection.power"/>
      <output name="signal_0" displayname="connection.signalx~[num]=0" fallbackdisplayname="connection.signalinx~[num]=0"/>
      <output name="signal_1" displayname="connection.signalx~[num]=1" fallbackdisplayname="connection.signalinx~[num]=1"/>
      <output name="signal_2" displayname="connection.signalx~[num]=2" fallbackdisplayname="connection.signalinx~[num]=2"/>
      <output name="signal_3" displayname="connection.signalx~[num]=3" fallbackdisplayname="connection.signalinx~[num]=3"/>   
    </ConnectionPanel>
  </Item>
</Items>