remove kill/death count in player/health
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user