|
|
|
@ -312,7 +312,7 @@ encodingLoops: |
|
|
|
|
convertedStats := map[string]Stats{} |
|
|
|
|
for name, stats := range conf.Stats { |
|
|
|
|
dstat := DeriveStats(stats) |
|
|
|
|
convertedStats[name] = dstat |
|
|
|
|
|
|
|
|
|
r := Robot{ |
|
|
|
|
Stats: dstat, |
|
|
|
|
Id: c.Idg.Hash(), |
|
|
|
@ -327,6 +327,8 @@ encodingLoops: |
|
|
|
|
log.Printf("%s: adding robot: %s", p.Id, r.Id) |
|
|
|
|
r.reset(game) |
|
|
|
|
p.Robots = append(p.Robots, &r) |
|
|
|
|
dstat.Id = r.Id |
|
|
|
|
convertedStats[name] = dstat |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
statsPayload := struct { |
|
|
|
|