min health = 0

This commit is contained in:
Tibor Tarnai 2019-12-11 11:30:31 +01:00
parent 68ef63210f
commit f62787de04

View file

@ -65,6 +65,8 @@ public class Device {
healthScore += delta;
if (healthScore > 150)
healthScore /= 10;
} else {
healthScore = 0;
}
messages.add(new DeviceEvent(id, owner, color, born, healthScore, Instant.now()));
}