Hi all, I have a problem with custom loot regarding Buried Treasure.
I am not really a modder by any means, but I wanted to buff what you could find inside the Buried Treasure (from the maps that randomly drop) due to them feeling lackluster compared to just.. farming quests or farming the mats for bullets (since these boxes basically just drop bullets and money)
here is the loot.xml modlet I made:
<append xpath="/lootcontainers/lootgroup[@name='groupBuriedTreasure']" >
<!--SKILL BOOKS-->
<item group="skillMagazines" count="2,4" prob="0.60" />
<!--RARE FOOD/DRINK-->
<item group="groupDrinksRare" count="2,5" prob="0.75" />
<item group="rareFoodDrink" count="2,5" prob="0.75" />
<!--IRON/STEEL AND FIBER-->
<item group="groupCraftingRare" count="1,4" prob="0.85" />
<!--WEAPON MOD BUNDLES BOOKS-->
<item name="questRewardT1MeleeModsBundle" count="1" prob="0.75" />
<item name="questRewardT2MeleeModsBundle" count="1" prob="0.45" />
<item name="questRewardT3MeleeModsBundle" count="1" prob="0.15" />
<item name="questRewardT1RangedModsBundle" count="1" prob="0.75" />
<item name="questRewardT2RangedModsBundle" count="1" prob="0.45" />
<item name="questRewardT3RangedModsBundle" count="1" prob="0.15" />
<!--RARE TOOLS-->
<item name="meleeToolPickT3Auger" count="1" prob="0.02" />
<item name="meleeToolAxeT3Chainsaw" count="1" prob="0.02" />
<!--RARE APPAREL-->
<item name="apparelCoatJacketLetterZU" count="1" prob="0.3" />
<item name="apparelRunningShoesHP" count="1" prob="0.3" />
none of these percentages are finalized, I just wanted to see the functionality/see if I could get it working, and the items do spawn in these Treasure Chests, but they seem to spawn with 100% certainty, which I do not want. for example, I wanted the auger/chainsaw to have a very low drop chance (between 1-2% or static 2%) but after opening a few boxes, it seems to always drop everything. I think maybe I misread the function of the "prob" parameter as I thought that would limit the chance of it appearing in the chest.
I am not really a modder by any means, but I wanted to buff what you could find inside the Buried Treasure (from the maps that randomly drop) due to them feeling lackluster compared to just.. farming quests or farming the mats for bullets (since these boxes basically just drop bullets and money)
here is the loot.xml modlet I made:
<append xpath="/lootcontainers/lootgroup[@name='groupBuriedTreasure']" >
<!--SKILL BOOKS-->
<item group="skillMagazines" count="2,4" prob="0.60" />
<!--RARE FOOD/DRINK-->
<item group="groupDrinksRare" count="2,5" prob="0.75" />
<item group="rareFoodDrink" count="2,5" prob="0.75" />
<!--IRON/STEEL AND FIBER-->
<item group="groupCraftingRare" count="1,4" prob="0.85" />
<!--WEAPON MOD BUNDLES BOOKS-->
<item name="questRewardT1MeleeModsBundle" count="1" prob="0.75" />
<item name="questRewardT2MeleeModsBundle" count="1" prob="0.45" />
<item name="questRewardT3MeleeModsBundle" count="1" prob="0.15" />
<item name="questRewardT1RangedModsBundle" count="1" prob="0.75" />
<item name="questRewardT2RangedModsBundle" count="1" prob="0.45" />
<item name="questRewardT3RangedModsBundle" count="1" prob="0.15" />
<!--RARE TOOLS-->
<item name="meleeToolPickT3Auger" count="1" prob="0.02" />
<item name="meleeToolAxeT3Chainsaw" count="1" prob="0.02" />
<!--RARE APPAREL-->
<item name="apparelCoatJacketLetterZU" count="1" prob="0.3" />
<item name="apparelRunningShoesHP" count="1" prob="0.3" />
none of these percentages are finalized, I just wanted to see the functionality/see if I could get it working, and the items do spawn in these Treasure Chests, but they seem to spawn with 100% certainty, which I do not want. for example, I wanted the auger/chainsaw to have a very low drop chance (between 1-2% or static 2%) but after opening a few boxes, it seems to always drop everything. I think maybe I misread the function of the "prob" parameter as I thought that would limit the chance of it appearing in the chest.