Browse Source

Merge branch 'master' of ssh://bitbucket.org/hackerbots/botserv

master
Stephen McQuay 6 years ago
parent
commit
0698f21a0f
1 changed files with 5 additions and 1 deletions
  1. +5
    -1
      projectile.go

+ 5
- 1
projectile.go View File

@ -100,7 +100,11 @@ func (p *Projectile) Tick(g *game) {
p.Owner.gameStats.Hits++
if r.Health <= 0 {
r.gameStats.Deaths++
p.Owner.gameStats.Kills++
if r == p.Owner {
p.Owner.gameStats.Suicides++
} else {
p.Owner.gameStats.Kills++
}
}
}
}

Loading…
Cancel
Save