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
+32 -33
View File
@@ -16,55 +16,54 @@ import engine.objects.*;
/**
* @author Eighty
*
*/
public class RemoveBaneCmd extends AbstractDevCmd {
public RemoveBaneCmd() {
public RemoveBaneCmd() {
super("removebane");
}
@Override
protected void _doCmd(PlayerCharacter pc, String[] words,
AbstractGameObject target) {
@Override
protected void _doCmd(PlayerCharacter pc, String[] words,
AbstractGameObject target) {
Zone zone = ZoneManager.findSmallestZone(pc.getLoc());
Zone zone = ZoneManager.findSmallestZone(pc.getLoc());
if (zone == null) {
throwbackError(pc, "Unable to find the zone you're in.");
return;
}
if (zone == null) {
throwbackError(pc, "Unable to find the zone you're in.");
return;
}
if (!zone.isPlayerCity()) {
throwbackError(pc, "This is not a player city.");
return;
}
if (!zone.isPlayerCity()) {
throwbackError(pc, "This is not a player city.");
return;
}
City city = City.getCity(zone.getPlayerCityUUID());
if (city == null) {
throwbackError(pc, "Unable to find the city associated with this zone.");
return;
}
City city = City.getCity(zone.getPlayerCityUUID());
if (city == null) {
throwbackError(pc, "Unable to find the city associated with this zone.");
return;
}
Bane bane = city.getBane();
if (bane == null) {
throwbackError(pc, "Could not find bane to remove.");
return;
}
Bane bane = city.getBane();
if (bane == null) {
throwbackError(pc, "Could not find bane to remove.");
return;
}
bane.endBane(SiegeResult.DEFEND);
bane.endBane(SiegeResult.DEFEND);
throwbackInfo(pc, "The bane has been removed.");
}
throwbackInfo(pc, "The bane has been removed.");
}
@Override
protected String _getHelpString() {
@Override
protected String _getHelpString() {
return "Removes a bane from the city grid you're standing on.";
}
}
@Override
protected String _getUsageString() {
@Override
protected String _getUsageString() {
return "'./removebane'";
}
}
}