made compareto only use health

This commit is contained in:
Sem van der Hoeven
2020-06-02 23:44:14 +02:00
parent 1285e1ae82
commit f32a1b34c3

View File

@@ -94,7 +94,7 @@ public abstract class GameCharacter extends Actor implements Comparable<GameChar
@Override
public int compareTo(GameCharacter o) {
return this.name.compareTo(o.name) + this.health - o.health;
return this.health - o.health;
}
@Override