no enchant item identification
This commit is contained in:
@@ -170,7 +170,8 @@ public enum LootManager {
|
|||||||
|
|
||||||
outItem = new MobLoot(mob, ItemBase.getItemBase(itemUUID), false);
|
outItem = new MobLoot(mob, ItemBase.getItemBase(itemUUID), false);
|
||||||
Enum.ItemType outType = outItem.getItemBase().getType();
|
Enum.ItemType outType = outItem.getItemBase().getType();
|
||||||
|
outItem.setIsID(true);
|
||||||
|
outItem.setIsID(true);
|
||||||
if (outType.ordinal() == Enum.ItemType.WEAPON.ordinal() || outType.ordinal() == Enum.ItemType.ARMOR.ordinal() || outType.ordinal() == Enum.ItemType.JEWELRY.ordinal()) {
|
if (outType.ordinal() == Enum.ItemType.WEAPON.ordinal() || outType.ordinal() == Enum.ItemType.ARMOR.ordinal() || outType.ordinal() == Enum.ItemType.JEWELRY.ordinal()) {
|
||||||
if (outItem.getItemBase().isGlass() == false) {
|
if (outItem.getItemBase().isGlass() == false) {
|
||||||
try {
|
try {
|
||||||
@@ -218,6 +219,8 @@ public enum LootManager {
|
|||||||
if (prefixMod != null && prefixMod.action.length() > 0) {
|
if (prefixMod != null && prefixMod.action.length() > 0) {
|
||||||
inItem.setPrefix(prefixMod.action);
|
inItem.setPrefix(prefixMod.action);
|
||||||
inItem.addPermanentEnchantment(prefixMod.action, 0, prefixMod.level, true);
|
inItem.addPermanentEnchantment(prefixMod.action, 0, prefixMod.level, true);
|
||||||
|
inItem.setIsID(false);
|
||||||
|
inItem.setIsID(false);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -254,6 +257,8 @@ public enum LootManager {
|
|||||||
if (suffixMod != null && suffixMod.action.length() > 0) {
|
if (suffixMod != null && suffixMod.action.length() > 0) {
|
||||||
inItem.setSuffix(suffixMod.action);
|
inItem.setSuffix(suffixMod.action);
|
||||||
inItem.addPermanentEnchantment(suffixMod.action, 0, suffixMod.level, false);
|
inItem.addPermanentEnchantment(suffixMod.action, 0, suffixMod.level, false);
|
||||||
|
inItem.setIsID(false);
|
||||||
|
inItem.setIsID(false);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -320,8 +325,6 @@ 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,8 +350,6 @@ 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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -366,8 +367,6 @@ 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