|
|
@ -658,10 +658,9 @@ public enum LootManager { |
|
|
|
if (random > 971071) |
|
|
|
if (random > 971071) |
|
|
|
random = 971071; |
|
|
|
random = 971071; |
|
|
|
|
|
|
|
|
|
|
|
int baseLoot = rollRandomItem(random); |
|
|
|
ItemBase present = ItemBase.getItemBase(random); |
|
|
|
ItemBase contract = ItemBase.getItemBase(baseLoot); |
|
|
|
if (present != null) { |
|
|
|
if (contract != null) { |
|
|
|
MobLoot toAdd = new MobLoot(mob, present, true); |
|
|
|
MobLoot toAdd = new MobLoot(mob, contract, true); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (toAdd != null) |
|
|
|
if (toAdd != null) |
|
|
|
mob.getCharItemManager().addItemToInventory(toAdd); |
|
|
|
mob.getCharItemManager().addItemToInventory(toAdd); |
|
|
|