more battery fix

This commit is contained in:
Luke Meyers 2020-02-08 18:57:53 -08:00
parent a98e4a554c
commit 2d32cb9e1d
1 changed files with 2 additions and 1 deletions

View File

@ -91,6 +91,7 @@ func destroyRacer(s State, r Racer) State {
// spawn racer back at starting position
r.Position = r.StartPos
r.Kinetics = Kinetics{}
r.Battery.Charge = r.Battery.Capacity
return updateRacer(s, r)
}
@ -212,5 +213,5 @@ const (
numRacers = 3
NumTeams = 8
NumLanes = NumTeams
baseCharge = 10
baseCharge = 16
)