Project cleanup pre merge.

This commit is contained in:
2023-07-15 09:23:48 -04:00
parent 134b651df8
commit 9bbdef224d
747 changed files with 99704 additions and 101200 deletions
@@ -25,65 +25,64 @@ import java.sql.SQLException;
public class SpireDisablePowerAction extends AbstractPowerAction {
/**
* ResultSet Constructor
*/
public SpireDisablePowerAction(ResultSet rs) throws SQLException {
super(rs);
}
/**
* ResultSet Constructor
*/
public SpireDisablePowerAction(ResultSet rs) throws SQLException {
super(rs);
}
@Override
protected void _startAction(AbstractCharacter source, AbstractWorldObject awo, Vector3fImmutable targetLoc, int trains, ActionsBase ab, PowersBase pb) {
if (awo == null)
return;
@Override
protected void _startAction(AbstractCharacter source, AbstractWorldObject awo, Vector3fImmutable targetLoc, int trains, ActionsBase ab, PowersBase pb) {
if (awo == null)
return;
if (source == null)
return;
if (source == null)
return;
PlayerCharacter pc = null;
PlayerCharacter pc = null;
if (source.getObjectType() == GameObjectType.PlayerCharacter)
pc = (PlayerCharacter)source;
else
return;
if (source.getObjectType() == GameObjectType.PlayerCharacter)
pc = (PlayerCharacter) source;
else
return;
if (awo.getObjectType() != GameObjectType.Building)
return;
if (awo.getObjectType() != GameObjectType.Building)
return;
//Check if Building is Spire.
//Check if Building is Spire.
Building spire = (Building)awo;
Building spire = (Building) awo;
if ((spire.getBlueprintUUID() == 0) ||
(spire.getBlueprint() != null && spire.getBlueprint().getBuildingGroup() != BuildingGroup.SPIRE)) {
ChatManager.chatSystemError((PlayerCharacter)source, "This Building is not a spire.");
return;
}
if ((spire.getBlueprintUUID() == 0) ||
(spire.getBlueprint() != null && spire.getBlueprint().getBuildingGroup() != BuildingGroup.SPIRE)) {
ChatManager.chatSystemError((PlayerCharacter) source, "This Building is not a spire.");
return;
}
if (!spire.isSpireIsActive())
return;
if (!spire.isSpireIsActive())
return;
spire.disableSpire(false);
spire.disableSpire(false);
if (trains > 20)
trains = 20;
if (trains > 20)
trains = 20;
long duration = trains * 4500 + 30000;
spire.setTimeStamp("DISABLED", System.currentTimeMillis() + duration);
long duration = trains * 4500 + 30000;
spire.setTimeStamp("DISABLED", System.currentTimeMillis() + duration);
}
}
@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
}
}
}