Randomize random spawn headings.

This commit is contained in:
MobiusDevelopment
2022-09-04 22:16:09 +00:00
parent 1621590a72
commit e2236623d3
27 changed files with 54 additions and 0 deletions

View File

@@ -388,6 +388,7 @@ public class Spawn extends Location implements IIdentifiable, INamable
newlocy = loc.getY();
newlocz = loc.getZ();
setLocation(loc);
setHeading(-1);
}
else if ((getX() == 0) && (getY() == 0))
{
@@ -416,6 +417,7 @@ public class Spawn extends Location implements IIdentifiable, INamable
newlocx = randX;
newlocy = randY;
setXYZ(newlocx, newlocy, newlocz);
setHeading(-1);
}
}

View File

@@ -388,6 +388,7 @@ public class Spawn extends Location implements IIdentifiable, INamable
newlocy = loc.getY();
newlocz = loc.getZ();
setLocation(loc);
setHeading(-1);
}
else if ((getX() == 0) && (getY() == 0))
{
@@ -416,6 +417,7 @@ public class Spawn extends Location implements IIdentifiable, INamable
newlocx = randX;
newlocy = randY;
setXYZ(newlocx, newlocy, newlocz);
setHeading(-1);
}
}

View File

@@ -388,6 +388,7 @@ public class Spawn extends Location implements IIdentifiable, INamable
newlocy = loc.getY();
newlocz = loc.getZ();
setLocation(loc);
setHeading(-1);
}
else if ((getX() == 0) && (getY() == 0))
{
@@ -416,6 +417,7 @@ public class Spawn extends Location implements IIdentifiable, INamable
newlocx = randX;
newlocy = randY;
setXYZ(newlocx, newlocy, newlocz);
setHeading(-1);
}
}

View File

@@ -388,6 +388,7 @@ public class Spawn extends Location implements IIdentifiable, INamable
newlocy = loc.getY();
newlocz = loc.getZ();
setLocation(loc);
setHeading(-1);
}
else if ((getX() == 0) && (getY() == 0))
{
@@ -416,6 +417,7 @@ public class Spawn extends Location implements IIdentifiable, INamable
newlocx = randX;
newlocy = randY;
setXYZ(newlocx, newlocy, newlocz);
setHeading(-1);
}
}

View File

@@ -388,6 +388,7 @@ public class Spawn extends Location implements IIdentifiable, INamable
newlocy = loc.getY();
newlocz = loc.getZ();
setLocation(loc);
setHeading(-1);
}
else if ((getX() == 0) && (getY() == 0))
{
@@ -416,6 +417,7 @@ public class Spawn extends Location implements IIdentifiable, INamable
newlocx = randX;
newlocy = randY;
setXYZ(newlocx, newlocy, newlocz);
setHeading(-1);
}
}

View File

@@ -388,6 +388,7 @@ public class Spawn extends Location implements IIdentifiable, INamable
newlocy = loc.getY();
newlocz = loc.getZ();
setLocation(loc);
setHeading(-1);
}
else if ((getX() == 0) && (getY() == 0))
{
@@ -416,6 +417,7 @@ public class Spawn extends Location implements IIdentifiable, INamable
newlocx = randX;
newlocy = randY;
setXYZ(newlocx, newlocy, newlocz);
setHeading(-1);
}
}

View File

@@ -388,6 +388,7 @@ public class Spawn extends Location implements IIdentifiable, INamable
newlocy = loc.getY();
newlocz = loc.getZ();
setLocation(loc);
setHeading(-1);
}
else if ((getX() == 0) && (getY() == 0))
{
@@ -416,6 +417,7 @@ public class Spawn extends Location implements IIdentifiable, INamable
newlocx = randX;
newlocy = randY;
setXYZ(newlocx, newlocy, newlocz);
setHeading(-1);
}
}

View File

@@ -388,6 +388,7 @@ public class Spawn extends Location implements IIdentifiable, INamable
newlocy = loc.getY();
newlocz = loc.getZ();
setLocation(loc);
setHeading(-1);
}
else if ((getX() == 0) && (getY() == 0))
{
@@ -416,6 +417,7 @@ public class Spawn extends Location implements IIdentifiable, INamable
newlocx = randX;
newlocy = randY;
setXYZ(newlocx, newlocy, newlocz);
setHeading(-1);
}
}

View File

@@ -388,6 +388,7 @@ public class Spawn extends Location implements IIdentifiable, INamable
newlocy = loc.getY();
newlocz = loc.getZ();
setLocation(loc);
setHeading(-1);
}
else if ((getX() == 0) && (getY() == 0))
{
@@ -416,6 +417,7 @@ public class Spawn extends Location implements IIdentifiable, INamable
newlocx = randX;
newlocy = randY;
setXYZ(newlocx, newlocy, newlocz);
setHeading(-1);
}
}

