cosmetic XML formatting

master
Jaka Perovšek 2022-12-17 16:47:40 +01:00
parent 085072e583
commit fb774ff644
1 changed files with 58 additions and 68 deletions

View File

@ -2,14 +2,14 @@
{% if config['slug'] != "sunken_tapes" %}<!--This mod is based on Sunken Tapes. See https://git.kompot.si/jaka/barotrauma-sunken-tapes and https://steamcommunity.com/sharedfiles/filedetails/?id=2616577901 for the source material and code generator.-->{% else %}<!--Code licensed under GPLv3 and generated with a script available at https://git.kompot.si/jaka/barotrauma-sunken-tapes-->{% endif %}
<Items>
<Item name="Boombox" cargocontaineridentifier="metalcrate" identifier="{% if config['slug'] != "sunken_tapes" %}{{ config["slug"] }}-{% endif %}boombox" category="Equipment" Tags="mediumitem,boombox,sunken-tapes-player" scale="0.5" description="" price="850" impactsoundtag="impact_metal_light" isshootable="true" HideConditionBar="true">
<PreferredContainer primary="abandonedcrewcab" spawnprobability="0.1"/>
<PreferredContainer primary="outpostcrewcabinet" spawnprobability="0.1"/>
<PreferredContainer primary="abandonedcrewcab" spawnprobability="0.1" />
<PreferredContainer primary="outpostcrewcabinet" spawnprobability="0.1" />
<Price baseprice="500" soldeverywhere="false">
<Price locationtype="outpost" multiplier="1" minavailable="1" />
<Price locationtype="city" multiplier="0.7" minavailable="1"/>
<Price locationtype="research" multiplier="1.5" sold="false"/>
<Price locationtype="military" multiplier="1.5" sold="false"/>
<Price locationtype="mine" multiplier="1.5" sold="false"/>
<Price locationtype="city" multiplier="0.7" minavailable="1" />
<Price locationtype="research" multiplier="1.5" sold="false" />
<Price locationtype="military" multiplier="1.5" sold="false" />
<Price locationtype="mine" multiplier="1.5" sold="false" />
</Price>
<Deconstruct time="20">
<Item identifier="aluminium" />
@ -27,8 +27,7 @@
<InventoryIcon texture="%ModDir%/players_icons.png" sourcerect="0,0,64,42" origin="0.5,0.5" />
<Sprite texture="%ModDir%/players_sprites.png" sourcerect="0,0,117,76" depth="0.55" origin="0.5,0.5" />
<Body width="117" height="76" />
<LightComponent LightColor="0.0,0.85,0.0,0.7" range="4" powerconsumption="0" blinkfrequency="0" IsOn="false" canbeselected="false">
</LightComponent>
<LightComponent LightColor="0.0,0.85,0.0,0.7" range="4" powerconsumption="0" blinkfrequency="0" IsOn="false" canbeselected="false"></LightComponent>
<CustomInterface canbeselected="true" drawhudwhenequipped="true" allowuioverlap="true" msg="Equip to control">
<GuiFrame relativesize="0.10,0.07" anchor="CenterLeft" pivot="BottomLeft" relativeoffset="0.006,-0.05" style="ItemUI" />
<TickBox text="Play">
@ -36,7 +35,7 @@
<Conditional IsOn="false" />
<sound file="%ModDir%/sound_effects/boombox_play_cassette.ogg" type="OnUse" range="300" volume="1.0" />
</StatusEffect>
<StatusEffect type="OnSecondaryUse" targettype="This" IsOn="false" >
<StatusEffect type="OnSecondaryUse" targettype="This" IsOn="false">
<Conditional IsOn="true" />
<sound file="%ModDir%/sound_effects/boombox_play_cassette.ogg" type="OnUse" range="300" volume="1.0" />
<Use />
@ -48,8 +47,8 @@
<Remove />
</StatusEffect>
</Holdable>
<ItemContainer hideitems="true" drawinventory="true" capacity="1" maxstacksize="1" slotsperrow="6" itempos="0,0" iteminterval="0,0" itemrotation="0" canbeselected="false" containedspritedepth="0.79" >
<StatusEffect type="OnUse" targettype="Contained" >
<ItemContainer hideitems="true" drawinventory="true" capacity="1" maxstacksize="1" slotsperrow="6" itempos="0,0" iteminterval="0,0" itemrotation="0" canbeselected="false" containedspritedepth="0.79">
<StatusEffect type="OnUse" targettype="Contained">
<Use />
</StatusEffect>
<Containable items="cassette">
@ -58,17 +57,16 @@
</Item>
<Item name="Walkman BARO Brown" cargocontaineridentifier="metalcrate" identifier="{% if config['slug'] != "sunken_tapes" %}{{ config["slug"] }}-{% endif %}walkman-brown" category="Equipment" Tags="smallitem,walkman,sunken-tapes-player" scale="0.5" description="" price="350" impactsoundtag="impact_metal_light" isshootable="true" HideConditionBar="true">
<PreferredContainer primary="abandonedcrewcab" spawnprobability="0.1"/>
<PreferredContainer primary="outpostcrewcabinet" spawnprobability="0.1"/>
<PreferredContainer primary="abandonedcrewcab" spawnprobability="0.1" />
<PreferredContainer primary="outpostcrewcabinet" spawnprobability="0.1" />
<Price baseprice="300" soldeverywhere="false">
<Price locationtype="outpost" multiplier="1" minavailable="1" />
<Price locationtype="city" multiplier="0.7" minavailable="1"/>
<Price locationtype="research" multiplier="1.1" sold="false"/>
<Price locationtype="military" multiplier="1.1" sold="false"/>
<Price locationtype="mine" multiplier="1.1" sold="false"/>
<Price locationtype="city" multiplier="0.7" minavailable="1" />
<Price locationtype="research" multiplier="1.1" sold="false" />
<Price locationtype="military" multiplier="1.1" sold="false" />
<Price locationtype="mine" multiplier="1.1" sold="false" />
</Price>
<Deconstruct time="20">
</Deconstruct>
<Deconstruct time="20"></Deconstruct>
<Fabricate suitablefabricators="fabricator" requiredtime="45">
<RequiredSkill identifier="mechanical" level="45" />
<RequiredSkill identifier="electrical" level="55" />
@ -81,8 +79,7 @@
<InventoryIcon texture="%ModDir%/players_icons.png" sourcerect="64,0,64,40" origin="0.5,0.5" />
<Sprite texture="%ModDir%/players_sprites.png" sourcerect="117,0,51,33" depth="0.55" origin="0.5,0.5" />
<Body width="51" height="33" />
<LightComponent LightColor="0.0,0.0,0.0,0.0" range="1" powerconsumption="0" blinkfrequency="0" IsOn="false" canbeselected="false">
</LightComponent>
<LightComponent LightColor="0.0,0.0,0.0,0.0" range="1" powerconsumption="0" blinkfrequency="0" IsOn="false" canbeselected="false"></LightComponent>
<CustomInterface canbeselected="true" drawhudwhenequipped="true" allowuioverlap="true" msg="Equip to control">
<GuiFrame relativesize="0.10,0.07" anchor="CenterLeft" pivot="BottomLeft" relativeoffset="0.006,-0.05" style="ItemUI" />
<TickBox text="Play">
@ -112,17 +109,16 @@
</Item>
<Item name="Walkman BARO Silver" cargocontaineridentifier="metalcrate" identifier="{% if config['slug'] != "sunken_tapes" %}{{ config["slug"] }}-{% endif %}walkman-silver" category="Equipment" Tags="smallitem,walkman,sunken-tapes-player" scale="0.5" description="" price="450" impactsoundtag="impact_metal_light" isshootable="true" HideConditionBar="true">
<PreferredContainer primary="abandonedcrewcab" spawnprobability="0.1"/>
<PreferredContainer primary="outpostcrewcabinet" spawnprobability="0.1"/>
<PreferredContainer primary="abandonedcrewcab" spawnprobability="0.1" />
<PreferredContainer primary="outpostcrewcabinet" spawnprobability="0.1" />
<Price baseprice="450" soldeverywhere="false">
<Price locationtype="outpost" multiplier="1" sold="false"/>
<Price locationtype="city" multiplier="0.7" sold="false"/>
<Price locationtype="research" multiplier="1.0" minavailable="1"/>
<Price locationtype="military" multiplier="1.1" sold="false"/>
<Price locationtype="mine" multiplier="1.1" sold="false"/>
<Price locationtype="outpost" multiplier="1" sold="false" />
<Price locationtype="city" multiplier="0.7" sold="false" />
<Price locationtype="research" multiplier="1.0" minavailable="1" />
<Price locationtype="military" multiplier="1.1" sold="false" />
<Price locationtype="mine" multiplier="1.1" sold="false" />
</Price>
<Deconstruct time="20">
</Deconstruct>
<Deconstruct time="20"></Deconstruct>
<Fabricate suitablefabricators="fabricator" requiredtime="45">
<RequiredSkill identifier="mechanical" level="45" />
<RequiredSkill identifier="electrical" level="55" />
@ -135,8 +131,7 @@
<InventoryIcon texture="%ModDir%/players_icons.png" sourcerect="128,0,64,40" origin="0.5,0.5" />
<Sprite texture="%ModDir%/players_sprites.png" sourcerect="168,0,51,33" depth="0.55" origin="0.5,0.5" />
<Body width="51" height="33" />
<LightComponent LightColor="0.0,0.0,0.0,0.0" range="1" powerconsumption="0" blinkfrequency="0" IsOn="false" canbeselected="false">
</LightComponent>
<LightComponent LightColor="0.0,0.0,0.0,0.0" range="1" powerconsumption="0" blinkfrequency="0" IsOn="false" canbeselected="false"></LightComponent>
<CustomInterface canbeselected="true" drawhudwhenequipped="true" allowuioverlap="true" msg="Equip to control">
<GuiFrame relativesize="0.10,0.07" anchor="CenterLeft" pivot="BottomLeft" relativeoffset="0.006,-0.05" style="ItemUI" />
<TickBox text="Play">
@ -144,7 +139,7 @@
<Conditional IsOn="false" />
<sound file="%ModDir%/sound_effects/boombox_play_cassette.ogg" type="OnUse" range="300" volume="1.0" />
</StatusEffect>
<StatusEffect type="OnSecondaryUse" targettype="This" IsOn="false" >
<StatusEffect type="OnSecondaryUse" targettype="This" IsOn="false">
<Conditional IsOn="true" />
<sound file="%ModDir%/sound_effects/boombox_play_cassette.ogg" type="OnUse" range="300" volume="1.0" />
<Use />
@ -157,7 +152,7 @@
</StatusEffect>
</Holdable>
<ItemContainer itempos="3,-3" hideitems="false" drawinventory="true" capacity="1" maxstacksize="1" slotsperrow="1" iteminterval="0,0" itemrotation="180" canbeselected="false" containedspritedepth="0.6">
<StatusEffect type="OnUse" targettype="Contained" >
<StatusEffect type="OnUse" targettype="Contained">
<Use />
</StatusEffect>
<Containable items="cassette">
@ -166,17 +161,16 @@
</Item>
<Item name="Walkman BARO Black" cargocontaineridentifier="metalcrate" identifier="{% if config['slug'] != "sunken_tapes" %}{{ config["slug"] }}-{% endif %}walkman-black" category="Equipment" Tags="smallitem,walkman,sunken-tapes-player" scale="0.5" description="" price="450" impactsoundtag="impact_metal_light" isshootable="true" HideConditionBar="true">
<PreferredContainer primary="abandonedcrewcab" spawnprobability="0.1"/>
<PreferredContainer primary="outpostcrewcabinet" spawnprobability="0.1"/>
<PreferredContainer primary="abandonedcrewcab" spawnprobability="0.1" />
<PreferredContainer primary="outpostcrewcabinet" spawnprobability="0.1" />
<Price baseprice="450" soldeverywhere="false">
<Price locationtype="outpost" multiplier="1" sold="false"/>
<Price locationtype="city" multiplier="0.7" sold="false"/>
<Price locationtype="research" multiplier="1.1" sold="false"/>
<Price locationtype="military" multiplier="1.1" sold="false"/>
<Price locationtype="mine" multiplier="1.0" minavailable="1"/>
<Price locationtype="outpost" multiplier="1" sold="false" />
<Price locationtype="city" multiplier="0.7" sold="false" />
<Price locationtype="research" multiplier="1.1" sold="false" />
<Price locationtype="military" multiplier="1.1" sold="false" />
<Price locationtype="mine" multiplier="1.0" minavailable="1" />
</Price>
<Deconstruct time="20">
</Deconstruct>
<Deconstruct time="20"></Deconstruct>
<Fabricate suitablefabricators="fabricator" requiredtime="45">
<RequiredSkill identifier="mechanical" level="45" />
<RequiredSkill identifier="electrical" level="55" />
@ -189,8 +183,7 @@
<InventoryIcon texture="%ModDir%/players_icons.png" sourcerect="192,0,64,40" origin="0.5,0.5" />
<Sprite texture="%ModDir%/players_sprites.png" sourcerect="219,0,51,33" depth="0.55" origin="0.5,0.5" />
<Body width="51" height="33" />
<LightComponent LightColor="0.0,0.0,0.0,0.0" range="1" powerconsumption="0" blinkfrequency="0" IsOn="false" canbeselected="false">
</LightComponent>
<LightComponent LightColor="0.0,0.0,0.0,0.0" range="1" powerconsumption="0" blinkfrequency="0" IsOn="false" canbeselected="false"></LightComponent>
<CustomInterface canbeselected="true" drawhudwhenequipped="true" allowuioverlap="true" msg="Equip to control">
<GuiFrame relativesize="0.10,0.07" anchor="CenterLeft" pivot="BottomLeft" relativeoffset="0.006,-0.05" style="ItemUI" />
<TickBox text="Play">
@ -198,7 +191,7 @@
<Conditional IsOn="false" />
<sound file="%ModDir%/sound_effects/boombox_play_cassette.ogg" type="OnUse" range="300" volume="1.0" />
</StatusEffect>
<StatusEffect type="OnSecondaryUse" targettype="This" IsOn="false" >
<StatusEffect type="OnSecondaryUse" targettype="This" IsOn="false">
<Conditional IsOn="true" />
<sound file="%ModDir%/sound_effects/boombox_play_cassette.ogg" type="OnUse" range="300" volume="1.0" />
<Use />
@ -211,7 +204,7 @@
</StatusEffect>
</Holdable>
<ItemContainer itempos="3,-3" hideitems="false" drawinventory="true" capacity="1" maxstacksize="1" slotsperrow="1" iteminterval="0,0" itemrotation="180" canbeselected="false" containedspritedepth="0.6">
<StatusEffect type="OnUse" targettype="Contained" >
<StatusEffect type="OnUse" targettype="Contained">
<Use />
</StatusEffect>
<Containable items="cassette">
@ -220,17 +213,16 @@
</Item>
<Item name="Walkman BARO Blue" cargocontaineridentifier="metalcrate" identifier="{% if config['slug'] != "sunken_tapes" %}{{ config["slug"] }}-{% endif %}walkman-blue" category="Equipment" Tags="smallitem,walkman,sunken-tapes-player" scale="0.5" description="" price="450" impactsoundtag="impact_metal_light" isshootable="true" HideConditionBar="true">
<PreferredContainer primary="abandonedcrewcab" spawnprobability="0.1"/>
<PreferredContainer primary="outpostcrewcabinet" spawnprobability="0.1"/>
<PreferredContainer primary="abandonedcrewcab" spawnprobability="0.1" />
<PreferredContainer primary="outpostcrewcabinet" spawnprobability="0.1" />
<Price baseprice="450" soldeverywhere="false">
<Price locationtype="outpost" multiplier="1" sold="false"/>
<Price locationtype="city" multiplier="0.7" sold="false"/>
<Price locationtype="research" multiplier="1.1" sold="false"/>
<Price locationtype="military" multiplier="1.0" minavailable="1"/>
<Price locationtype="mine" multiplier="1.1" sold="false"/>
<Price locationtype="outpost" multiplier="1" sold="false" />
<Price locationtype="city" multiplier="0.7" sold="false" />
<Price locationtype="research" multiplier="1.1" sold="false" />
<Price locationtype="military" multiplier="1.0" minavailable="1" />
<Price locationtype="mine" multiplier="1.1" sold="false" />
</Price>
<Deconstruct time="20">
</Deconstruct>
<Deconstruct time="20"></Deconstruct>
<Fabricate suitablefabricators="fabricator" requiredtime="45">
<RequiredSkill identifier="mechanical" level="45" />
<RequiredSkill identifier="electrical" level="55" />
@ -243,8 +235,7 @@
<InventoryIcon texture="%ModDir%/players_icons.png" sourcerect="256,0,64,40" origin="0.5,0.5" />
<Sprite texture="%ModDir%/players_sprites.png" sourcerect="270,0,51,33" depth="0.55" origin="0.5,0.5" />
<Body width="51" height="33" />
<LightComponent LightColor="0.0,0.0,0.0,0.0" range="1" powerconsumption="0" blinkfrequency="0" IsOn="false" canbeselected="false">
</LightComponent>
<LightComponent LightColor="0.0,0.0,0.0,0.0" range="1" powerconsumption="0" blinkfrequency="0" IsOn="false" canbeselected="false"></LightComponent>
<CustomInterface canbeselected="true" drawhudwhenequipped="true" allowuioverlap="true" msg="Equip to control">
<GuiFrame relativesize="0.10,0.07" anchor="CenterLeft" pivot="BottomLeft" relativeoffset="0.006,-0.05" style="ItemUI" />
<TickBox text="Play">
@ -252,7 +243,7 @@
<Conditional IsOn="false" />
<sound file="%ModDir%/sound_effects/boombox_play_cassette.ogg" type="OnUse" range="300" volume="1.0" />
</StatusEffect>
<StatusEffect type="OnSecondaryUse" targettype="This" IsOn="false" >
<StatusEffect type="OnSecondaryUse" targettype="This" IsOn="false">
<Conditional IsOn="true" />
<sound file="%ModDir%/sound_effects/boombox_play_cassette.ogg" type="OnUse" range="300" volume="1.0" />
<Use />
@ -265,7 +256,7 @@
</StatusEffect>
</Holdable>
<ItemContainer itempos="3,-3" hideitems="false" drawinventory="true" capacity="1" maxstacksize="1" slotsperrow="1" iteminterval="0,0" itemrotation="180" canbeselected="false" containedspritedepth="0.6">
<StatusEffect type="OnUse" targettype="Contained" >
<StatusEffect type="OnUse" targettype="Contained">
<Use />
</StatusEffect>
<Containable items="cassette">
@ -277,17 +268,16 @@
{% for tape in tapes %}
<Item name="Tape: {{ tape.name }}" identifier="{% if config['slug'] != "sunken_tapes" %}{{ config["slug"] }}-{% endif %}cassette-{{ tape.identifier }}" category="Equipment" maxstacksize="8" Tags="smallitem,cassette" cargocontaineridentifier="metalcrate" scale="0.5" isshootable="true" impacttolerance="1.4" >
<PreferredContainer primary="abandonedcrewcab" spawnprobability="0.05"/>
<PreferredContainer primary="outpostcrewcabinet" minamount="0" maxamount="1" spawnprobability="0.05"/>
<PreferredContainer primary="abandonedcrewcab" spawnprobability="0.05" />
<PreferredContainer primary="outpostcrewcabinet" minamount="0" maxamount="1" spawnprobability="0.05" />
<Price baseprice="{{ tape.price }}" soldeverywhere="false">{% for location in ["outpost", "city", "research", "military", "mine"] %}
<Price locationtype="{{ location }}" multiplier="{{ tape.multipliers[loop.index0] }}" sold="{{ tape.sold[loop.index0] }}" minavailable="1" />{% endfor %}
</Price>
<Deconstruct time="10">
</Deconstruct>
<Deconstruct time="10"></Deconstruct>
<Fabricate suitablefabricators="fabricator" displayname="recycleitem" requiredtime="{{ song_lengths[loop.index0]*0.5 }}">
<RequiredSkill identifier="mechanical" level="25" />
<RequiredSkill identifier="electrical" level="45" />
<RequiredItem identifier="{% if config['slug'] != "sunken_tapes" %}{{ config["slug"] }}-{% endif %}cassette-{{ tape.identifier }}" mincondition="0.25" usecondition="true"/>
<RequiredItem identifier="{% if config['slug'] != "sunken_tapes" %}{{ config["slug"] }}-{% endif %}cassette-{{ tape.identifier }}" mincondition="0.25" usecondition="true" />
<RequiredItem identifier="{% if config['slug'] != "sunken_tapes" %}{{ config["slug"] }}-{% endif %}cassette-blank" />
<RequiredItem identifier="fpgacircuit" />
</Fabricate>
@ -325,7 +315,7 @@
</StatusEffect>
<Containable items="song" />
</ItemContainer>
<Holdable slots="Any,RightHand,LeftHand" msg="ItemMsgPickUpSelect" >
<Holdable slots="Any,RightHand,LeftHand" msg="ItemMsgPickUpSelect">
<StatusEffect type="OnBroken" target="This">
<Remove />
</StatusEffect>
@ -383,8 +373,8 @@
<!-- tape box -->
<Item name="Cassette Tape Box" identifier="{% if config['slug'] != "sunken_tapes" %}{{ config["slug"] }}-{% endif %}cassette-tape-box" category="Equipment" tags="smallitem,mobilecontainer,tool" cargocontaineridentifier="" showcontentsintooltip="true" Scale="0.5" fireproof="true" description="" impactsoundtag="impact_metal_heavy">
<PreferredContainer secondary="wreckstoragecab" spawnprobability="0.06"/>
<PreferredContainer primary="outpostcrewcabinet" minamount="0" maxamount="1" spawnprobability="0.2"/>
<PreferredContainer secondary="wreckstoragecab" spawnprobability="0.06" />
<PreferredContainer primary="outpostcrewcabinet" minamount="0" maxamount="1" spawnprobability="0.2" />
<Deconstruct time="10">
<Item identifier="steel" />
</Deconstruct>