Merge branch 'feature/device-service' of https://github.com/jazzm0/microservices-demo into feature/device-service
This commit is contained in:
commit
3d2faac24a
2 changed files with 3 additions and 1 deletions
|
@ -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()));
|
||||
}
|
||||
|
|
|
@ -54,7 +54,7 @@ public class Owner {
|
|||
if (devices != null) {
|
||||
Device first = devices.iterator().next();
|
||||
Care care = new Care();
|
||||
care.setFeed(-1000);
|
||||
care.setFeed(-100000);
|
||||
tamagotchiService.takeCare(first.getId(), care);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue