Merge pull request #3662 from Mailaender/player-stats

Cleanup kill/death counts
This commit is contained in:
Paul Chote
2013-08-11 03:23:11 -07:00
9 changed files with 26 additions and 16 deletions

View File

@@ -22,8 +22,6 @@ namespace OpenRA
public class Player
{
public Actor PlayerActor;
public int Kills;
public int Deaths;
public WinState WinState = WinState.Undefined;
public readonly HSLColor Color;

View File

@@ -137,9 +137,6 @@ namespace OpenRA.Traits
if (hp == 0)
{
attacker.Owner.Kills++;
self.Owner.Deaths++;
foreach (var nd in self.TraitsImplementing<INotifyKilled>()
.Concat(self.Owner.PlayerActor.TraitsImplementing<INotifyKilled>()))
nd.Killed(self, ai);