Browse Source

enchanted and non enchanted items show up correctly as "unidentified"

master
FatBoy-DOTC 1 year ago
parent
commit
17f099386a
  1. 6
      src/engine/gameManager/LootManager.java

6
src/engine/gameManager/LootManager.java

@ -198,7 +198,9 @@ public enum LootManager {
} }
} }
} }
if(outItem.getPrefix() != null && outItem.getPrefix().isEmpty() == false && outItem.getSuffix() != null && outItem.getSuffix().isEmpty() == false) if(outItem.getPrefix() != null && outItem.getPrefix().isEmpty() == false)
outItem.setIsID(false);
if(outItem.getSuffix() != null && outItem.getSuffix().isEmpty() == false)
outItem.setIsID(false); outItem.setIsID(false);
return outItem; return outItem;
} }
@ -337,7 +339,6 @@ public enum LootManager {
try { try {
MobLoot toAdd = getGenTableItem(tableID, mob, inHotzone); MobLoot toAdd = getGenTableItem(tableID, mob, inHotzone);
toAdd.setIsID(true);
if (toAdd != null) if (toAdd != null)
mob.getCharItemManager().addItemToInventory(toAdd); mob.getCharItemManager().addItemToInventory(toAdd);
@ -366,7 +367,6 @@ public enum LootManager {
MobLoot ml = new MobLoot(mob, me.getItemBase(), false); MobLoot ml = new MobLoot(mob, me.getItemBase(), false);
if (ml != null) { if (ml != null) {
ml.setIsID(true);
ml.setIsID(true); ml.setIsID(true);
mob.getCharItemManager().addItemToInventory(ml); mob.getCharItemManager().addItemToInventory(ml);
} }

Loading…
Cancel
Save