Files
barotrauma-gamefiles/Content/Items/Legacy/legacyoxygengenerator.xml
2025-03-29 16:43:58 +01:00

50 lines
2.6 KiB
XML

<Items>
<Item
name="Oxygen Generator"
nameidentifier="oxygenerator"
aliases="Oxygen Generator"
category="Legacy"
tags="oxygengenerator"
linkable="true"
allowedupgrades="oxygengenerators"
allowedlinks="vent">
<Sprite texture="oxygengenerator.png" depth="0.8" sourcerect="0,0,128,128"/>
<Repairable selectkey="Action" header="mechanicalrepairsheader" fixDurationHighSkill="5" fixDurationLowSkill="30" msg="ItemMsgRepairWrench" hudpriority="10"
DeteriorationSpeed="0.05" MinDeteriorationCondition="20">
<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>
<OxygenGenerator powerconsumption="1000.0" minvoltage="0.5" canbeselected = "true">
<poweronsound file="Content/Items/PowerOnLight2.ogg" range="1500" loop="false" />
<sound file="Content/Items/OxygenGenerator/OxygenGenerator.ogg" type="OnActive" range="1000.0" volumeproperty="CurrFlow" volume="0.001" loop="true"/>
<StatusEffect type="OnFire" target="This" Condition="-0.5"/>
<StatusEffect type="OnActive" target="Contained" targetidentifiers="oxygentank" Condition="2.0"/>
<StatusEffect type="OnBroken" target="This" disabledeltatime="true">
<sound file="Content/Items/Weapons/ExplosionMedium1.ogg" range="3000" />
<sound file="Content/Items/Weapons/ExplosionMedium2.ogg" range="3000" />
<sound file="Content/Items/Weapons/ExplosionMedium3.ogg" range="3000" />
<Explosion range="50" stun="0" force="3.0" flames="false" shockwave="false" sparks="true" underwaterbubble="false"/>
</StatusEffect>
<StatusEffect type="OnBroken" target="This">
<sound file="Content/Items/Weapons/ExplosionDebris2.ogg" range="2000" />
</StatusEffect>
</OxygenGenerator>
<trigger/>
<ItemContainer capacity="15" maxstacksize="60" canbeselected = "true" msg="ItemMsgOxygenRefill">
<GuiFrame relativesize="0.25,0.2" anchor="Center" style="ItemUI" />
<Containable identifiers="oxygentank,oxygenitetank"/>
</ItemContainer>
<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"/>
</ConnectionPanel>
</Item>
</Items>