Enhancement: Make log chicken an option (#743)
* Make log chicken an option It can produce a lot of spam for low level bots. * Game stats fix Chicken wasn't counted in the report anymore. * Bugfix
This commit is contained in:
@@ -12,6 +12,7 @@ difficulty=hell
|
||||
info_screenshots=1
|
||||
loot_screenshots=0
|
||||
discord_status_count=20
|
||||
discord_log_chicken=1
|
||||
saved_games_folder=
|
||||
d2r_path=C:\Program Files (x86)\Diablo II Resurrected
|
||||
; if you set this field to 1, botty will save the top-most visible character template just after
|
||||
|
||||
@@ -221,6 +221,7 @@ class Config:
|
||||
"message_api_type": self._select_val("general", "message_api_type"),
|
||||
"custom_message_hook": self._select_val("general", "custom_message_hook"),
|
||||
"discord_status_count": False if not self._select_val("general", "discord_status_count") else int(self._select_val("general", "discord_status_count")),
|
||||
"discord_log_chicken": bool(int(self._select_val("general", "discord_log_chicken"))),
|
||||
"info_screenshots": bool(int(self._select_val("general", "info_screenshots"))),
|
||||
"loot_screenshots": bool(int(self._select_val("general", "loot_screenshots"))),
|
||||
"d2r_path": _default_iff(self._select_val("general", "d2r_path"), "", "C:\Program Files (x86)\Diablo II Resurrected"),
|
||||
|
||||
+2
-1
@@ -72,7 +72,8 @@ class GameStats:
|
||||
self._location_stats[self._location]["chickens"] += 1
|
||||
self._location_stats["totals"]["chickens"] += 1
|
||||
|
||||
self._messenger.send_chicken(self._location, img)
|
||||
if Config().general["discord_log_chicken"]:
|
||||
self._messenger.send_chicken(self._location, img)
|
||||
|
||||
def log_merc_death(self):
|
||||
self._merc_death_counter += 1
|
||||
|
||||
Reference in New Issue
Block a user