Unfound Loot
So I don't understand something in the description example compared to the mod default settings. In the description it says: " If you set the ammo modifier to 0.5, the mod will remove 80%*0.5=40% of ammo. ". But the mod has a default setting of 85, and some items has a default of 1.3 and 1.2. Using the math in the example that would mean that for example the 1.3 would result in a 110.5% chance of removal, but it clearly doesn't work like that in-game. Could anyone explain what I'm missing?
Now, if you increase any modifier above 1.0, your ceiling of the random removal chance increases to 120/140/...%. But the dice stays the same, from 0 to 99. With increased removal chance after modifiers, you get higher chance the dice value is going to be lower than the removal chance.See below.Although, it works differently for item stacks, primarily ammo. They are reduced using flat scaling, for example 20 slugs * 85% - that's why default ammo modifier for NPCs is 0.3, to find more ammo on killed actors. If you increase ammo modifier above 1.0 for both world items and NPCs, you will find ammo only in owned locations, locked containers, initially dead actors and probably some other exclusions I forgot about.
1 reply, 5 total
1 reply, 4 total
I just explained how it works, you clearly did not even read my post.110.55% removal chance means that dice rolls 1-99 are guaranteed to be lower in 10% of cases.Yep, I completely forgot how it works:
1 - Math.pow(1 - 0.85, 1.1)
where 0.85 is the global chance, 1.1 is a modifier
1 reply, 3 total
1 reply, 2 total
(1 - Math.pow(1 - 0.85, 1.1)) * 100 = 87.59203999415325
where 0.85 is the global chance, and 1.1 is a modifier
You can test different values in the browser console (F12 -> Console)
(1 - Math.pow(1 - 0.90, 1.5)) * 100 = 96.83772233983163
(1 - Math.pow(1 - 0.50, 1.2)) * 100 = 56.472471835193794
The point is, the removal chance stays below 100% to compare it with the dice.
1 reply