From 6e249280c1a7496d5301708e597a4ae1e772acca Mon Sep 17 00:00:00 2001 From: Yannik Bretschneider Date: Tue, 10 Aug 2021 12:55:10 +0200 Subject: [PATCH] refactor: made stat init nicer --- .../uulm/teamname/marvelous/gamelibrary/entities/Stat.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/uulm/teamname/marvelous/gamelibrary/entities/Stat.java b/src/main/java/uulm/teamname/marvelous/gamelibrary/entities/Stat.java index 09c5769..8e065e7 100644 --- a/src/main/java/uulm/teamname/marvelous/gamelibrary/entities/Stat.java +++ b/src/main/java/uulm/teamname/marvelous/gamelibrary/entities/Stat.java @@ -32,8 +32,8 @@ public class Stat { */ public Stat(StatType type, int value, int max) { this.type = type; - this.max = max; this.value = value; + this.max = max; } /** @@ -42,7 +42,7 @@ public class Stat { * @param toCopy is the {@link Stat} to copy */ public Stat(Stat toCopy) { - this(toCopy.type, toCopy.value, toCopy.max); + this(toCopy.type, toCopy.getValue(), toCopy.getMax()); } public int getValue() {