Correctly Total Failed Runs, Only Set location to shenk when battling, not on run start (#303)

This commit is contained in:
egut125
2021-12-19 02:26:40 -05:00
committed by GitHub
parent a267c9fbf2
commit feafdca33d
2 changed files with 1 additions and 1 deletions

View File

@@ -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)

View File

@@ -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"]