Browse Source

added disc and rune to commander drops

lakebane-strongholds
FatBoy-DOTC 4 months ago
parent
commit
e5041147f4
  1. 24
      src/engine/gameManager/LootManager.java

24
src/engine/gameManager/LootManager.java

@ -688,7 +688,7 @@ public enum LootManager {
int baseLoot = rollRandomItem(random); int baseLoot = rollRandomItem(random);
ItemBase contract = ItemBase.getItemBase(baseLoot); ItemBase contract = ItemBase.getItemBase(baseLoot);
if (contract != null) { if (contract != null) {
MobLoot toAdd = new MobLoot(mob, contract, false); MobLoot toAdd = new MobLoot(mob, contract, true);
if (toAdd != null) if (toAdd != null)
mob.getCharItemManager().addItemToInventory(toAdd); mob.getCharItemManager().addItemToInventory(toAdd);
@ -697,11 +697,29 @@ public enum LootManager {
int glassID = rollRandomItem(126); int glassID = rollRandomItem(126);
ItemBase glassItem = ItemBase.getItemBase(glassID); ItemBase glassItem = ItemBase.getItemBase(glassID);
if (glassItem != null) { if (glassItem != null) {
MobLoot toAdd2 = new MobLoot(mob, glassItem, false); MobLoot toAdd2 = new MobLoot(mob, glassItem, true);
if (toAdd != null) if (toAdd2 != null)
mob.getCharItemManager().addItemToInventory(toAdd2); mob.getCharItemManager().addItemToInventory(toAdd2);
} }
int discID = rollRandomItem(3202);
ItemBase discItem = ItemBase.getItemBase(discID);
if (glassItem != null) {
MobLoot toAdd3 = new MobLoot(mob, discItem, true);
if (toAdd3 != null)
mob.getCharItemManager().addItemToInventory(toAdd3);
}
int runeID = rollRandomItem(3201);
ItemBase runeItem = ItemBase.getItemBase(runeID);
if (runeItem != null) {
MobLoot toAdd4 = new MobLoot(mob, runeItem, true);
if (toAdd4 != null)
mob.getCharItemManager().addItemToInventory(toAdd4);
}
} }
} }

Loading…
Cancel
Save