<?xml version="1.0" encoding="utf-8" ?>
<Items>
  <Item
    name="Engine"
    nameidentifier="engine"
    Aliases="Engine"
    category="Legacy"
    tags="engine"
    linkable="true"
    allowedupgrades="engines">

    <Sprite texture="engine.png" depth="0.8" sourcerect="0,0,373,113" canflipx="true"/>

    <trigger x="70" y="0" width="300" height="113"/>

    <Engine minvoltage="0.5" powerconsumption="2000.0" maxforce="2000" canbeselected="true" propellerpos="-130,0">
      <GuiFrame relativesize="0.2,0.18" minsize="300,180" anchor="Center" style="ItemUI" />
      <StatusEffect type="InWater" target="This" condition="-2.0"/>
      <sound file="Content/Items/Engine/Engine.ogg" type="OnActive" range="3000.0" volumeproperty="CurrentVolume" loop="true"/>
    </Engine>
    
    <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"/>
      <RequiredItem identifier="screwdriver" type="Equipped"/>
      <input name="power_in" displayname="connection.powerin"/>
      <input name="set_force" displayname="connection.setforce"/>
    </ConnectionPanel>

    <Repairable selectkey="Action" header="mechanicalrepairsheader" fixDurationHighSkill="5" fixDurationLowSkill="30" msg="ItemMsgRepairWrench" 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="mechanical" level="30"/>
      <RequiredItem identifier="wrench" type="equipped"/>
    </Repairable>
    <aitarget sightrange="500" soundrange="8000" staticsight="true" fadeouttime="5"/>
  </Item>

  <Item
    name="Shuttle Engine"
    nameidentifier="shuttleengine"
    Aliases="Shuttle Engine"
    category="Legacy"
    tags="engine"
    allowedupgrades="engines">

    <Sprite texture="Content/Items/Legacy/engine.png" depth="0.8" sourcerect="0,115,224,73" canflipx="true"/>

    <trigger x="15" y ="0" width="194" height="73"/>

    <Engine minvoltage="0.5" powerconsumption="500.0" maxforce="300" canbeselected = "true" propellerpos="-80,0">
      <GuiFrame relativesize="0.2,0.18" minsize="400,180" anchor="Center" style="ItemUI"/>
      <sound file="Content/Items/Engine/Engine.ogg" type="OnActive" range="3000.0" volumeproperty="CurrentVolume" loop="true"/>
    </Engine>

    <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"/>
      <RequiredItem identifier="screwdriver" type="Equipped"/>
      <input name="power_in" displayname="connection.powerin"/>
      <input name="set_force" displayname="connection.setforce"/>
    </ConnectionPanel>
    
    <Repairable selectkey="Action" header="mechanicalrepairsheader" fixDurationHighSkill="5" fixDurationLowSkill="10" msg="ItemMsgRepairWrench" 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="mechanical" level="30"/>
      <RequiredItem identifier="wrench" type="equipped"/>
    </Repairable>
    <aitarget sightrange="500" soundrange="5000" staticsight="true" fadeouttime="5"/>
  </Item>
</Items>