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

Loading…
Cancel
Save