infinite melee!!
This commit is contained in:
parent
56c965add7
commit
83da3961cd
3
game.go
3
game.go
@ -147,8 +147,7 @@ func (g *game) run() {
|
|||||||
for p := range g.players {
|
for p := range g.players {
|
||||||
if p.Robot.Health > 0 {
|
if p.Robot.Health > 0 {
|
||||||
log.Printf("Robot %v Wins", p.Robot.Id)
|
log.Printf("Robot %v Wins", p.Robot.Id)
|
||||||
log.Printf("game over: %+v", g)
|
log.Printf("game %s: game over", g.id)
|
||||||
return
|
|
||||||
}
|
}
|
||||||
p.reset()
|
p.reset()
|
||||||
}
|
}
|
||||||
|
@ -50,9 +50,6 @@ func (p *player) recv() {
|
|||||||
|
|
||||||
if msg.Stats.Speed > 0 {
|
if msg.Stats.Speed > 0 {
|
||||||
p.Robot.Stats = msg.Stats
|
p.Robot.Stats = msg.Stats
|
||||||
|
|
||||||
log.Printf("%v\n", msg.Stats)
|
|
||||||
|
|
||||||
p.Robot.Health = p.Robot.Stats.Hp
|
p.Robot.Health = p.Robot.Stats.Hp
|
||||||
p.Robot.Speed = 0
|
p.Robot.Speed = 0
|
||||||
p.Robot.TargetSpeed = p.Robot.Stats.Speed
|
p.Robot.TargetSpeed = p.Robot.Stats.Speed
|
||||||
|
Loading…
Reference in New Issue
Block a user