7 Days To Die
0 of 0

File information

Last updated

Original upload

Created by

jimsq1973

Uploaded by

jims1973

Virus scan

Safe to use

Tags for this mod

2 comments

  1. Messajah
    Messajah
    • supporter
    • 7 kudos
    Thanks for your research into which files control the probabilities. I'll contribute my improved version of your code though!

    {?xml version="1.0"?}
    {config}
      {!-- UL Default: Ranging from 100% to as low as 60% for the highest qualities. --}
      {set xpath="/recipes/modify/upgrade/@prob"}1.0{/set}
    {/config}

    That's it. Way more future-proof than your 700 explicit lines listing each recipe. This one just immediately searches for every "modify: upgrade" recipe that has a "prob" property and sets them all to 1.0. ;)

    You should release a new version with this improvement. It's more maintainable, and unlike your current release, this version won't break in the future when more recipes are added to Undead Legacy. :)

    Thanks again for your awesome research into which files control the upgrades! I probably wouldn't even have bothered with this if you hadn't started the work!

    PS: You have to replace every { and every } in the above with the actual XML < and > characters. Nexus Mods erases those characters from all messages (even inside code blocks) so I had no other option but replacing them all with { and } to be able to send this message.

    Take care! :)
    1. jims1973
      jims1973
      • premium
      • 0 kudos
      Thank you for that! I’m brand new to Xpath and hadn’t figured out global changes yet. I’ll be sure to give you a nod in the update.