Oyxgen env
This commit is contained in:
@@ -81,7 +81,7 @@ public class Rules{
|
||||
/** Base unit cap. Can still be increased by blocks. */
|
||||
public int unitCap = 0;
|
||||
/** Environmental flags that dictate visuals & how blocks function. */
|
||||
public int environment = Env.terrestrial | Env.spores | Env.groundOil | Env.groundWater;
|
||||
public int environment = Env.terrestrial | Env.spores | Env.groundOil | Env.groundWater | Env.oxygen;
|
||||
/** Attributes of the environment. */
|
||||
public Attributes attributes = new Attributes();
|
||||
/** Sector for saves that have them. */
|
||||
@@ -140,6 +140,10 @@ public class Rules{
|
||||
}
|
||||
}
|
||||
|
||||
public boolean hasEnv(int env){
|
||||
return (environment & env) != 0;
|
||||
}
|
||||
|
||||
public float unitBuildSpeed(Team team){
|
||||
return unitBuildSpeedMultiplier * teams.get(team).unitBuildSpeedMultiplier;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user