SteamWar/FightSystem
Archiviert
13
1

Change percent damage display to damage health
Alle Prüfungen waren erfolgreich
SteamWarCI Build successful

Signed-off-by: Lixfel <agga-games@gmx.de>
Dieser Commit ist enthalten in:
Lixfel 2023-12-12 12:48:56 +01:00
Ursprung 0a45b161a2
Commit 0fb7a7b8ce

Datei anzeigen

@ -58,7 +58,7 @@ public class WinconditionPercent extends Wincondition implements PrintableWincon
}
public Message getDisplay(FightTeam team) {
return new Message("BAR_PERCENT", team.getPrefix() + (Math.round(100.0 * getPercent(team)) / 100.0));
return new Message("BAR_PERCENT", team.getPrefix() + (Math.round(100.0 * (100.0 - getPercent(team) / Config.PercentWin)) / 100.0));
}
public double getPercent(FightTeam team) {