Save satellite presence
This commit is contained in:
@@ -38,7 +38,7 @@ public class GameState{
|
|||||||
|
|
||||||
/** Note that being in a campaign does not necessarily mean having a sector. */
|
/** Note that being in a campaign does not necessarily mean having a sector. */
|
||||||
public boolean isCampaign(){
|
public boolean isCampaign(){
|
||||||
return rules.sector != null;
|
return rules.sector != null || rules.satellite != null;
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean hasSector(){
|
public boolean hasSector(){
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
package mindustry.game;
|
package mindustry.game;
|
||||||
|
|
||||||
|
import arc.util.ArcAnnotate.*;
|
||||||
import mindustry.annotations.Annotations.*;
|
import mindustry.annotations.Annotations.*;
|
||||||
import arc.struct.*;
|
import arc.struct.*;
|
||||||
import arc.graphics.*;
|
import arc.graphics.*;
|
||||||
@@ -56,8 +57,10 @@ public class Rules{
|
|||||||
public float bossWaveMultiplier = 3f;
|
public float bossWaveMultiplier = 3f;
|
||||||
/** How many times longer a launch wave takes. */
|
/** How many times longer a launch wave takes. */
|
||||||
public float launchWaveMultiplier = 2f;
|
public float launchWaveMultiplier = 2f;
|
||||||
/** Zone for saves that have them.*/
|
/** Sector for saves that have them.*/
|
||||||
public Sector sector;
|
public @Nullable Sector sector;
|
||||||
|
/** Satellite that save is on. Indicates campaign. */
|
||||||
|
public @Nullable Satellite satellite;
|
||||||
/** Spawn layout. */
|
/** Spawn layout. */
|
||||||
public Array<SpawnGroup> spawns = new Array<>();
|
public Array<SpawnGroup> spawns = new Array<>();
|
||||||
/** Determines if there should be limited respawns. */
|
/** Determines if there should be limited respawns. */
|
||||||
|
|||||||
@@ -1,3 +1,3 @@
|
|||||||
org.gradle.daemon=true
|
org.gradle.daemon=true
|
||||||
org.gradle.jvmargs=-Xms256m -Xmx1024m
|
org.gradle.jvmargs=-Xms256m -Xmx1024m
|
||||||
archash=e925e63ed9201fd2f20a06cc6736f07c936f6882
|
archash=8f106aca9385924404e9f2125006d2b16457af4b
|
||||||
|
|||||||
Reference in New Issue
Block a user