added tape repair/duplication functionality and play fabrication/deconstruction
parent
6f99bb7c2e
commit
a1d5c81a06
|
@ -236,7 +236,8 @@ def build_xml_code(data, config):
|
|||
# render the template
|
||||
output_file.write(template1.render(tapes=data, config=config,
|
||||
condition_delta=condition_delta,
|
||||
affliction_delta=affliction_delta))
|
||||
affliction_delta=affliction_delta,
|
||||
song_lengths=song_lengths))
|
||||
|
||||
with open(f"./build/{config['slug']}_style.xml", "w+", encoding="utf8") as output_file:
|
||||
# render the template
|
||||
|
|
Binary file not shown.
After Width: | Height: | Size: 163 KiB |
Binary file not shown.
After Width: | Height: | Size: 4.8 KiB |
Binary file not shown.
|
@ -11,6 +11,18 @@
|
|||
<Price locationtype="military" multiplier="1.5" sold="false"/>
|
||||
<Price locationtype="mine" multiplier="1.5" sold="false"/>
|
||||
</Price>
|
||||
<Deconstruct time="20">
|
||||
<Item identifier="aluminium" />
|
||||
<Item identifier="copper" />
|
||||
</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'] }}/icons.png" sourcerect="0,0,64,64" origin="0.5,0.5" />
|
||||
<Sprite texture="Mods/{{ config['name'] }}/boombox.png" sourcerect="0,0,100,60" depth="0.55" origin="0.5,0.5" />
|
||||
|
@ -55,6 +67,16 @@
|
|||
<Price locationtype="military" multiplier="1.5" sold="false"/>
|
||||
<Price locationtype="mine" multiplier="1.5" 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'] }}/icons.png" sourcerect="0,0,64,64" origin="0.5,0.5" />
|
||||
<Sprite texture="Mods/{{ config['name'] }}/boombox.png" sourcerect="0,0,100,60" depth="0.55" origin="0.5,0.5" />
|
||||
|
@ -98,6 +120,15 @@
|
|||
<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>
|
||||
<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-blank" />
|
||||
<RequiredItem identifier="fpgacircuit" />
|
||||
</Fabricate>
|
||||
<InventoryIcon texture="Mods/{{ config['name'] }}/icons.png" sourcerect="0,{{ loop.index0*41 + 64 }},64,41" origin="0.5,0.5" />
|
||||
<Sprite texture="Mods/{{ config['name'] }}/icons.png" sourcerect="0,{{ loop.index0*41 + 64 }},64,41" depth="0.6" origin="0.5,0.5" />
|
||||
<Body width="48" height="48" />
|
||||
|
|
|
@ -1,3 +1,17 @@
|
|||
- identifier: blank
|
||||
name: Blank Tape
|
||||
source: ./source/original_audio/blank.ogg
|
||||
note: ""
|
||||
spawn:
|
||||
- location: abandonedcrewcab
|
||||
probability: 0.05
|
||||
price: 100
|
||||
multipliers: [1, 1, 1, 1, 1] # outpost, city, research, military, mine
|
||||
sold: [false, true, false, false, false] # outpost, city, research, military, mine
|
||||
no_of_uses: 12
|
||||
buffs: False
|
||||
buff_multiplier: 0.5
|
||||
|
||||
- identifier: dmx
|
||||
name: DMX - X Gon Give It To Ya
|
||||
source:
|
||||
|
|
Loading…
Reference in New Issue