fixed naming
This commit is contained in:
parent
34f5d6876d
commit
9de2b51f46
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user