Stats string does not display decimal points

This commit is contained in:
Yair Morgenstern 2018-04-08 08:55:06 +03:00
parent f662cd910d
commit 3ca20951e5

View file

@ -55,7 +55,7 @@ open class Stats() {
}
override fun toString(): String {
return toHashMap().filter { it.value != 0f }.map { it.key.toString() + ": " + it.value }.joinToString()
return toHashMap().filter { it.value != 0f }.map { it.key.toString() + ": " + it.value.toInt() }.joinToString()
}
fun toHashMap(): HashMap<Stat, Float> {