diff --git a/robot.go b/robot.go index aaa8860..94adadd 100644 --- a/robot.go +++ b/robot.go @@ -283,7 +283,7 @@ func (r *Robot) Tick(g *game) { } } - // We only self repair when we're stopped + // We are only allowed to scan when we're stopped if math.Abs(float64(r.Speed)) < v.Epsilon && r.ActiveScan { r.ScanCounter += delta * float32(r.Stats.ScannerRadius) * 0.1 } else if r.ScanCounter > 0 { diff --git a/splosion.go b/splosion.go index 746c921..612f8af 100644 --- a/splosion.go +++ b/splosion.go @@ -5,10 +5,10 @@ import ( ) type Splosion struct { - Id string `json:"id"` - Position v.Point2d `json:"position"` - Radius int `json:"radius"` - Lifespan int `json:"-"` + Id string `json:"id"` + Position v.Point2d `json:"position"` + Radius int `json:"radius"` + Lifespan int `json:"-"` } func (s *Splosion) Tick() {