Browse Source

glass chance work

lakebane-new
FatBoy-DOTC 5 months ago
parent
commit
488188e9c3
  1. 4
      src/engine/gameManager/LootManager.java

4
src/engine/gameManager/LootManager.java

@ -102,8 +102,8 @@ public enum LootManager {
float dropRate; float dropRate;
mob.hasContractOrRune = true; mob.hasContractOrRune = true;
//1 in 10,000 chance to drop glass //1 in 1,000 chance to drop glass
if(ThreadLocalRandom.current().nextInt(1,10000) == 500){ if(ThreadLocalRandom.current().nextInt(1,1000) == 500){
ItemBase glassItem = rollRandomItem(126); ItemBase glassItem = rollRandomItem(126);
if(glassItem != null) { if(glassItem != null) {
MobLoot toAdd = new MobLoot(mob, glassItem, false); MobLoot toAdd = new MobLoot(mob, glassItem, false);

Loading…
Cancel
Save