From feafdca33dab18527879a12bba8266c555b8a917 Mon Sep 17 00:00:00 2001 From: egut125 Date: Sun, 19 Dec 2021 02:26:40 -0500 Subject: [PATCH] Correctly Total Failed Runs, Only Set location to shenk when battling, not on run start (#303) --- src/bot.py | 1 - src/game_stats.py | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bot.py b/src/bot.py index b68fe3d..b198dd8 100644 --- a/src/bot.py +++ b/src/bot.py @@ -310,7 +310,6 @@ class Bot: def on_run_shenk(self): res = False self._do_runs["run_shenk"] = False - self._game_stats.update_location("Shenk") self._curr_loc = self._shenk.approach(self._curr_loc) if self._curr_loc: res = self._shenk.battle(self._route_config["run_shenk"], not self._pre_buffed, self._game_stats) diff --git a/src/game_stats.py b/src/game_stats.py index 0e028f2..4e271c8 100644 --- a/src/game_stats.py +++ b/src/game_stats.py @@ -148,6 +148,7 @@ class GameStats: totals["chickens"] += stats["chickens"] totals["deaths"] += stats["deaths"] totals["merc_deaths"] += stats["merc_deaths"] + totals["failed_runs"] += stats["failed_runs"] table.rows.append([location, len(stats["items"]), stats["chickens"], stats["deaths"], stats["merc_deaths"], stats["failed_runs"]]) table.rows.append(["Total", totals["items"], totals["chickens"], totals["deaths"], totals["merc_deaths"], totals["failed_runs"]]) table.columns.header = ["Run", "I", "C", "D", "MD", "F"]