refactor: made stat init nicer

This commit is contained in:
Yannik Bretschneider 2021-08-10 12:55:10 +02:00
parent ebd7d2a12b
commit 6e249280c1

View File

@ -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() {