Fixed crash

This commit is contained in:
Anuken
2018-10-05 23:04:34 -04:00
parent ed0df64cf9
commit 0ce226d0c9
3 changed files with 4 additions and 3 deletions

View File

@@ -27,6 +27,7 @@ public class Sector{
public int width = 1, height = 1;
/**Num of missions in this sector that have been completed so far.*/
public int completedMissions;
/**Display texture. Needs to be disposed.*/
public transient Texture texture;
/**Missions of this sector-- what needs to be accomplished to unlock it.*/

View File

@@ -25,10 +25,10 @@ public class SectorPresets{
//TODO make 2x2
//TODO more gen info
put(0, 1, new SectorPreset(Structs.array(new BlockMission(UnitBlocks.daggerFactory), Missions.blockRecipe(UnitBlocks.commandCenter),
new CommandMission(UnitCommand.retreat), new CommandMission(UnitCommand.attack), new BattleMission()), Array.with(Items.copper), 1));
new CommandMission(UnitCommand.retreat), new CommandMission(UnitCommand.attack), new BattleMission()), Array.with(Items.copper), 1));
//reconstructor mission
put(0, -1, new SectorPreset(Structs.array(Missions.blockRecipe(mobile ? UpgradeBlocks.tridentPad : UpgradeBlocks.deltaPad),
new MechMission(Mechs.delta)), Array.with(Items.copper), 1));
new MechMission(Mechs.delta)), Array.with(Items.copper), 1));
//oil mission
put(1, 0, new SectorPreset(Array.with(), Array.with(Items.copper), 1));
}};

View File

@@ -29,7 +29,7 @@ public abstract class Mission{
}
public GameMode getMode(){
return null;
return GameMode.noWaves;
}
/**Sets the message displayed on mission begin. Returns this mission for chaining.*/