Choosing of Erekir launch sector based on loadout cost

This commit is contained in:
Anuken
2025-09-03 16:28:50 -04:00
parent ac937ce910
commit 59f8f5cd11
4 changed files with 39 additions and 18 deletions

View File

@@ -430,10 +430,11 @@ public class PlanetDialog extends BaseDialog implements PlanetInterfaceRenderer{
return mode == planetLaunch ? sector.planet.generator.allowAcceleratorLanding(sector) : sector.planet.generator.allowLanding(sector);
}
Sector findLauncher(Sector to){
@Nullable Sector findLauncher(Sector to){
if(mode == planetLaunch || to.planet.generator == null) return launchSector;
return to.planet.generator.findLaunchCandidate(to, launchSector);
Sector candidate = to.planet.generator.findLaunchCandidate(to, launchSector);
return candidate == null ? launchSector : candidate;
}
boolean showing(){