Skip to content

Commit

Permalink
Fix bug in script that prints the relations
Browse files Browse the repository at this point in the history
as kills
  • Loading branch information
royfalk committed Nov 14, 2024
1 parent 8af7ab2 commit 7c8b2b1
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions python/base_computer/player_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,7 @@ def get_player_info(names, relations, kills):

for name, relation_str, kills_str in zip(names, relations, kills):
relation = int(round(float(relation_str) * 100))
faction_kills = int(round(float(relation_str)))

# For some reason, privateer reports 1 kill
if name == 'privateer':
faction_kills = 0
faction_kills = int(kills_str)

total_kills += faction_kills

Expand Down

0 comments on commit 7c8b2b1

Please sign in to comment.