Use merc config (#216)

* Use merc config

* docs
This commit is contained in:
aeon0
2021-12-06 06:58:14 +01:00
committed by GitHub
parent e6491d8642
commit af5e4ffebe
3 changed files with 3 additions and 1 deletions
+1
View File
@@ -25,6 +25,7 @@ run_shenk=0
type=sorceress
casting_frames=11
stash_gold=0
use_merc=1
atk_len_pindle=3
atk_len_eldritch=3
atk_len_shenk=4
+1 -1
View File
@@ -207,7 +207,7 @@ class Bot:
# Check if merc needs to be revived
merc_alive = self._template_finder.search("MERC", self._screen.grab(), threshold=0.9, roi=[0, 0, 200, 200]).valid
if not merc_alive:
if not merc_alive and self._config.char["use_merc"]:
Logger.info("Reviving merc.")
if not self._pather.traverse_nodes(self._curr_location, Location.A5_QUAL_KEHK, self._char):
self.trigger_or_stop("end_game")
+1
View File
@@ -71,6 +71,7 @@ class Config:
"belt_hp_columns": int(self._select_val("char", "belt_hp_columns")),
"belt_mp_columns": int(self._select_val("char", "belt_mp_columns")),
"stash_gold": bool(int(self._select_val("char", "stash_gold"))),
"use_merc": bool(int(self._select_val("char", "use_merc"))),
"cta_available": bool(int(self._select_val("char", "cta_available"))),
"weapon_switch": self._select_val("char", "weapon_switch"),
"battle_orders": self._select_val("char", "battle_orders"),