mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-03-12 19:09:34 +07:00
Unlock defaults for older campaign saves
This commit is contained in:
parent
79615000e0
commit
1f2ae18b23
@ -212,6 +212,11 @@ public class PlanetDialog extends BaseDialog implements PlanetInterfaceRenderer{
|
|||||||
}}).loaded = t -> planetTextures[fi] = t;
|
}}).loaded = t -> planetTextures[fi] = t;
|
||||||
assets.finishLoadingAsset(names[i]);
|
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. */
|
/** show with no limitations, just as a map. */
|
||||||
|
Loading…
Reference in New Issue
Block a user