@@ -81,11 +81,17 @@ def add_kill(self, data):
8181
8282 team = self .find_team_for_player (data [4 ])
8383
84- if team == list (self .rounds [self .actual_round ].teams .keys ())[0 ]:
85- self .events .append ({"type" : "kill_team1" , "timestamp" : data [2 ], "value" : 1 , "description" : "{} kill {}" .format (data [4 ], data [7 ])})
86- else :
87- self .events .append ({"type" : "kill_team2" , "timestamp" : data [2 ], "value" : 1 ,
88- "description" : "{} kill {}" .format (data [4 ], data [7 ])})
84+ self .events .append ({"type" : "kill" , "timestamp" : data [2 ], "player" : data [4 ],
85+ "description" : "{} kill {}" .format (data [4 ], data [7 ])})
86+
87+ self .events .append ({"type" : "death" , "timestamp" : data [2 ], "player" : data [7 ],
88+ "description" : "{} kill {}" .format (data [4 ], data [7 ])})
89+
90+ # if team == list(self.rounds[self.actual_round].teams.keys())[0]:
91+ # self.events.append({"type": "kill_team1", "timestamp": data[2], "player": data[4], "description": "{} kill {}".format(data[4], data[7])})
92+ # else:
93+ # self.events.append({"type": "kill_team2", "timestamp": data[2], "player": data[4],
94+ # "description": "{} kill {}".format(data[4], data[7])})
8995 def add_player_stat (self , data ):
9096
9197 # self.create_if_player_and_caracter_not_exist(data[4], data[5], data[6])
0 commit comments