more battery fix
This commit is contained in:
parent
a98e4a554c
commit
2d32cb9e1d
|
@ -91,6 +91,7 @@ func destroyRacer(s State, r Racer) State {
|
||||||
// spawn racer back at starting position
|
// spawn racer back at starting position
|
||||||
r.Position = r.StartPos
|
r.Position = r.StartPos
|
||||||
r.Kinetics = Kinetics{}
|
r.Kinetics = Kinetics{}
|
||||||
|
r.Battery.Charge = r.Battery.Capacity
|
||||||
|
|
||||||
return updateRacer(s, r)
|
return updateRacer(s, r)
|
||||||
}
|
}
|
||||||
|
@ -212,5 +213,5 @@ const (
|
||||||
numRacers = 3
|
numRacers = 3
|
||||||
NumTeams = 8
|
NumTeams = 8
|
||||||
NumLanes = NumTeams
|
NumLanes = NumTeams
|
||||||
baseCharge = 10
|
baseCharge = 16
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in New Issue