Items/ExtraLoot
* corrected calculation after writing a simulator and some consultation * sad thing is, this will not even be visible after rounding for display
This commit is contained in:
parent
29f80f9a76
commit
be06b1e0cf
1 changed files with 3 additions and 3 deletions
|
|
@ -1255,11 +1255,11 @@ class SpellPage extends GenericPage
|
|||
$pctStack = [];
|
||||
for ($i = 1; $i <= $maxStack; $i++)
|
||||
{
|
||||
$pctStack[$i] = (($baseChance ** $i) * 100) / $baseChance ;
|
||||
$pctStack[$i] = (($baseChance ** $i) * 100) / $baseChance;
|
||||
|
||||
// remove chance from previous stacks
|
||||
for ($j = 1; $j < $i; $j++)
|
||||
$pctStack[$j] -= ($pctStack[$i] / ($i - 1));
|
||||
if ($i > 1)
|
||||
$pctStack[$i-1] -= $pctStack[$i];
|
||||
}
|
||||
|
||||
// cleanup tiny fractions
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue