SteamWar/FightSystem
Archiviert
13
1
Signed-off-by: Lixfel <agga-games@gmx.de>
Dieser Commit ist enthalten in:
Lixfel 2021-03-31 22:09:41 +02:00
Ursprung 05fa057344
Commit f018ba0afd

Datei anzeigen

@ -132,14 +132,14 @@ public class WinconditionPoints extends Wincondition implements PrintableWincond
int enemyBlocks = teamMap.get(Fight.getOpposite(team)).percent.getBlockCount(); int enemyBlocks = teamMap.get(Fight.getOpposite(team)).percent.getBlockCount();
if(enemyBlocks < ownBlocks) { if(enemyBlocks < ownBlocks) {
this.factor = 10000; //Original mit 20 (20% = 0.2 ergeben 2000 Punkte this.factor = 100; //Original mit 20 (20% = 0.2 ergeben 2000 Punkte
} else { } else {
double f = 10000.0 * ownBlocks / enemyBlocks; double f = 100.0 * ownBlocks / enemyBlocks;
if(f > 10000) if(f > 100)
f = 10000; f = 100;
else if(f < 4000) else if(f < 40)
f = 4000; f = 40;
this.factor = f; this.factor = f;
} }