Upgradeable cores

This commit is contained in:
Anuken
2020-06-27 19:16:39 -04:00
parent 313cadb763
commit 80332e37d5
63 changed files with 365 additions and 290 deletions

View File

@@ -93,7 +93,7 @@ public class Units{
/** Returns the neareset damaged tile. */
public static Building findDamagedTile(Team team, float x, float y){
Tile tile = Geometry.findClosest(x, y, indexer.getDamaged(team));
return tile == null ? null : tile.entity;
return tile == null ? null : tile.build;
}
/** Returns the neareset ally tile in a range. */