Browse Source

stronghold guardian fix

lakebane-strongholds
FatBoy-DOTC 6 months ago
parent
commit
bf7e5c6333
  1. 8
      src/engine/gameManager/LootManager.java

8
src/engine/gameManager/LootManager.java

@ -683,11 +683,17 @@ public enum LootManager {
MobLoot goldAmount = new MobLoot(mob, gold); MobLoot goldAmount = new MobLoot(mob, gold);
mob.getCharItemManager().addItemToInventory(goldAmount); mob.getCharItemManager().addItemToInventory(goldAmount);
} }
if (ThreadLocalRandom.current().nextInt(100) < 75) if (ThreadLocalRandom.current().nextInt(100) < 35)
DropPresent(mob); DropPresent(mob);
if (commander) { if (commander) {
if (ThreadLocalRandom.current().nextInt(100) < 25)
DropPresent(mob);
if (ThreadLocalRandom.current().nextInt(100) < 25)
DropPresent(mob);
//chance for glass //chance for glass
if (ThreadLocalRandom.current().nextInt(100) < 75) { if (ThreadLocalRandom.current().nextInt(100) < 75) {
int glassID = rollRandomItem(126); int glassID = rollRandomItem(126);

Loading…
Cancel
Save