Skip to content

Commit

Permalink
Handle the run_history.log case of NOT dying more explicitly
Browse files Browse the repository at this point in the history
  • Loading branch information
Typhi committed Sep 21, 2024
1 parent 310b6aa commit b395e46
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions rs/helper/logger.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,11 @@ def log_run_results(state: GameState, elites: List[str], bosses: List[str], stra
message += ", Score:" + str(state.game_state()['screen_state']['score'])
message += ", Strat: " + strategy_name
message += ", DiedTo: "
for m in state.get_monsters():
message += m["name"] + ","
if state.get_monsters():
for m in state.get_monsters():
message += m["name"] + ","
else:
message += "N/A,"
message += " Bosses: " + ",".join(bosses)
message += " Elites: " + ",".join(elites)
message += " Relics: "
Expand Down

0 comments on commit b395e46

Please sign in to comment.