steve1316 / granblue-automation-pyautogui

Educational application aimed at automating user-defined workflows for the mobile game, "Granblue Fantasy", using a variety of CV technologies in the backend such as OpenCV, PyAutoGUI and EasyOCR and a frontend coded in Typescript.
https://github.com/steve1316/granblue-automation-pyautogui/wiki
120 stars 36 forks source link

Now it always go back home while checking for Dimensional Halo #13

Closed KoiKomei closed 3 years ago

KoiKomei commented 3 years ago

As title says, it clicks on Play Again, checks for Dimensional Halo and just go back home even if there's no Dimensional Halo.

KoiKomei commented 3 years ago

I've resolved the issue, i can either do a pull request on a new branch or you can just add the resolution:

                                # Check for Dimensional Halo and Event Nightmare.
                                if(self.farming_mode.lower() == "special" and self.item_name == "EXP"):
                                    if self.check_for_dimensional_halo():
                                        self.map_selection.select_map(farming_mode, location_name, item_name, mission_name, difficulty)
                                elif((self.farming_mode.lower() == "event" or self.farming_mode.lower() == "event (token drawboxes)")):
                                    if self.check_for_event_nightmare():
                                        self.map_selection.select_map(farming_mode, location_name, item_name, mission_name, difficulty)

from line 1711 on game.py

steve1316 commented 3 years ago

My bad, that was an oversight on my part. Added your work to the commit. Let me know how it goes!

KoiKomei commented 3 years ago

It seems to be working correctly. We can close this. Good stuff.