View File

@@ -388,6 +388,7 @@ public class Spawn extends Location implements IIdentifiable, INamable
newlocy = loc.getY();
newlocz = loc.getZ();
setLocation(loc);
setHeading(-1);
}
else if ((getX() == 0) && (getY() == 0))
{
@@ -416,6 +417,7 @@ public class Spawn extends Location implements IIdentifiable, INamable
newlocx = randX;
newlocy = randY;
setXYZ(newlocx, newlocy, newlocz);
setHeading(-1);
}
}

View File

@@ -388,6 +388,7 @@ public class Spawn extends Location implements IIdentifiable, INamable
newlocy = loc.getY();
newlocz = loc.getZ();
setLocation(loc);
setHeading(-1);
}
else if ((getX() == 0) && (getY() == 0))
{
@@ -416,6 +417,7 @@ public class Spawn extends Location implements IIdentifiable, INamable
newlocx = randX;
newlocy = randY;
setXYZ(newlocx, newlocy, newlocz);
setHeading(-1);
}
}

View File

@@ -374,6 +374,7 @@ public class Spawn extends Location implements IIdentifiable, INamable
newlocy = loc.getY();
newlocz = loc.getZ();
setLocation(loc);
setHeading(-1);
}
else if ((getX() == 0) && (getY() == 0))
{
@@ -407,6 +408,7 @@ public class Spawn extends Location implements IIdentifiable, INamable
newlocx = randX;
newlocy = randY;
setXYZ(newlocx, newlocy, newlocz);
setHeading(-1);
}
}

View File

@@ -374,6 +374,7 @@ public class Spawn extends Location implements IIdentifiable, INamable
newlocy = loc.getY();
newlocz = loc.getZ();
setLocation(loc);
setHeading(-1);
}
else if ((getX() == 0) && (getY() == 0))
{
@@ -407,6 +408,7 @@ public class Spawn extends Location implements IIdentifiable, INamable
newlocx = randX;
newlocy = randY;
setXYZ(newlocx, newlocy, newlocz);
setHeading(-1);
}
}

View File

@@ -374,6 +374,7 @@ public class Spawn extends Location implements IIdentifiable, INamable
newlocy = loc.getY();
newlocz = loc.getZ();
setLocation(loc);
setHeading(-1);
}
else if ((getX() == 0) && (getY() == 0))
{
@@ -407,6 +408,7 @@ public class Spawn extends Location implements IIdentifiable, INamable
newlocx = randX;
newlocy = randY;
setXYZ(newlocx, newlocy, newlocz);
setHeading(-1);
}
}

View File

@@ -388,6 +388,7 @@ public class Spawn extends Location implements IIdentifiable, INamable
newlocy = loc.getY();
newlocz = loc.getZ();
setLocation(loc);
setHeading(-1);
}
else if ((getX() == 0) && (getY() == 0))
{
@@ -416,6 +417,7 @@ public class Spawn extends Location implements IIdentifiable, INamable
newlocx = randX;
newlocy = randY;
setXYZ(newlocx, newlocy, newlocz);
setHeading(-1);
}
}

View File

@@ -388,6 +388,7 @@ public class Spawn extends Location implements IIdentifiable, INamable
newlocy = loc.getY();
newlocz = loc.getZ();
setLocation(loc);
setHeading(-1);
}
else if ((getX() == 0) && (getY() == 0))
{
@@ -416,6 +417,7 @@ public class Spawn extends Location implements IIdentifiable, INamable
newlocx = randX;
newlocy = randY;
setXYZ(newlocx, newlocy, newlocz);
setHeading(-1);
}
}

View File

@@ -388,6 +388,7 @@ public class Spawn extends Location implements IIdentifiable, INamable
newlocy = loc.getY();
newlocz = loc.getZ();
setLocation(loc);
setHeading(-1);
}
else if ((getX() == 0) && (getY() == 0))
{
@@ -416,6 +417,7 @@ public class Spawn extends Location implements IIdentifiable, INamable
newlocx = randX;
newlocy = randY;
setXYZ(newlocx, newlocy, newlocz);
setHeading(-1);
}
}

View File

@@ -388,6 +388,7 @@ public class Spawn extends Location implements IIdentifiable, INamable
newlocy = loc.getY();
newlocz = loc.getZ();
setLocation(loc);
setHeading(-1);
}
else if ((getX() == 0) && (getY() == 0))
{
@@ -416,6 +417,7 @@ public class Spawn extends Location implements IIdentifiable, INamable
newlocx = randX;
newlocy = randY;
setXYZ(newlocx, newlocy, newlocz);
setHeading(-1);
}
}

