Fixed Ground Zero being land-able with IPA, leading to buggy behavior

This commit is contained in:
Anuken
2026-02-25 23:11:20 -05:00
parent 0d112fd655
commit adb9a82d84
3 changed files with 5 additions and 2 deletions

View File

@@ -177,7 +177,6 @@ public class SectorPresets{
//region erekir
onset = new SectorPreset("onset", erekir, 10){{
addStartingItems = true;
alwaysUnlocked = true;
difficulty = 1;
}};

View File

@@ -508,6 +508,7 @@ public class SerpuloTechTree{
new SectorComplete(overgrowth),
new SectorComplete(extractionOutpost),
new SectorComplete(saltFlats),
new SectorComplete(mycelialBastion),
new Research(risso),
new Research(minke),
new Research(bryde),

View File

@@ -414,7 +414,10 @@ public class PlanetDialog extends BaseDialog implements PlanetInterfaceRenderer{
boolean canSelect(Sector sector){
if(mode == select) return sector.hasBase() && launchSector != null && sector.planet == launchSector.planet;
if(mode == planetLaunch && sector.hasBase()) return false;
//sectors with addStartingItems = true can't be landed on, as they override the core and items of the interplanetary accelerator
//at the moment, this is only true of Ground Zero in vanilla
//TODO: maybe relax these restrictions and add better support for these sorts of "tutorial" starting sectors later
if(mode == planetLaunch && (sector.hasBase() || (sector.preset != null && sector.preset.addStartingItems))) return false;
if(sector.planet.generator == null) return false;