Renamed class to not conflict with the java.lang version.

This commit is contained in:
2024-04-05 07:59:44 -04:00
parent dd84615ca1
commit c1ee6f5b52
388 changed files with 1807 additions and 1779 deletions
@@ -9,7 +9,7 @@
package engine.powers.poweractions;
import engine.Enum;
import engine.mbEnums;
import engine.gameManager.DbManager;
import engine.math.Vector3fImmutable;
import engine.objects.AbstractCharacter;
@@ -32,21 +32,21 @@ public class SetItemFlagPowerAction extends AbstractPowerAction {
@Override
protected void _startAction(AbstractCharacter source, AbstractWorldObject awo, Vector3fImmutable targetLoc, int trains, ActionsBase ab, PowersBase pb) {
if (source == null || awo == null || !(awo.getObjectType().equals(Enum.GameObjectType.Item)))
if (source == null || awo == null || !(awo.getObjectType().equals(mbEnums.GameObjectType.Item)))
return;
Item item = (Item) awo;
if (item.containerType != Enum.ItemContainerType.INVENTORY)
if (item.containerType != mbEnums.ItemContainerType.INVENTORY)
return; //Send an error here?
//until this is shown to do something else, just use it as item identify spell.
item.flags.add(Enum.ItemFlags.Identified);
item.flags.add(mbEnums.ItemFlags.Identified);
;
if (!DbManager.ItemQueries.UPDATE_FLAGS(item))
item.flags.remove(Enum.ItemFlags.Identified);
item.flags.remove(mbEnums.ItemFlags.Identified);
; //update failed, reset
//update inventory