Add rover integrity

Rovers are damaged by bumping into solid objects
This commit is contained in:
Marc Di Luzio 2020-06-27 01:14:17 +01:00
parent 12dc9e478d
commit 7957454ec1
8 changed files with 75 additions and 42 deletions

View file

@ -17,4 +17,7 @@ type Rover struct {
// Inventory represents any items the rover is carrying
Inventory []byte `json:"inventory"`
// Integrity represents current rover health
Integrity int `json:"integrity"`
}