dev command work

This commit is contained in:
2023-10-27 20:28:18 -05:00
parent 8cf1f1e60b
commit d7c7491746
4 changed files with 27 additions and 29 deletions
+11 -14
View File
@@ -37,27 +37,24 @@ public class RegionCmd extends AbstractDevCmd {
}
Regions region = ((AbstractCharacter)target).region;
if (region == null) {
this.throwbackInfo(pc, "No Region Found.");
return;
}
if(region != null) {
output += "No Region Found." + newline;
}else{
output += "Player Info: " + ((AbstractCharacter) target).getName() + newline;
output += "Region Building: " + building.getName() + newline;
output += "Region Height: " + region.lerpY((AbstractCharacter)target) + newline;
output += "is Stairs: " + region.isStairs() + newline;
output += "is Outside: " + region.isOutside();
output += "is Outside: " + region.isOutside() + newline;
output += "NavMesh Data" + newline;
Zone zone = ZoneManager.findSmallestZone(((AbstractCharacter) target).loc);
if(zone != null) {
output += "zone: " + zone.zoneName + newline;
output += "on navmesh: " + zone.navMesh.contains(((AbstractCharacter) target).loc.x,((AbstractCharacter) target).loc.z) + newline;
}else {
output += "zone: null" + newline;
}
this.throwbackInfo(pc, output);
}
Zone zone = ZoneManager.findSmallestZone(((AbstractCharacter) target).loc);
if(zone != null) {
output += "zone: " + zone.zoneName + newline;
output += "on navmesh: " + zone.navMesh.contains(((AbstractCharacter) target).loc.x,((AbstractCharacter) target).loc.z) + newline;
}else {
output += "zone: null" + newline;
}
this.throwbackInfo(pc, "No Region Found.");
}
@Override