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 { @@ -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);
return outItem;
}
@ -337,7 +339,6 @@ public enum LootManager { @@ -337,7 +339,6 @@ public enum LootManager {
try {
MobLoot toAdd = getGenTableItem(tableID, mob, inHotzone);
toAdd.setIsID(true);
if (toAdd != null)
mob.getCharItemManager().addItemToInventory(toAdd);
@ -366,7 +367,6 @@ public enum LootManager { @@ -366,7 +367,6 @@ public enum LootManager {
MobLoot ml = new MobLoot(mob, me.getItemBase(), false);
if (ml != null) {
ml.setIsID(true);
ml.setIsID(true);
mob.getCharItemManager().addItemToInventory(ml);
}

Loading…
Cancel
Save