item name] * $rarity [label => minimum percent], highest first * $monsterList name / state ('loot','empty','failed') / file / loot rows * * Nothing is read from disk here. */ /** The rarity label for a drop chance. */ function znote_loot_rarity(float $chance, array $rarity): string { foreach ($rarity as $label => $percent) { if ($chance >= $percent) { return $label; } } return ''; } $lootParam = isset($_GET['lootrate']) ? '&lootrate' : ''; ?>
[+]
[x]
()