Atolls map fixes / Extraction outpost edits / Option to hide objectives

This commit is contained in:
Anuken
2024-09-16 16:05:03 -04:00
parent ac928593e3
commit 4e19a3c4d0
8 changed files with 7 additions and 4 deletions

View File

@@ -95,7 +95,7 @@ public class Units{
public static int getCap(Team team){
//wave team has no cap
if((team == state.rules.waveTeam && !state.rules.pvp) || (state.isCampaign() && team == state.rules.waveTeam)){
if((team == state.rules.waveTeam && !state.rules.pvp) || (state.isCampaign() && team == state.rules.waveTeam) || state.rules.disableUnitCap){
return Integer.MAX_VALUE;
}
return Math.max(0, state.rules.unitCapVariable ? state.rules.unitCap + team.data().unitCap : state.rules.unitCap);