More branch merging

This commit is contained in:
Anuken
2021-10-14 20:58:03 -04:00
parent ad1c75d050
commit 6b59c1cd83
108 changed files with 1018 additions and 380 deletions

View File

@@ -123,6 +123,11 @@ public abstract class PlanetGenerator extends BasicGenerator implements HexMeshe
return 3200;
}
public int getSectorSize(Sector sector){
int res = (int)(sector.rect.radius * getSizeScl());
return res % 2 == 0 ? res : res + 1;
}
public void generate(Tiles tiles, Sector sec){
this.tiles = tiles;
this.sector = sec;