Drop rate not used for equipment drops.

This commit is contained in:
2023-08-04 13:04:57 -04:00
parent c5c323a316
commit 2cbb112f09
+4 -3
View File
@@ -109,7 +109,7 @@ public enum LootManager {
boolean hotzoneWasRan = false; boolean hotzoneWasRan = false;
if (fromDeath) { if (fromDeath) {
GenerateEquipmentDrop(mob, multiplier); GenerateEquipmentDrop(mob);
return; return;
} }
@@ -336,7 +336,7 @@ public enum LootManager {
} }
} }
public static void GenerateEquipmentDrop(Mob mob, float multiplier) { public static void GenerateEquipmentDrop(Mob mob) {
//do equipment here //do equipment here
@@ -349,8 +349,9 @@ public enum LootManager {
float equipmentRoll = ThreadLocalRandom.current().nextInt(99) + 1; float equipmentRoll = ThreadLocalRandom.current().nextInt(99) + 1;
float dropChance = me.getDropChance() * 100; float dropChance = me.getDropChance() * 100;
if (equipmentRoll > (dropChance * multiplier)) if (equipmentRoll > dropChance)
continue; continue;
MobLoot ml = new MobLoot(mob, me.getItemBase(), false); MobLoot ml = new MobLoot(mob, me.getItemBase(), false);
if (ml != null) { if (ml != null) {
ml.setIsID(true); ml.setIsID(true);