minor tweaks, including go fmt
This commit is contained in:
parent
d3c08a7953
commit
bc2d1cdd52
2
robot.go
2
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 {
|
||||
|
@ -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() {
|
||||
|
Loading…
Reference in New Issue
Block a user