Fix for a walkman, added helpful messages, tweaked the holding positions. Adapted the prices and selling places for walkmans, made walkmans available in 4 versions. Corrected the sprites and icons.

master
Jaka Perovšek 2021-12-17 22:42:06 +01:00
parent 0bb6121ae7
commit 56f3f89909
1 changed files with 172 additions and 28 deletions

View File

@ -24,12 +24,12 @@
<RequiredItem identifier="fpgacircuit" /> <RequiredItem identifier="fpgacircuit" />
</Fabricate> </Fabricate>
<Upgrade gameversion="0.9.2.0" scale="0.5" /> <Upgrade gameversion="0.9.2.0" scale="0.5" />
<InventoryIcon texture="Mods/{{ config['name'] }}/players_icons.png" sourcerect="0,64,64,64" origin="0.5,0.5" /> <InventoryIcon texture="Mods/{{ config['name'] }}/players_icons.png" sourcerect="0,0,64,42" origin="0.5,0.5" />
<Sprite texture="Mods/{{ config['name'] }}/players_sprites.png" sourcerect="0,0,139,93" depth="0.55" origin="0.5,0.5" /> <Sprite texture="Mods/{{ config['name'] }}/players_sprites.png" sourcerect="0,0,117,76" depth="0.55" origin="0.5,0.5" />
<Body width="139" height="93" /> <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 LightColor="0.0,0.85,0.0,0.7" range="4" powerconsumption="0" blinkfrequency="0" IsOn="false" canbeselected="false">
</LightComponent> </LightComponent>
<CustomInterface canbeselected="true" drawhudwhenequipped="true" allowuioverlap="true"> <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" /> <GuiFrame relativesize="0.10,0.07" anchor="CenterLeft" pivot="BottomLeft" relativeoffset="0.006,-0.05" style="ItemUI" />
<TickBox text="Play"> <TickBox text="Play">
<StatusEffect type="OnUse" targettype="This" IsOn="true"> <StatusEffect type="OnUse" targettype="This" IsOn="true">
@ -43,7 +43,7 @@
</StatusEffect> </StatusEffect>
</TickBox> </TickBox>
</CustomInterface> </CustomInterface>
<Holdable slots="RightHand,LeftHand" aimable="false" holdpos="5,-65" holdangle="0" aimpos="5,30" handle1="0,30" handle2="0,30" swingamount="25,7" swingspeed="0.5" swingwhenusing="true" msg="ItemMsgPickupSelect"> <Holdable slots="RightHand,LeftHand" aimable="false" holdpos="5,-65" holdangle="0" aimpos="5,32" handle1="0,32" handle2="0,32" swingamount="25,7" swingspeed="0.5" swingwhenusing="true" msg="ItemMsgPickupSelect">
<StatusEffect type="OnBroken" target="This"> <StatusEffect type="OnBroken" target="This">
<Remove /> <Remove />
</StatusEffect> </StatusEffect>
@ -57,15 +57,15 @@
</ItemContainer> </ItemContainer>
</Item> </Item>
<Item name="Walkman" cargocontaineridentifier="metalcrate" identifier="{% if config['slug'] != "sunken_tapes" %}{{ config["slug"] }}-{% endif %}walkman" category="Equipment" Tags="smallitem,walkman,sunken-tapes-player" scale="0.5" description="" price="450" impactsoundtag="impact_metal_light" isshootable="true" HideConditionBar="true"> <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="abandonedcrewcab" spawnprobability="0.1"/>
<PreferredContainer primary="outpostcrewcabinet" spawnprobability="0.1"/> <PreferredContainer primary="outpostcrewcabinet" spawnprobability="0.1"/>
<Price baseprice="450" soldeverywhere="false"> <Price baseprice="300" soldeverywhere="false">
<Price locationtype="outpost" multiplier="1" minavailable="1" /> <Price locationtype="outpost" multiplier="1" minavailable="1" />
<Price locationtype="city" multiplier="0.7" minavailable="1"/> <Price locationtype="city" multiplier="0.7" minavailable="1"/>
<Price locationtype="research" multiplier="1.5" sold="false"/> <Price locationtype="research" multiplier="1.1" sold="false"/>
<Price locationtype="military" multiplier="1.5" sold="false"/> <Price locationtype="military" multiplier="1.1" sold="false"/>
<Price locationtype="mine" multiplier="1.5" sold="false"/> <Price locationtype="mine" multiplier="1.1" sold="false"/>
</Price> </Price>
<Deconstruct time="20"> <Deconstruct time="20">
</Deconstruct> </Deconstruct>
@ -78,10 +78,12 @@
<RequiredItem identifier="fpgacircuit" /> <RequiredItem identifier="fpgacircuit" />
</Fabricate> </Fabricate>
<Upgrade gameversion="0.9.2.0" scale="0.5" /> <Upgrade gameversion="0.9.2.0" scale="0.5" />
<InventoryIcon texture="Mods/{{ config['name'] }}/players_icons.png" sourcerect="0,0,64,64" origin="0.5,0.5" /> <InventoryIcon texture="Mods/{{ config['name'] }}/players_icons.png" sourcerect="64,0,64,40" origin="0.5,0.5" />
<Sprite texture="Mods/{{ config['name'] }}/players_sprites.png" sourcerect="139,0,51,33" depth="0.55" origin="0.5,0.5" /> <Sprite texture="Mods/{{ config['name'] }}/players_sprites.png" sourcerect="117,0,51,33" depth="0.55" origin="0.5,0.5" />
<Body width="51" height="33" /> <Body width="51" height="33" />
<CustomInterface canbeselected="true" drawhudwhenequipped="true" allowuioverlap="true"> <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" /> <GuiFrame relativesize="0.10,0.07" anchor="CenterLeft" pivot="BottomLeft" relativeoffset="0.006,-0.05" style="ItemUI" />
<TickBox text="Play"> <TickBox text="Play">
<StatusEffect type="OnUse" targettype="This" IsOn="true"> <StatusEffect type="OnUse" targettype="This" IsOn="true">
@ -95,7 +97,7 @@
</StatusEffect> </StatusEffect>
</TickBox> </TickBox>
</CustomInterface> </CustomInterface>
<Holdable slots="RightHand,LeftHand,Any" holdpos="5,-75" holdangle="0" aimpos="5,-65" handle1="-15,15" handle2="-15,15" swingamount="25,8" swingspeed="0.5" swingwhenusing="true" msg="ItemMsgPickupSelect"> <Holdable slots="RightHand,LeftHand,Any" holdpos="5,-75" holdangle="0" aimpos="0,-45" handle1="-5,15" handle2="-5,15" swingamount="25,8" swingspeed="0.5" swingwhenusing="true" msg="ItemMsgPickupSelect">
<StatusEffect type="OnBroken" target="This"> <StatusEffect type="OnBroken" target="This">
<Remove /> <Remove />
</StatusEffect> </StatusEffect>
@ -104,35 +106,177 @@
<StatusEffect type="OnUse" targettype="Contained" > <StatusEffect type="OnUse" targettype="Contained" >
<Use /> <Use />
</StatusEffect> </StatusEffect>
<StatusEffect type="OnContained" targettype="This"> <Containable items="cassette">
<SpawnItem identifiers="{% if config['slug'] != "sunken_tapes" %}{{ config["slug"] }}-{% endif %}walkman-background" spawnposition="ThisInventory" /> </Containable>
</ItemContainer>
</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"/>
<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>
<Deconstruct time="20">
</Deconstruct>
<Fabricate suitablefabricators="fabricator" requiredtime="45">
<RequiredSkill identifier="mechanical" level="45" />
<RequiredSkill identifier="electrical" level="55" />
<RequiredItem identifier="aluminium" />
<RequiredItem identifier="copper" />
<RequiredItem identifier="plastic" />
<RequiredItem identifier="fpgacircuit" />
</Fabricate>
<Upgrade gameversion="0.9.2.0" scale="0.5" />
<InventoryIcon texture="Mods/{{ config['name'] }}/players_icons.png" sourcerect="128,0,64,40" origin="0.5,0.5" />
<Sprite texture="Mods/{{ config['name'] }}/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>
<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">
<StatusEffect type="OnUse" targettype="This" IsOn="true">
<Conditional IsOn="false" />
<sound file="Mods/{{ config['name'] }}/sound_effects/boombox_play_cassette.ogg" type="OnUse" range="300" volume="1.0" />
</StatusEffect>
<StatusEffect type="OnSecondaryUse" targettype="This" IsOn="false" >
<Conditional IsOn="true" />
<sound file="Mods/{{ config['name'] }}/sound_effects/boombox_play_cassette.ogg" type="OnUse" range="300" volume="1.0" />
<Use />
</StatusEffect>
</TickBox>
</CustomInterface>
<Holdable slots="RightHand,LeftHand,Any" holdpos="5,-75" holdangle="0" aimpos="0,-45" handle1="-5,15" handle2="-5,15" swingamount="25,8" swingspeed="0.5" swingwhenusing="true" msg="ItemMsgPickupSelect">
<StatusEffect type="OnBroken" target="This">
<Remove />
</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" >
<Use />
</StatusEffect> </StatusEffect>
<Containable items="cassette"> <Containable items="cassette">
</Containable> </Containable>
</ItemContainer> </ItemContainer>
</Item> </Item>
<!-- Walkman background --> <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"/>
<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>
<Deconstruct time="20">
</Deconstruct>
<Fabricate suitablefabricators="fabricator" requiredtime="45">
<RequiredSkill identifier="mechanical" level="45" />
<RequiredSkill identifier="electrical" level="55" />
<RequiredItem identifier="aluminium" />
<RequiredItem identifier="copper" />
<RequiredItem identifier="plastic" />
<RequiredItem identifier="fpgacircuit" />
</Fabricate>
<Upgrade gameversion="0.9.2.0" scale="0.5" />
<InventoryIcon texture="Mods/{{ config['name'] }}/players_icons.png" sourcerect="192,0,64,40" origin="0.5,0.5" />
<Sprite texture="Mods/{{ config['name'] }}/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>
<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">
<StatusEffect type="OnUse" targettype="This" IsOn="true">
<Conditional IsOn="false" />
<sound file="Mods/{{ config['name'] }}/sound_effects/boombox_play_cassette.ogg" type="OnUse" range="300" volume="1.0" />
</StatusEffect>
<StatusEffect type="OnSecondaryUse" targettype="This" IsOn="false" >
<Conditional IsOn="true" />
<sound file="Mods/{{ config['name'] }}/sound_effects/boombox_play_cassette.ogg" type="OnUse" range="300" volume="1.0" />
<Use />
</StatusEffect>
</TickBox>
</CustomInterface>
<Holdable slots="RightHand,LeftHand,Any" holdpos="5,-75" holdangle="0" aimpos="0,-45" handle1="-5,15" handle2="-5,15" swingamount="25,8" swingspeed="0.5" swingwhenusing="true" msg="ItemMsgPickupSelect">
<StatusEffect type="OnBroken" target="This">
<Remove />
</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" >
<Use />
</StatusEffect>
<Containable items="cassette">
</Containable>
</ItemContainer>
</Item>
<Item name="Walkman background sprite" identifier="{% if config['slug'] != "sunken_tapes" %}{{ config["slug"] }}-{% endif %}walkman-background" Tags="cassette" category="Misc"> <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">
<Sprite texture="Mods/{{ config['name'] }}/players_sprites.png" sourcerect="139,66,28,12" depth="0.6" origin="0.5,0.5" /> <PreferredContainer primary="abandonedcrewcab" spawnprobability="0.1"/>
<Body width="28" height="12" /> <PreferredContainer primary="outpostcrewcabinet" spawnprobability="0.1"/>
<InventoryIcon texture="Content/Items/Electricity/signalcomp.png" sourcerect="0,160,4,4" origin="0.5,0.5" /> <Price baseprice="450" soldeverywhere="false">
<ItemComponent> <Price locationtype="outpost" multiplier="1" sold="false"/>
<StatusEffect type="OnNotContained" targettype="This"> <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>
<Fabricate suitablefabricators="fabricator" requiredtime="45">
<RequiredSkill identifier="mechanical" level="45" />
<RequiredSkill identifier="electrical" level="55" />
<RequiredItem identifier="aluminium" />
<RequiredItem identifier="copper" />
<RequiredItem identifier="plastic" />
<RequiredItem identifier="fpgacircuit" />
</Fabricate>
<Upgrade gameversion="0.9.2.0" scale="0.5" />
<InventoryIcon texture="Mods/{{ config['name'] }}/players_icons.png" sourcerect="256,0,64,40" origin="0.5,0.5" />
<Sprite texture="Mods/{{ config['name'] }}/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>
<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">
<StatusEffect type="OnUse" targettype="This" IsOn="true">
<Conditional IsOn="false" />
<sound file="Mods/{{ config['name'] }}/sound_effects/boombox_play_cassette.ogg" type="OnUse" range="300" volume="1.0" />
</StatusEffect>
<StatusEffect type="OnSecondaryUse" targettype="This" IsOn="false" >
<Conditional IsOn="true" />
<sound file="Mods/{{ config['name'] }}/sound_effects/boombox_play_cassette.ogg" type="OnUse" range="300" volume="1.0" />
<Use />
</StatusEffect>
</TickBox>
</CustomInterface>
<Holdable slots="RightHand,LeftHand,Any" holdpos="5,-75" holdangle="0" aimpos="0,-45" handle1="-5,15" handle2="-5,15" swingamount="25,8" swingspeed="0.5" swingwhenusing="true" msg="ItemMsgPickupSelect">
<StatusEffect type="OnBroken" target="This">
<Remove /> <Remove />
</StatusEffect> </StatusEffect>
<StatusEffect type="OnContained" targettype="This"> </Holdable>
<Conditional hastag="!eq walkman" targetcontainer="true" /> <ItemContainer itempos="3,-3" hideitems="false" drawinventory="true" capacity="1" maxstacksize="1" slotsperrow="1" iteminterval="0,0" itemrotation="180" canbeselected="false" containedspritedepth="0.6">
<Remove /> <StatusEffect type="OnUse" targettype="Contained" >
<Use />
</StatusEffect> </StatusEffect>
</ItemComponent> <Containable items="cassette">
</Containable>
</ItemContainer>
</Item> </Item>
<!-- Cassette Tapes --> <!-- Cassette Tapes -->
{% for tape in tapes %} {% 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.3" > <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="abandonedcrewcab" spawnprobability="0.05"/>
<PreferredContainer primary="outpostcrewcabinet" minamount="0" maxamount="1" 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 baseprice="{{ tape.price }}" soldeverywhere="false">{% for location in ["outpost", "city", "research", "military", "mine"] %}