diff --git a/protocol.go b/protocol.go index 0f7a0cd..a6874e4 100644 --- a/protocol.go +++ b/protocol.go @@ -197,11 +197,11 @@ func addPlayer(ws *websocket.Conn) { ws: ws, } - for _, stats := range conf.Stats { + for name, stats := range conf.Stats { r := Robot{ Stats: DeriveStats(stats), Id: idg.Hash(), - Name: clientid.Name, + Name: name, Health: 10, Scanners: make([]Scanner, 0)} r.Health = r.Stats.Hp