In-game editor UI improvements

This commit is contained in:
Anuken
2024-10-03 14:44:33 -04:00
parent 24daa1e933
commit 15ca672179
15 changed files with 230 additions and 24 deletions

View File

@@ -199,6 +199,10 @@ public class Build{
if(tile == null) return false;
if(!type.canPlaceOn(tile, team, rotation)){
return false;
}
//floors have different checks
if(type.isFloor()){
return type.isOverlay() ? tile.overlay() != type : tile.floor() != type;
@@ -213,10 +217,6 @@ public class Build{
return false;
}
if(!type.canPlaceOn(tile, team, rotation)){
return false;
}
int offsetx = -(type.size - 1) / 2;
int offsety = -(type.size - 1) / 2;