Correctly Total Failed Runs, Only Set location to shenk when battling, not on run start (#303)
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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"]
|
||||
|
||||
Reference in New Issue
Block a user