Rework of drop rate usage.

This commit is contained in:
2023-08-04 12:23:55 -04:00
parent 7ac78df913
commit c5c323a316
+2 -2
View File
@@ -122,13 +122,13 @@ public enum LootManager {
break;
case "LOOT":
if (ThreadLocalRandom.current().nextInt(100) > NORMAL_DROP_RATE)
if (ThreadLocalRandom.current().nextInt(100) <= NORMAL_DROP_RATE)
GenerateLootDrop(mob, bse.lootTable, bse.dropChance, multiplier, false); //generate normal loot drop
// Generate hotzone loot if in hotzone
if (inHotzone == true && hotzoneWasRan == false)
if (generalItemTables.containsKey(bse.lootTable + 1) && ThreadLocalRandom.current().nextInt(100) > HOTZONE_DROP_RATE) {
if (generalItemTables.containsKey(bse.lootTable + 1) && ThreadLocalRandom.current().nextInt(100) <= HOTZONE_DROP_RATE) {
GenerateLootDrop(mob, bse.lootTable + 1, bse.dropChance, multiplier, true); //generate loot drop from hotzone table
hotzoneWasRan = true;
}