Unlock defaults for older campaign saves

This commit is contained in:
Anuken 2022-10-11 17:03:54 -04:00
parent 79615000e0
commit 1f2ae18b23

View File

@ -212,6 +212,11 @@ public class PlanetDialog extends BaseDialog implements PlanetInterfaceRenderer{
}}).loaded = t -> planetTextures[fi] = t;
assets.finishLoadingAsset(names[i]);
}
//unlock defaults for older campaign saves (TODO move? where to?)
if(content.planets().contains(p -> p.sectors.contains(s -> s.hasBase())) || Blocks.scatter.unlocked() || Blocks.router.unlocked()){
Seq.with(Blocks.junction, Blocks.mechanicalDrill, Blocks.duo, Items.copper, Items.lead).each(UnlockableContent::quietUnlock);
}
}
/** show with no limitations, just as a map. */