From bc24fea4e933d3b9e09105ead13eb3ebd4e4bc2e Mon Sep 17 00:00:00 2001 From: Francesco Date: Thu, 13 Jan 2022 11:37:30 +0000 Subject: [PATCH] No diablo by default (#441) * My pick up and sorc parameters * Moved the game logic away from the main within the new GameController class. Refactored the main to use built-in keyboard add_hotkey and wait functions instead of self-written main loop. * Revert "My pick up and sorc parameters" This reverts commit 0920a406 * Changed number of loot columns * Changes as per the comments: Handle non-existing backup file. Removed newline at the beginning of GameController class. Changed line splitted into multiple lines back to a single line. * Refactored graphic debugger with similar logic to botty to now have a controller. * Added a small comment on the graphic debugger class and fixed a now-typo on the presented menu * Bug Fix: if pressing F11 repeatedly the main loop may crash due to self.bot not yet initialized in the game_controller. A safe solution would be to try and catch all but that would also be an overkill as it would most likely mask exceptions that we might want to make the program crash. Checking that self.bot is initialized should work for the time being. * No need to re-assign the resume key within the game controlelr anymore * Urgent 1 liner bug fix for always_on_top: name 'config' is not defined * Bug fix, keyboard dependency on game_recovery.py For some reason PyCharm seems to flag this import as unused while it is actually used. * Set diablo to not run by default --- config/params.ini | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/params.ini b/config/params.ini index 6c557f7..f2b55d0 100644 --- a/config/params.ini +++ b/config/params.ini @@ -31,7 +31,7 @@ run_eldritch=1 run_shenk=0 run_nihlatak=0 run_arcane=0 -run_diablo=1 +run_diablo=0 ; Note: You can not split up or change order of eldritch and shenk as botty treats it as a single run order=run_trav, run_diablo, run_pindle, run_eldritch, run_shenk, run_nihlatak, run_arcane