forked from MagicBane/Server
Project cleanup pre merge.
This commit is contained in:
@@ -25,41 +25,41 @@ import java.sql.SQLException;
|
||||
|
||||
public class SetItemFlagPowerAction extends AbstractPowerAction {
|
||||
|
||||
public SetItemFlagPowerAction(ResultSet rs) throws SQLException {
|
||||
super(rs);
|
||||
}
|
||||
public SetItemFlagPowerAction(ResultSet rs) throws SQLException {
|
||||
super(rs);
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void _startAction(AbstractCharacter source, AbstractWorldObject awo, Vector3fImmutable targetLoc, int trains, ActionsBase ab, PowersBase pb) {
|
||||
@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)))
|
||||
return;
|
||||
if (source == null || awo == null || !(awo.getObjectType().equals(Enum.GameObjectType.Item)))
|
||||
return;
|
||||
|
||||
Item item = (Item) awo;
|
||||
Item item = (Item) awo;
|
||||
|
||||
if (item.containerType != Enum.ItemContainerType.INVENTORY)
|
||||
return; //Send an error here?
|
||||
if (item.containerType != Enum.ItemContainerType.INVENTORY)
|
||||
return; //Send an error here?
|
||||
|
||||
//until this is shown to do something else, just use it as item identify spell.
|
||||
item.setIsID(true);
|
||||
//until this is shown to do something else, just use it as item identify spell.
|
||||
item.setIsID(true);
|
||||
|
||||
if (!DbManager.ItemQueries.UPDATE_FLAGS(item))
|
||||
item.setIsID(false); //update failed, reset
|
||||
if (!DbManager.ItemQueries.UPDATE_FLAGS(item))
|
||||
item.setIsID(false); //update failed, reset
|
||||
|
||||
//update inventory
|
||||
CharacterItemManager cim = source.getCharItemManager();
|
||||
if (cim != null)
|
||||
cim.updateInventory();
|
||||
}
|
||||
//update inventory
|
||||
CharacterItemManager cim = source.getCharItemManager();
|
||||
if (cim != null)
|
||||
cim.updateInventory();
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void _handleChant(AbstractCharacter source, AbstractWorldObject target, Vector3fImmutable targetLoc, int trains, ActionsBase ab, PowersBase pb) {
|
||||
}
|
||||
@Override
|
||||
protected void _handleChant(AbstractCharacter source, AbstractWorldObject target, Vector3fImmutable targetLoc, int trains, ActionsBase ab, PowersBase pb) {
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void _startAction(AbstractCharacter source, AbstractWorldObject awo, Vector3fImmutable targetLoc,
|
||||
int numTrains, ActionsBase ab, PowersBase pb, int duration) {
|
||||
// TODO Auto-generated method stub
|
||||
@Override
|
||||
protected void _startAction(AbstractCharacter source, AbstractWorldObject awo, Vector3fImmutable targetLoc,
|
||||
int numTrains, ActionsBase ab, PowersBase pb, int duration) {
|
||||
// TODO Auto-generated method stub
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user