Objective cleanup
This commit is contained in:
@@ -115,12 +115,10 @@ public class SectorPresets{
|
|||||||
difficulty = 1;
|
difficulty = 1;
|
||||||
|
|
||||||
rules = r -> {
|
rules = r -> {
|
||||||
r.objectives.addAll(new ItemObjective(Items.beryllium, 20){{
|
r.objectives.addAll(new ItemObjective(Items.beryllium, 20).withMarkers(
|
||||||
markers = new ObjectiveMarker[]{
|
new TextMarker("Use the unit to mine [accent]resources[] from walls.", 1984f, 2240f + 16f),
|
||||||
new TextMarker("Units can mine [accent]resources[] from walls.", 1984f, 2240f + 16f),
|
new ShapeMarker(1984f, 2240f)
|
||||||
new ShapeMarker(1984f, 2240f),
|
));
|
||||||
};
|
|
||||||
}});
|
|
||||||
};
|
};
|
||||||
}};
|
}};
|
||||||
|
|
||||||
|
|||||||
@@ -73,6 +73,11 @@ public class MapObjectives{
|
|||||||
public static abstract class MapObjective{
|
public static abstract class MapObjective{
|
||||||
public ObjectiveMarker[] markers = {};
|
public ObjectiveMarker[] markers = {};
|
||||||
|
|
||||||
|
public MapObjective withMarkers(ObjectiveMarker... markers){
|
||||||
|
this.markers = markers;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
public boolean complete(){
|
public boolean complete(){
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user