refactor: made stat init nicer
This commit is contained in:
parent
ebd7d2a12b
commit
6e249280c1
@ -32,8 +32,8 @@ public class Stat {
|
|||||||
*/
|
*/
|
||||||
public Stat(StatType type, int value, int max) {
|
public Stat(StatType type, int value, int max) {
|
||||||
this.type = type;
|
this.type = type;
|
||||||
this.max = max;
|
|
||||||
this.value = value;
|
this.value = value;
|
||||||
|
this.max = max;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -42,7 +42,7 @@ public class Stat {
|
|||||||
* @param toCopy is the {@link Stat} to copy
|
* @param toCopy is the {@link Stat} to copy
|
||||||
*/
|
*/
|
||||||
public Stat(Stat toCopy) {
|
public Stat(Stat toCopy) {
|
||||||
this(toCopy.type, toCopy.value, toCopy.max);
|
this(toCopy.type, toCopy.getValue(), toCopy.getMax());
|
||||||
}
|
}
|
||||||
|
|
||||||
public int getValue() {
|
public int getValue() {
|
||||||
|
Loading…
Reference in New Issue
Block a user