diff options
author | Bryan Bishop <kanzure@gmail.com> | 2013-11-11 22:39:37 -0600 |
---|---|---|
committer | Bryan Bishop <kanzure@gmail.com> | 2013-11-11 22:39:37 -0600 |
commit | 4087851f7c9c92791182ffa695073827c5433829 (patch) | |
tree | 46a1b48c1b53e4c84b6497ff5fac04876f2ef5ea /pokemontools/vba/vba.py | |
parent | d6cf3454c44fab60c6f83bc8fa3109f0c793fd2f (diff) |
wild switch prompt detector
Diffstat (limited to 'pokemontools/vba/vba.py')
-rw-r--r-- | pokemontools/vba/vba.py | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/pokemontools/vba/vba.py b/pokemontools/vba/vba.py index 6f863b6..17d3be6 100644 --- a/pokemontools/vba/vba.py +++ b/pokemontools/vba/vba.py @@ -625,8 +625,16 @@ class crystal(object): Detects if the battle is waiting for the player to choose whether or not to continue to fight the wild pokemon. """ - # TODO: make a better implementation - return False + # get on-screen text + screen_text = self.get_text() + + requirements = [ + "YES", + "NO", + "Use next POKMON?", + ] + + return all([requirement in text for requirement in requirements]) def is_switch_prompt(self): """ |