Skip to content

Commit eeaf71f

Browse files
committed
add ultimate use
1 parent d3cf8fa commit eeaf71f

File tree

1 file changed

+3
-1
lines changed
  • src/log_analyser/objects

1 file changed

+3
-1
lines changed

src/log_analyser/objects/map.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,9 @@ def add_ultimate_start(self, data):
127127
ultimate_start_data = {"start": data[2]}
128128
self.rounds[self.actual_round].teams[data[3]].players[data[4]].characters[data[5]].add_ultimate_start(ultimate_start_data)
129129

130+
self.events.append({"type": "ultimate", "timestamp": data[2], "player": data[4],
131+
"description": "{} use {} ultimate".format(data[4], data[5])})
132+
130133
def add_ultimate_end(self, data):
131134

132135
self.create_if_player_and_caracter_not_exist(data[3], data[4], data[5])
@@ -148,7 +151,6 @@ def add_objective_captured(self, data):
148151

149152
self.rounds[self.actual_round].add_objective_captured(objective_capture_data)
150153

151-
152154
def add_objective_progress(self, data):
153155

154156
objectif_progress_data = {"time": data[2], "team_name": data[4], "progress": data[6]}

0 commit comments

Comments
 (0)