Formula behind the scenes doesn't make any sense.
$total = (($chance/100) * ($lootdrop['probability']/100)) * 100;
$chance_total += $chance;
if($lootdrop['probability'] == 0)
$chance = 0;
if($lootdrop['probability'] > 0 && $lootdrop['probability'] < 100)
$chance = $total;
if($lootdrop['probability'] >= 100)
$chance = $chance;
$chance_total not used, of course $chance = $chance, etc.