Sector generation fix

This commit is contained in:
Anuken
2018-10-12 17:01:20 -04:00
parent 2943b6ed04
commit 7dc0a7a5c3
2 changed files with 4 additions and 4 deletions

View File

@@ -102,7 +102,7 @@ public class Sectors{
if(checkExpansion) {
for (int x = sector.x; x < sector.x + sector.width; x++) {
for (int y = sector.y; y < sector.y + sector.height; y++) {
if (grid.get(x, y) != null && (grid.get(x, y).hasSave() /*|| !canMerge(sector, grid.get(x, y))*/)) {
if (grid.get(x, y) != null && grid.get(x,y) != sector && grid.get(x, y).hasSave() /*|| !canMerge(sector, grid.get(x, y))*/) {
//if a completed sector is hit, expansion failed
//put back the values of the sector
if (expandX < 0) sector.x -= expandX;

View File

@@ -41,7 +41,7 @@ public class TutorialSector{
new WaveMission(2).setMessage("$tutorial.waves"),
new ActionMission(() -> {
new ActionMission(() ->
Timers.runTask(30f, () -> {
Runnable r = () -> {
Array<Item> ores = Array.with(Items.copper, Items.coal, Items.lead);
@@ -63,8 +63,7 @@ public class TutorialSector{
}else{
threads.run(r);
}
});
}),
})),
new ItemMission(Items.lead, 150).setMessage("$tutorial.lead"),
new ItemMission(Items.copper, 250).setMessage("$tutorial.morecopper"),
@@ -131,6 +130,7 @@ public class TutorialSector{
},
new BattleMission(){
public void generate(Generation gen){} //no
public void onBegin(){} //also no
}.setMessage("$tutorial.battle")
);