mirror of
https://github.com/Anuken/Mindustry.git
synced 2026-01-24 13:31:45 -08:00
a bit less broken but still broken
This commit is contained in:
parent
35b158dba7
commit
bf073a84c8
57 changed files with 274 additions and 445 deletions
|
|
@ -31,7 +31,7 @@ public class WorldTests{
|
|||
|
||||
for(int x = 0; x < tiles.length; x++){
|
||||
for(int y = 0; y < tiles[0].length; y++){
|
||||
assertEquals(4, tiles[x][y].getRotation());
|
||||
assertEquals(4, tiles[x][y].rotation());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -43,7 +43,7 @@ public class WorldTests{
|
|||
|
||||
for(int x = 0; x < tiles.length; x++){
|
||||
for(int y = 0; y < tiles[0].length; y++){
|
||||
assertEquals(0, tiles[x][y].getRotation());
|
||||
assertEquals(0, tiles[x][y].rotation());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -55,7 +55,7 @@ public class WorldTests{
|
|||
|
||||
for(int x = 0; x < tiles.length; x++){
|
||||
for(int y = 0; y < tiles[0].length; y++){
|
||||
assertEquals(0, tiles[x][y].getRotation());
|
||||
assertEquals(0, tiles[x][y].rotation());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -67,7 +67,7 @@ public class WorldTests{
|
|||
|
||||
for(int x = 0; x < tiles.length; x++){
|
||||
for(int y = 0; y < tiles[0].length; y++){
|
||||
assertEquals(0, tiles[x][y].getRotation());
|
||||
assertEquals(0, tiles[x][y].rotation());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -80,7 +80,7 @@ public class WorldTests{
|
|||
|
||||
for(int x = 0; x < tiles.length; x++){
|
||||
for(int y = 0; y < tiles[0].length; y++){
|
||||
byte darkness = tiles[x][y].getRotation();
|
||||
byte darkness = tiles[x][y].rotation();
|
||||
int distance = Math.abs(x - 5) + Math.abs(y - 5);
|
||||
assertEquals(Math.min(Math.max(distance - 1, 0), 4), darkness);
|
||||
}
|
||||
|
|
@ -95,7 +95,7 @@ public class WorldTests{
|
|||
|
||||
for(int x = 0; x < tiles.length; x++){
|
||||
for(int y = 0; y < tiles[0].length; y++){
|
||||
byte darkness = tiles[x][y].getRotation();
|
||||
byte darkness = tiles[x][y].rotation();
|
||||
int distance = Math.abs(x - 7) + Math.abs(y - 7);
|
||||
assertEquals(Math.min(Math.max(distance - 1, 0), 4), darkness);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue