glass chance work

This commit is contained in:
2024-06-15 19:03:08 -05:00
parent 0d31bc4280
commit 488188e9c3
+2 -2
View File
@@ -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);