Erekir tech sector requirements

This commit is contained in:
Anuken
2021-12-25 22:17:18 -05:00
parent 9e0d562d96
commit 4fbeae1afc
8 changed files with 43 additions and 20 deletions

View File

@@ -68,6 +68,26 @@ public class Objectives{
}
}
public static class OnPlanet implements Objective{
public Planet planet;
public OnPlanet(Planet planet){
this.planet = planet;
}
protected OnPlanet(){}
@Override
public boolean complete(){
return planet.sectors.contains(Sector::hasBase);
}
@Override
public String display(){
return Core.bundle.format("requirement.onplanet", planet.localizedName);
}
}
/** Defines a specific objective for a game. */
public interface Objective{