From 5851d5019b15d93e11004502af628ef2b59ad993 Mon Sep 17 00:00:00 2001 From: Lixfel Date: Tue, 12 Dec 2023 17:24:07 +0100 Subject: [PATCH] Fix percent display Signed-off-by: Lixfel --- .../steamwar/fightsystem/winconditions/WinconditionPercent.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/FightSystem_Core/src/de/steamwar/fightsystem/winconditions/WinconditionPercent.java b/FightSystem_Core/src/de/steamwar/fightsystem/winconditions/WinconditionPercent.java index 4e19412..37d3faf 100644 --- a/FightSystem_Core/src/de/steamwar/fightsystem/winconditions/WinconditionPercent.java +++ b/FightSystem_Core/src/de/steamwar/fightsystem/winconditions/WinconditionPercent.java @@ -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 * (100.0 - getPercent(team) / Config.PercentWin)) / 100.0)); + return new Message("BAR_PERCENT", team.getPrefix() + (Math.round(10000.0 * (1.0 - getPercent(team) / Config.PercentWin)) / 100.0)); } public double getPercent(FightTeam team) {