SteamWar/FightSystem
Archiviert
13
1

Hotfix WinconditionPointsAirShip
Alle Prüfungen waren erfolgreich
SteamWarCI Build successful

Dieser Commit ist enthalten in:
yoyosource 2022-06-08 14:22:47 +02:00
Ursprung c921228b20
Commit 58557214ce

Datei anzeigen

@ -136,7 +136,7 @@ public class WinconditionPointsAirShip extends PercentWincondition implements Li
private void setup(int enemyBlocks){ private void setup(int enemyBlocks){
points = 0; points = 0;
int factorIndex = Math.min(Math.max(team.getPlayerCount(), Fight.getOpposite(team).getPlayerCount()), as.length); int factorIndex = Math.min(Math.max(team.getPlayerCount(), Fight.getOpposite(team).getPlayerCount()), as.length) - 1;
double a = as[factorIndex]; double a = as[factorIndex];
double e = es[factorIndex]; double e = es[factorIndex];
double volume = team.getSchemRegion().volume(); double volume = team.getSchemRegion().volume();