View File

@@ -388,6 +388,7 @@ public class Spawn extends Location implements IIdentifiable, INamable
newlocy = loc.getY();
newlocz = loc.getZ();
setLocation(loc);
setHeading(-1);
}
else if ((getX() == 0) && (getY() == 0))
{
@@ -416,6 +417,7 @@ public class Spawn extends Location implements IIdentifiable, INamable
newlocx = randX;
newlocy = randY;
setXYZ(newlocx, newlocy, newlocz);
setHeading(-1);
}
}

View File

@@ -388,6 +388,7 @@ public class Spawn extends Location implements IIdentifiable, INamable
newlocy = loc.getY();
newlocz = loc.getZ();
setLocation(loc);
setHeading(-1);
}
else if ((getX() == 0) && (getY() == 0))
{
@@ -416,6 +417,7 @@ public class Spawn extends Location implements IIdentifiable, INamable
newlocx = randX;
newlocy = randY;
setXYZ(newlocx, newlocy, newlocz);
setHeading(-1);
}
}

View File

@@ -388,6 +388,7 @@ public class Spawn extends Location implements IIdentifiable, INamable
newlocy = loc.getY();
newlocz = loc.getZ();
setLocation(loc);
setHeading(-1);
}
else if ((getX() == 0) && (getY() == 0))
{
@@ -416,6 +417,7 @@ public class Spawn extends Location implements IIdentifiable, INamable
newlocx = randX;
newlocy = randY;
setXYZ(newlocx, newlocy, newlocz);
setHeading(-1);
}
}

View File

@@ -388,6 +388,7 @@ public class Spawn extends Location implements IIdentifiable, INamable
newlocy = loc.getY();
newlocz = loc.getZ();
setLocation(loc);
setHeading(-1);
}
else if ((getX() == 0) && (getY() == 0))
{
@@ -416,6 +417,7 @@ public class Spawn extends Location implements IIdentifiable, INamable
newlocx = randX;
newlocy = randY;
setXYZ(newlocx, newlocy, newlocz);
setHeading(-1);
}
}

View File

@@ -388,6 +388,7 @@ public class Spawn extends Location implements IIdentifiable, INamable
newlocy = loc.getY();
newlocz = loc.getZ();
setLocation(loc);
setHeading(-1);
}
else if ((getX() == 0) && (getY() == 0))
{
@@ -416,6 +417,7 @@ public class Spawn extends Location implements IIdentifiable, INamable
newlocx = randX;
newlocy = randY;
setXYZ(newlocx, newlocy, newlocz);
setHeading(-1);
}
}

View File

@@ -388,6 +388,7 @@ public class Spawn extends Location implements IIdentifiable, INamable
newlocy = loc.getY();
newlocz = loc.getZ();
setLocation(loc);
setHeading(-1);
}
else if ((getX() == 0) && (getY() == 0))
{
@@ -416,6 +417,7 @@ public class Spawn extends Location implements IIdentifiable, INamable
newlocx = randX;
newlocy = randY;
setXYZ(newlocx, newlocy, newlocz);
setHeading(-1);
}
}

View File

@@ -388,6 +388,7 @@ public class Spawn extends Location implements IIdentifiable, INamable
newlocy = loc.getY();
newlocz = loc.getZ();
setLocation(loc);
setHeading(-1);
}
else if ((getX() == 0) && (getY() == 0))
{
@@ -416,6 +417,7 @@ public class Spawn extends Location implements IIdentifiable, INamable
newlocx = randX;
newlocy = randY;
setXYZ(newlocx, newlocy, newlocz);
setHeading(-1);
}
}

View File

@@ -388,6 +388,7 @@ public class Spawn extends Location implements IIdentifiable, INamable
newlocy = loc.getY();
newlocz = loc.getZ();
setLocation(loc);
setHeading(-1);
}
else if ((getX() == 0) && (getY() == 0))
{
@@ -416,6 +417,7 @@ public class Spawn extends Location implements IIdentifiable, INamable
newlocx = randX;
newlocy = randY;
setXYZ(newlocx, newlocy, newlocz);
setHeading(-1);
}
}

View File

@@ -388,6 +388,7 @@ public class Spawn extends Location implements IIdentifiable, INamable
newlocy = loc.getY();
newlocz = loc.getZ();
setLocation(loc);
setHeading(-1);
}
else if ((getX() == 0) && (getY() == 0))
{
@@ -416,6 +417,7 @@ public class Spawn extends Location implements IIdentifiable, INamable
newlocx = randX;
newlocy = randY;
setXYZ(newlocx, newlocy, newlocz);
setHeading(-1);
}
}