|
|
@ -137,13 +137,14 @@ public class LootManager { |
|
|
|
if (generalItemTables.containsKey(bse.lootTable + 1)) { |
|
|
|
if (generalItemTables.containsKey(bse.lootTable + 1)) { |
|
|
|
int lootTableID = bse.lootTable + 1; |
|
|
|
int lootTableID = bse.lootTable + 1; |
|
|
|
MobLoot toAddHZ = getGenTableItem(lootTableID, mob); |
|
|
|
MobLoot toAddHZ = getGenTableItem(lootTableID, mob); |
|
|
|
if (toAddHZ != null) |
|
|
|
if (toAddHZ != null) { |
|
|
|
if (toAdd.getPrefix() != null && toAdd.getPrefix().isEmpty() == true && toAdd.getSuffix() != null && toAdd.getSuffix().isEmpty() == true) { |
|
|
|
if (toAddHZ.getPrefix() != null && toAddHZ.getPrefix().isEmpty() == true && toAddHZ.getSuffix() != null && toAddHZ.getSuffix().isEmpty() == true) { |
|
|
|
toAdd.setIsID(true); |
|
|
|
toAddHZ.setIsID(true); |
|
|
|
} |
|
|
|
} |
|
|
|
mob.getCharItemManager().addItemToInventory(toAddHZ); |
|
|
|
mob.getCharItemManager().addItemToInventory(toAddHZ); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
break; |
|
|
|
break; |
|
|
|
case "ITEM": |
|
|
|
case "ITEM": |
|
|
|
MobLoot disc = new MobLoot(mob, ItemBase.getItemBase(bse.itemBase), true); |
|
|
|
MobLoot disc = new MobLoot(mob, ItemBase.getItemBase(bse.itemBase), true); |
|
|
|