diff options
author | Bryan Bishop <kanzure@gmail.com> | 2013-11-11 21:48:01 -0600 |
---|---|---|
committer | Bryan Bishop <kanzure@gmail.com> | 2013-11-11 21:48:01 -0600 |
commit | 2801a3545ffd4cde947cb6fee212fe3a4f759543 (patch) | |
tree | e47657c27e4e3418e651751b7b11b13bcb0f1a88 | |
parent | e61643e6814d49c4244c49fa561745dc3fc3e80a (diff) |
update docstrings about the switch prompt
-rw-r--r-- | pokemontools/vba/battle.py | 4 | ||||
-rw-r--r-- | pokemontools/vba/vba.py | 6 |
2 files changed, 8 insertions, 2 deletions
diff --git a/pokemontools/vba/battle.py b/pokemontools/vba/battle.py index 17c0d5d..a5d9d52 100644 --- a/pokemontools/vba/battle.py +++ b/pokemontools/vba/battle.py @@ -58,7 +58,9 @@ class Battle(EmulatorController): def is_switch_prompt(self): """ Detects if the battle is waiting for the player to choose whether or - not to switch pokemon. + not to switch pokemon. This is the prompt that asks yes/no for whether + to switch pokemon, like if the trainer is switching pokemon at the end + of a turn set. """ return self.emulator.is_battle_switch_prompt() diff --git a/pokemontools/vba/vba.py b/pokemontools/vba/vba.py index 79eb77e..58ed1bd 100644 --- a/pokemontools/vba/vba.py +++ b/pokemontools/vba/vba.py @@ -602,8 +602,12 @@ class crystal(object): def is_battle_switch_prompt(self): """ Checks if the game is currently displaying the yes/no prompt for - whether or not to switch pokemon. + whether or not to switch pokemon. This happens when the trainer is + switching pokemon out. """ + # TODO: this method should return False if the game options have been + # set to not use the battle switching style. + # get on-screen text text = self.get_text() |