fixed naming
This commit is contained in:
parent
34f5d6876d
commit
9de2b51f46
@ -197,11 +197,11 @@ func addPlayer(ws *websocket.Conn) {
|
|||||||
ws: ws,
|
ws: ws,
|
||||||
}
|
}
|
||||||
|
|
||||||
for _, stats := range conf.Stats {
|
for name, stats := range conf.Stats {
|
||||||
r := Robot{
|
r := Robot{
|
||||||
Stats: DeriveStats(stats),
|
Stats: DeriveStats(stats),
|
||||||
Id: idg.Hash(),
|
Id: idg.Hash(),
|
||||||
Name: clientid.Name,
|
Name: name,
|
||||||
Health: 10,
|
Health: 10,
|
||||||
Scanners: make([]Scanner, 0)}
|
Scanners: make([]Scanner, 0)}
|
||||||
r.Health = r.Stats.Hp
|
r.Health = r.Stats.Hp
|
||||||
|
Loading…
Reference in New Issue
Block a user