Files
barotrauma-localmods/Prometheus/Items/Electricity/poweritems.xml
2025-04-01 09:00:53 +02:00

109 lines
9.9 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<Items>
<Item name="Battery vertical mount" identifier="batteryverticalvariant01" tags="battery" category="Electrical" Scale="0.3" description="" damagedbyexplosions="true" explosiondamagemultiplier="0.2">
<UpgradePreviewSprite texture="Content/UI/WeaponUI.png" sourcerect="64,961,32,22" origin="0.5,0.45" />
<Sprite texture="electrical.png" sourcerect="24,8,71,240" depth="0.8" />
<BrokenSprite texture="electrical.png" sourcerect="125,8,71,240" depth="0.8" maxcondition="80" fadein="true" />
<BrokenSprite texture="electrical.png" sourcerect="225,8,71,240" depth="0.8" maxcondition="0" />
<PowerContainer capacity="50" maxrechargespeed="500.0" maxoutput="1000.0" canbeselected="true" indicatorposition="51,167" indicatorsize="18,57" ishorizontal="false" msg="ItemMsgInteractSelect">
<GuiFrame relativesize="0.25,0.23" minsize="350,200" anchor="Center" style="ItemUI" />
<!--minsize="350,250" maxsize="420,300"-->
<StatusEffect type="OnActive" targettype="Contained" targets="loadable" Condition="2.0">
<!-- the statuseffect targets the contained item (a battery cell that's being charged), but the conditional targets the container (this battery) -->
<Conditional ChargePercentage="gt 0.01" targetcontainer="true" targetitemcomponent="PowerContainer" />
</StatusEffect>
<LightComponent range="10.0" lightcolor="255,255,255,0" powerconsumption="0" IsOn="true" castshadows="false" allowingameediting="false">
<Upgrade gameversion="0.9.600.0" lightcolor="255,255,255,0" />
<sprite texture="%ModDir%/Items/Electricity/electrical_lights.png" depth="0.025" sourcerect="24,8,71,240" origin="0.5,0.5" alpha="1.0" />
</LightComponent>
</PowerContainer>
<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="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="10" />
<input name="power_in" displayname="connection.powerin" />
<input name="set_rate" displayname="connection.batterysetrechargespeed" />
<output name="charge" displayname="connection.batterychargestatusout" maxwires="10" />
<output name="charge_%" displayname="connection.batterychargepercentage" maxwires="10" />
<output name="charge_rate" displayname="connection.batteryrechargespeedout" maxwires="10" />
<output name="condition_out" displayname="connection.conditionout" maxwires="10" />
</ConnectionPanel>
<ItemContainer capacity="9" maxstacksize="60" canbeselected="true" hideitems="true" hudpos="0.5,0.6" uilabel="ChargingDock">
<GuiFrame relativesize="0.2,0.2" anchor="Center" relativeoffset="0,0.2" style="ItemUI" />
<Containable items="loadable" />
</ItemContainer>
<Repairable selectkey="Action" header="electricalrepairsheader" deteriorationspeed="0.125" mindeteriorationdelay="120" maxdeteriorationdelay="240" mindeteriorationcondition="0" RepairThreshold="80" fixDurationHighSkill="5" fixDurationLowSkill="25" msg="ItemMsgRepairScrewdriver" hudpriority="10">
<StatusEffect type="InWater" target="This" condition="-0.5" />
<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="55" />
<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="MistSmoke" particlespersecond="60" anglemin="0" anglemax="360" distancemin="0" distancemax="25" velocitymin="0" velocitymax="20" mincondition="0.0" maxcondition="50.0" />
<ParticleEmitter particle="spark" particleburstamount="5" particlespersecond="5" anglemin="0" anglemax="359" velocitymin="100" velocitymax="500" particleburstinterval="2" scalemin="0.5" scalemax="1" mincondition="0.0" maxcondition="15.0" />
<ParticleEmitter particle="fleshsmoke" particlespersecond="2" scalemin="1" scalemax="2" mincondition="0.0" maxcondition="50.0" />
<StatusEffect type="OnFailure" target="Character" targetlimbs="LeftHand,RightHand">
<Sound file="Content/Sounds/Damage/Electrocution1.ogg" range="1000" />
<Affliction identifier="stun" strength="4" />
<Affliction identifier="burn" strength="5" />
</StatusEffect>
</Repairable>
</Item>
<Item name="Battery horizontal mount" identifier="batteryhorizontalvariant01" tags="battery, batterycellrecharger" category="Electrical" Scale="0.5" description="" damagedbyexplosions="true" explosiondamagemultiplier="0.2">
<UpgradePreviewSprite texture="Content/UI/WeaponUI.png" sourcerect="64,961,32,22" origin="0.5,0.45" />
<Sprite texture="electrical.png" sourcerect="11,257,99,90" depth="0.8" />
<BrokenSprite texture="electrical.png" sourcerect="111,257,99,90" depth="0.8" maxcondition="80" fadein="true" />
<BrokenSprite texture="electrical.png" sourcerect="211,257,99,90" depth="0.8" maxcondition="0" />
<PowerContainer capacity="50" maxrechargespeed="500.0" maxoutput="1000.0" canbeselected="true" indicatorposition="40,29" indicatorsize="20,27" ishorizontal="false" msg="ItemMsgInteractSelect">
<GuiFrame relativesize="0.25,0.23" minsize="350,200" anchor="Center" style="ItemUI" />
<!--minsize="350,250" maxsize="420,300"-->
<StatusEffect type="OnActive" targettype="Contained" targets="loadable" Condition="2.0">
<!-- the statuseffect targets the contained item (a battery cell that's being charged), but the conditional targets the container (this battery) -->
<Conditional ChargePercentage="gt 0.01" targetcontainer="true" targetitemcomponent="PowerContainer" />
</StatusEffect>
</PowerContainer>
<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="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="10" />
<input name="power_in" displayname="connection.powerin" />
<input name="set_rate" displayname="connection.batterysetrechargespeed" />
<output name="charge" displayname="connection.batterychargestatusout" maxwires="10" />
<output name="charge_%" displayname="connection.batterychargepercentage" maxwires="10" />
<output name="charge_rate" displayname="connection.batteryrechargespeedout" maxwires="10" />
<output name="condition_out" displayname="connection.conditionout" maxwires="10" />
</ConnectionPanel>
<ItemContainer capacity="9" maxstacksize="60" canbeselected="true" hideitems="true" hudpos="0.5,0.6" uilabel="ChargingDock">
<GuiFrame relativesize="0.2,0.2" anchor="Center" relativeoffset="0,0.2" style="ItemUI" />
<Containable items="loadable" />
</ItemContainer>
<Repairable selectkey="Action" header="electricalrepairsheader" deteriorationspeed="0.125" mindeteriorationdelay="120" maxdeteriorationdelay="240" mindeteriorationcondition="0" RepairThreshold="80" fixDurationHighSkill="5" fixDurationLowSkill="25" msg="ItemMsgRepairScrewdriver" hudpriority="10">
<StatusEffect type="InWater" target="This" condition="-0.5" />
<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="55" />
<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="MistSmoke" particlespersecond="60" anglemin="0" anglemax="360" distancemin="0" distancemax="25" velocitymin="0" velocitymax="20" mincondition="0.0" maxcondition="50.0" />
<ParticleEmitter particle="spark" particleburstamount="5" particlespersecond="5" anglemin="0" anglemax="359" velocitymin="100" velocitymax="500" particleburstinterval="2" scalemin="0.5" scalemax="1" mincondition="0.0" maxcondition="15.0" />
<ParticleEmitter particle="fleshsmoke" particlespersecond="2" scalemin="1" scalemax="2" mincondition="0.0" maxcondition="50.0" />
<StatusEffect type="OnFailure" target="Character" targetlimbs="LeftHand,RightHand">
<Sound file="Content/Sounds/Damage/Electrocution1.ogg" range="1000" />
<Affliction identifier="stun" strength="4" />
<Affliction identifier="burn" strength="5" />
</StatusEffect>
</Repairable>
</Item>
</Items>