|
|
@ -26,11 +26,13 @@ public class RegionCmd extends AbstractDevCmd { |
|
|
|
protected void _doCmd(PlayerCharacter pc, String[] words, |
|
|
|
protected void _doCmd(PlayerCharacter pc, String[] words, |
|
|
|
AbstractGameObject target) { |
|
|
|
AbstractGameObject target) { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
String newline = "\r\n "; |
|
|
|
|
|
|
|
String output; |
|
|
|
|
|
|
|
output = "Target Region Information:" + newline; |
|
|
|
|
|
|
|
|
|
|
|
Building building = BuildingManager.getBuildingAtLocation(((AbstractCharacter) target).loc); |
|
|
|
Building building = BuildingManager.getBuildingAtLocation(((AbstractCharacter) target).loc); |
|
|
|
if(building == null){ |
|
|
|
if(building == null){ |
|
|
|
this.throwbackInfo(pc, "No Building At This Location.") ; |
|
|
|
this.throwbackInfo(pc, "No Building At This Location.") ; |
|
|
|
} else{ |
|
|
|
|
|
|
|
this.throwbackInfo(pc, "Building At Location: " + building.getName()); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
Regions region = ((AbstractCharacter)target).region; |
|
|
|
Regions region = ((AbstractCharacter)target).region; |
|
|
|
if (region == null) { |
|
|
|
if (region == null) { |
|
|
@ -39,9 +41,11 @@ public class RegionCmd extends AbstractDevCmd { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if(region != null) { |
|
|
|
if(region != null) { |
|
|
|
this.throwbackInfo(pc, "Region Info: " + ((AbstractCharacter) target).getName()); |
|
|
|
output += "Player Info: " + ((AbstractCharacter) target).getName() + newline; |
|
|
|
this.throwbackInfo(pc, "Region Name: " + region); |
|
|
|
output += "Region Building: " + building.getName() + newline; |
|
|
|
this.throwbackInfo(pc, "Region Height: " + region.lerpY((AbstractCharacter)target)); |
|
|
|
output += "Region Height: " + region.lerpY((AbstractCharacter)target) + newline; |
|
|
|
|
|
|
|
output += "is Stairs: " + region.stairs + newline; |
|
|
|
|
|
|
|
this.throwbackInfo(pc, output); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|