Item flags refactored
This commit is contained in:
1 parent
f01fb6f848
commit
eca71fa685
7 files changed
+45
-46
No files matched your search
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user