|
|
@ -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); |
|
|
|