mirror of
https://github.com/Anuken/Mindustry.git
synced 2026-01-26 06:22:17 -08:00
Fixed #3656
This commit is contained in:
parent
2a9f362e15
commit
a7c18fc598
4 changed files with 4 additions and 1 deletions
Binary file not shown.
|
|
@ -1657,6 +1657,7 @@ public class UnitTypes implements ContentList{
|
|||
recoil = 3f;
|
||||
occlusion = 12f;
|
||||
ejectEffect = Fx.casing3;
|
||||
shootSound = Sounds.shootBig;
|
||||
|
||||
shots = 3;
|
||||
shotDelay = 4f;
|
||||
|
|
|
|||
|
|
@ -340,7 +340,7 @@ public class Control implements ApplicationListener, Loadable{
|
|||
state.rules.waves = true;
|
||||
|
||||
//reset win wave??
|
||||
state.rules.winWave = state.rules.attackMode ? -1 : sector.preset != null ? sector.preset.captureWave : 40;
|
||||
state.rules.winWave = state.rules.attackMode ? -1 : sector.preset != null ? sector.preset.captureWave : state.rules.winWave > state.wave ? state.rules.winWave : 40;
|
||||
|
||||
//if there's still an enemy base left, fix it
|
||||
if(state.rules.attackMode){
|
||||
|
|
|
|||
|
|
@ -225,9 +225,11 @@ public class Universe{
|
|||
if(sector.isBeingPlayed()){
|
||||
state.rules.winWave = waveMax;
|
||||
state.rules.waves = true;
|
||||
state.rules.attackMode = false;
|
||||
}else{
|
||||
sector.info.winWave = waveMax;
|
||||
sector.info.waves = true;
|
||||
sector.info.attack = false;
|
||||
sector.saveInfo();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue