This website works better with JavaScript.
Home
Help
Sign In
hackerbots
/
server
Watch
1
Star
0
Fork
0
Code
Issues
2
Pull Requests
0
Activity
Browse Source
self shots are still suicides
master
Fraser Graham
7 years ago
parent
7bb5ae59b3
commit
dce3f15c4c
1 changed files
with
5 additions
and
1 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+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
++
}
}
}
}
Write
Preview
Loading…
Cancel
Save