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
@@ -41,10 +41,13 @@ public class SetItemFlagPowerAction extends AbstractPowerAction {
return; //Send an error here?
//until this is shown to do something else, just use it as item identify spell.
item.setIsID(true);
item.flags.add(Enum.ItemFlags.Identified);
;
if (!DbManager.ItemQueries.UPDATE_FLAGS(item))
item.setIsID(false); //update failed, reset
item.flags.remove(Enum.ItemFlags.Identified);
; //update failed, reset
//update inventory
CharacterItemManager cim = source.charItemManager;