Payload loader/unloader 3x3 support

This commit is contained in:
Anuken
2022-01-02 14:24:06 -05:00
parent eef1d68d4c
commit 38cb7aa41d
3 changed files with 10 additions and 13 deletions

View File

@@ -451,6 +451,7 @@ public class PlanetDialog extends BaseDialog implements PlanetInterfaceRenderer{
boolean selectable(Planet planet){
//TODO what if any sector is selectable?
//TODO launch criteria - which planets can be launched to? Where should this be defined? Should planets even be selectable?
if(mode == planetLaunch) return launchSector != null && planet != launchSector.planet;
return planet == state.planet || (planet.alwaysUnlocked && planet.isLandable()) || planet.sectors.contains(Sector::hasBase);
}