mirror of
https://github.com/Anuken/Mindustry.git
synced 2024-12-22 21:34:11 +07:00
Polar aerodrome fixes / Objective timer multiplier for difficulty
This commit is contained in:
parent
bd1f750673
commit
c36e638826
Binary file not shown.
@ -16,6 +16,7 @@ public class CampaignRules{
|
||||
rules.staticFog = rules.fog = fog;
|
||||
rules.showSpawns = showSpawns;
|
||||
rules.randomWaveAI = randomWaveAI;
|
||||
rules.objectiveTimerMultiplier = difficulty.waveTimeMultiplier;
|
||||
if(planet.showRtsAIRule && rules.attackMode){
|
||||
boolean swapped = rules.teams.get(rules.waveTeam).rtsAi != rtsAI;
|
||||
rules.teams.get(rules.waveTeam).rtsAi = rtsAI;
|
||||
|
@ -442,7 +442,7 @@ public class MapObjectives implements Iterable<MapObjective>, Eachable<MapObject
|
||||
|
||||
@Override
|
||||
public boolean update(){
|
||||
return (countup += Time.delta) >= duration;
|
||||
return (countup += Time.delta) >= duration * state.rules.objectiveTimerMultiplier;
|
||||
}
|
||||
|
||||
@Override
|
||||
@ -454,7 +454,7 @@ public class MapObjectives implements Iterable<MapObjective>, Eachable<MapObject
|
||||
@Override
|
||||
public String text(){
|
||||
if(text != null){
|
||||
int i = (int)((duration - countup) / 60f);
|
||||
int i = (int)((duration * state.rules.objectiveTimerMultiplier - countup) / 60f);
|
||||
StringBuilder timeString = new StringBuilder();
|
||||
|
||||
int m = i / 60;
|
||||
|
@ -101,6 +101,8 @@ public class Rules{
|
||||
public float buildSpeedMultiplier = 1f;
|
||||
/** Multiplier for percentage of materials refunded when deconstructing. */
|
||||
public float deconstructRefundMultiplier = 0.5f;
|
||||
/** Multiplier for time in timer objectives. */
|
||||
public float objectiveTimerMultiplier = 1f;
|
||||
/** No-build zone around enemy core radius. */
|
||||
public float enemyCoreBuildRadius = 400f;
|
||||
/** If true, no-build zones are calculated based on the closest core. */
|
||||
|
Loading…
Reference in New Issue
Block a user