identify loot without prefix or suffix
This commit is contained in:
@@ -100,8 +100,6 @@ public enum LootManager {
|
|||||||
chatMsg.setChannel(Enum.ChatChannelType.SYSTEM.getChannelID());
|
chatMsg.setChannel(Enum.ChatChannelType.SYSTEM.getChannelID());
|
||||||
DispatchMessage.dispatchMsgToAll(chatMsg);
|
DispatchMessage.dispatchMsgToAll(chatMsg);
|
||||||
}
|
}
|
||||||
if(it.getValue() == it.getItemBase().getBaseValue())
|
|
||||||
it.setIsID(true);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -322,6 +320,8 @@ public enum LootManager {
|
|||||||
MobLoot toAdd = getGenTableItem(tableID, mob, inHotzone);
|
MobLoot toAdd = getGenTableItem(tableID, mob, inHotzone);
|
||||||
|
|
||||||
if (toAdd != null) {
|
if (toAdd != null) {
|
||||||
|
if(toAdd.getPrefix() != null || toAdd.getSuffix() != null)
|
||||||
|
toAdd.setIsID(true);
|
||||||
mob.getCharItemManager().addItemToInventory(toAdd);
|
mob.getCharItemManager().addItemToInventory(toAdd);
|
||||||
}
|
}
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
@@ -347,6 +347,8 @@ public enum LootManager {
|
|||||||
continue;
|
continue;
|
||||||
MobLoot ml = new MobLoot(mob, me.getItemBase(), false);
|
MobLoot ml = new MobLoot(mob, me.getItemBase(), false);
|
||||||
if (ml != null)
|
if (ml != null)
|
||||||
|
if(ml.getPrefix() != null || ml.getSuffix() != null)
|
||||||
|
ml.setIsID(true);
|
||||||
mob.getCharItemManager().addItemToInventory(ml);
|
mob.getCharItemManager().addItemToInventory(ml);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -364,6 +366,8 @@ public enum LootManager {
|
|||||||
MobLoot lootItem = new MobLoot(mob, ItemBase.getItemBase(bse.itemBase), true);
|
MobLoot lootItem = new MobLoot(mob, ItemBase.getItemBase(bse.itemBase), true);
|
||||||
|
|
||||||
if (lootItem != null)
|
if (lootItem != null)
|
||||||
|
if(lootItem.getPrefix() != null || lootItem.getSuffix() != null)
|
||||||
|
lootItem.setIsID(true);
|
||||||
mob.getCharItemManager().addItemToInventory(lootItem);
|
mob.getCharItemManager().addItemToInventory(lootItem);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user