Item flags refactored

This commit is contained in:
2024-03-22 13:03:47 -04:00
parent f01fb6f848
commit eca71fa685
7 changed files with 45 additions and 46 deletions
+3 -3
View File
@@ -934,7 +934,7 @@ public class NPC extends AbstractCharacter {
}
if (!producedItem.isRandom())
ml.setIsID(true);
ml.flags.add(ItemFlags.Identified);
ml.loadEnchantments();
@@ -957,7 +957,7 @@ public class NPC extends AbstractCharacter {
ml.setDateToUpgrade(producedItem.getDateToUpgrade().getMillis());
ml.containerType = Enum.ItemContainerType.INVENTORY;
ml.setIsID(true);
ml.flags.add(ItemFlags.Identified);
this.charItemManager.addItemToInventory(ml);
}
@@ -1244,7 +1244,7 @@ public class NPC extends AbstractCharacter {
if (!DbManager.NPCQueries.UPDATE_ITEM_TO_INVENTORY(targetItem.getObjectUUID(), currentID))
return false;
targetItem.setIsID(true);
targetItem.flags.add(ItemFlags.Identified);
this.rolling.remove(targetItem);
this.charItemManager.addItemToInventory(targetItem);