Removed onFirstBegin()
This commit is contained in:
@@ -93,7 +93,6 @@ public class TutorialSector{
|
||||
new ActionMission(TutorialSector::generateBase),
|
||||
new BattleMission(){
|
||||
public void generate(Generation gen){} //no
|
||||
public void onFirstBegin(){} //also no
|
||||
}.setMessage("$tutorial.battle")
|
||||
);
|
||||
|
||||
@@ -113,7 +112,7 @@ public class TutorialSector{
|
||||
}
|
||||
|
||||
private static void generateBase(){
|
||||
int x = sectorSize/2 + sectorSize, y = sectorSize/2;
|
||||
int x = sectorSize - 50, y = sectorSize - 50;
|
||||
world.setBlock(world.tile(x, y), StorageBlocks.core, waveTeam);
|
||||
world.setBlock(world.tile(x - 1, y + 2), UnitBlocks.daggerFactory, waveTeam);
|
||||
world.setBlock(world.tile(x - 1, y - 3), UnitBlocks.daggerFactory, waveTeam);
|
||||
|
||||
@@ -7,7 +7,6 @@ import io.anuke.mindustry.maps.generation.FortressGenerator;
|
||||
import io.anuke.mindustry.maps.generation.Generation;
|
||||
import io.anuke.mindustry.world.Tile;
|
||||
import io.anuke.ucore.util.Bundles;
|
||||
import io.anuke.ucore.util.SeedRandom;
|
||||
|
||||
import static io.anuke.mindustry.Vars.*;
|
||||
|
||||
@@ -25,12 +24,11 @@ public class BattleMission extends Mission{
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onFirstBegin(){
|
||||
public void generate(Generation gen){
|
||||
if(state.teams.get(defaultTeam).cores.size == 0){
|
||||
return;
|
||||
}
|
||||
Tile core = state.teams.get(defaultTeam).cores.first();
|
||||
Generation gen = new Generation(world.getSector(), world.getTiles(), world.width(), world.height(), new SeedRandom(world.getSector().getSeed()-1));
|
||||
int enx = world.width() - 1 - spacing;
|
||||
int eny = world.height() - 1 - spacing;
|
||||
new FortressGenerator().generate(gen, Team.red, core.x, core.y, enx, eny);
|
||||
|
||||
@@ -62,10 +62,6 @@ public abstract class Mission{
|
||||
|
||||
}
|
||||
|
||||
public void onFirstBegin(){
|
||||
|
||||
}
|
||||
|
||||
/**Shows the unique sector message.*/
|
||||
public void showMessage(){
|
||||
if(!headless && extraMessage != null){
|
||||
|
||||
Reference in New Issue
Block a user