Fixed Ground Zero being land-able with IPA, leading to buggy behavior
This commit is contained in:
@@ -177,7 +177,6 @@ public class SectorPresets{
|
|||||||
//region erekir
|
//region erekir
|
||||||
|
|
||||||
onset = new SectorPreset("onset", erekir, 10){{
|
onset = new SectorPreset("onset", erekir, 10){{
|
||||||
addStartingItems = true;
|
|
||||||
alwaysUnlocked = true;
|
alwaysUnlocked = true;
|
||||||
difficulty = 1;
|
difficulty = 1;
|
||||||
}};
|
}};
|
||||||
|
|||||||
@@ -508,6 +508,7 @@ public class SerpuloTechTree{
|
|||||||
new SectorComplete(overgrowth),
|
new SectorComplete(overgrowth),
|
||||||
new SectorComplete(extractionOutpost),
|
new SectorComplete(extractionOutpost),
|
||||||
new SectorComplete(saltFlats),
|
new SectorComplete(saltFlats),
|
||||||
|
new SectorComplete(mycelialBastion),
|
||||||
new Research(risso),
|
new Research(risso),
|
||||||
new Research(minke),
|
new Research(minke),
|
||||||
new Research(bryde),
|
new Research(bryde),
|
||||||
|
|||||||
@@ -414,7 +414,10 @@ public class PlanetDialog extends BaseDialog implements PlanetInterfaceRenderer{
|
|||||||
boolean canSelect(Sector sector){
|
boolean canSelect(Sector sector){
|
||||||
if(mode == select) return sector.hasBase() && launchSector != null && sector.planet == launchSector.planet;
|
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;
|
if(sector.planet.generator == null) return false;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user