mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-01-13 00:05:23 +07:00
Objective cleanup
This commit is contained in:
parent
0902a675db
commit
41a3dae138
@ -115,12 +115,10 @@ public class SectorPresets{
|
||||
difficulty = 1;
|
||||
|
||||
rules = r -> {
|
||||
r.objectives.addAll(new ItemObjective(Items.beryllium, 20){{
|
||||
markers = new ObjectiveMarker[]{
|
||||
new TextMarker("Units can mine [accent]resources[] from walls.", 1984f, 2240f + 16f),
|
||||
new ShapeMarker(1984f, 2240f),
|
||||
};
|
||||
}});
|
||||
r.objectives.addAll(new ItemObjective(Items.beryllium, 20).withMarkers(
|
||||
new TextMarker("Use the unit to mine [accent]resources[] from walls.", 1984f, 2240f + 16f),
|
||||
new ShapeMarker(1984f, 2240f)
|
||||
));
|
||||
};
|
||||
}};
|
||||
|
||||
|
@ -73,6 +73,11 @@ public class MapObjectives{
|
||||
public static abstract class MapObjective{
|
||||
public ObjectiveMarker[] markers = {};
|
||||
|
||||
public MapObjective withMarkers(ObjectiveMarker... markers){
|
||||
this.markers = markers;
|
||||
return this;
|
||||
}
|
||||
|
||||
public boolean complete(){
|
||||
return false;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user