Bryan Bishop
3bf53fa87f
detect the evolved screen text
2013-11-14 20:00:59 -06:00
Bryan Bishop
05faa7784a
quick check for the evolved screen
...
This is the message that appears after the pokemon evolved.
2013-11-14 19:57:49 -06:00
Bryan Bishop
038a9d8ec0
a quick method to detect the "is evolving" message
2013-11-14 01:44:40 -06:00
Bryan Bishop
1bbfb2869f
a faster way to detect the stats screen in battles
...
The other way was way too slow since it had to parse 1000 characters
every frame.
2013-11-14 01:08:08 -06:00
Bryan Bishop
dc0a7ac670
make get_text slightly more configurable
...
Add params to the get_text() function to dump text tiles from screen.
2013-11-14 00:43:52 -06:00
Bryan Bishop
106f45ac7a
a really slow way to check for stats screen
2013-11-14 00:43:35 -06:00
Bryan Bishop
d8ab944d43
simplify the date/clock check in text_wait
2013-11-13 23:07:44 -06:00
Bryan Bishop
811630a5dd
a better in-battle check for text_wait
2013-11-13 23:07:26 -06:00
Bryan Bishop
367485303a
improve text_wait for in-battle situations
2013-11-13 22:44:04 -06:00
Bryan Bishop
dddc61e026
a really simple, broken battle strategy
2013-11-13 22:43:35 -06:00
Bryan Bishop
79bc508889
better "is input required" detector
2013-11-13 21:45:05 -06:00
Bryan Bishop
28393a5342
fix a variable typo in wild prompt detector
2013-11-13 21:44:21 -06:00
Bryan Bishop
257ddde525
press the "a" button (fix typo)
2013-11-13 21:02:34 -06:00
Bryan Bishop
e8371152c9
self.vba -> self.emulator.vba
2013-11-13 19:52:40 -06:00
Bryan Bishop
84c106e118
battle move selection
2013-11-13 19:43:47 -06:00
Bryan Bishop
8be80027e8
Merge branch 'master' into battle-handling
2013-11-13 19:02:23 -06:00
Bryan Bishop
4a002c193b
Merge pull request #50 from kanzure/include-wram
...
Parse WRAM addresses into a dictionary
2013-11-12 22:35:39 -08:00
Bryan Bishop
e4067faa60
use the correct wram_labels variable in wram.py
2013-11-13 00:28:59 -06:00
Bryan Bishop
51b1f6e642
flip the wram labels dictionary
2013-11-13 00:24:15 -06:00
Bryan Bishop
2b23c09e57
include some constants for wram.asm
...
UNfortunately these aren't being parsed from files at the moment.
2013-11-13 00:09:05 -06:00
Bryan Bishop
9c56fcd97d
make a simple join function in data/
2013-11-12 23:42:24 -06:00
Bryan Bishop
4ca83d72bf
store pokecrystal wram.asm in the repository
2013-11-12 21:36:31 -06:00
Bryan Bishop
7271993919
Merge pull request #49 from kanzure/givepoke-todo
...
TODO in givepoke
2013-11-12 09:04:01 -08:00
Bryan Bishop
5355c3ce04
add todo comment to givepoke
2013-11-12 11:03:18 -06:00
Bryan Bishop
b44e7b6dee
incomplete simple battle strategy
2013-11-12 02:11:23 -06:00
Bryan Bishop
d193e02a11
select a battle menu option
2013-11-12 02:11:09 -06:00
Bryan Bishop
4d5696251c
make a class that shows off the handler methods
...
It doesn't do anything except show some of the methods that need to be
implemented.
2013-11-11 23:22:09 -06:00
Bryan Bishop
5b35595c7a
minor function to set battle type
...
This needs to be replaced with something that loads variable names from
wram.asm instead of manually repeating everything in python.
2013-11-11 23:04:44 -06:00
Bryan Bishop
fd5544f790
handle wild yes/no prompt during battle
2013-11-11 23:04:31 -06:00
Bryan Bishop
4087851f7c
wild switch prompt detector
2013-11-11 22:39:37 -06:00
Bryan Bishop
d6cf3454c4
prepare for a wild-based detector
...
This one isn't implemented yet but might as well get the wrapper
functions out of the way.
2013-11-11 22:21:23 -06:00
Bryan Bishop
2ff3478bfd
fix a typo in the switch prompt test
2013-11-11 21:57:08 -06:00
Bryan Bishop
d9bb01f2c0
rename the switch prompt detector
2013-11-11 21:56:34 -06:00
Bryan Bishop
9f72be1a0f
handle the yes/no prompt in the battle run loop
2013-11-11 21:54:06 -06:00
Bryan Bishop
993eaa3451
fix the is_switch_prompt test
2013-11-11 21:52:33 -06:00
Bryan Bishop
cc4c248167
add is_switch_prompt to the input poll detector
2013-11-11 21:52:12 -06:00
Bryan Bishop
ba6eb203b4
a test for detecting the yes/no prompt
2013-11-11 21:48:29 -06:00
Bryan Bishop
2801a3545f
update docstrings about the switch prompt
2013-11-11 21:48:01 -06:00
Bryan Bishop
e61643e681
use set_battle_mon_hp in a test
2013-11-11 21:33:14 -06:00
Bryan Bishop
18449eea21
function to check if it's the yes/no prompt
...
This is the prompt that appears during battles for whether or not to
switch pokemon when the other trainer is sending something else out.
2013-11-11 21:27:28 -06:00
Bryan Bishop
4c6a904db1
a quick function to set pokemon hp in battle
2013-11-11 21:22:15 -06:00
Bryan Bishop
7b1be358d8
Merge pull request #48 from kanzure/various-readme-updates
...
README: update introduction to pokemontools
2013-11-11 18:45:52 -08:00
Bryan Bishop
ab1a60ef46
README: update introduction to pokemontools
...
The previous version of the README was leftover from when all of the
source code was just files inside of extras/ in the pokecrystal repo.
2013-11-11 20:40:28 -06:00
Bryan Bishop
fd10868994
version bump to: v1.6.0
2013-11-11 12:39:50 -06:00
Bryan Bishop
e0991710ef
Merge branch 'github/master' into master
2013-11-11 12:38:52 -06:00
Bryan Bishop
fcfde94ba8
version bump to: v1.5.0
2013-11-11 12:38:17 -06:00
Bryan Bishop
a11b084a28
Merge pull request #39 from kanzure/vba-automation
...
More VBA automation
2013-11-11 10:36:33 -08:00
Bryan Bishop
966985411f
detect the "mandatory switch" menu
...
This requires a slightly slower text_wait function. There is probably a
way to refactor that function in a way that doesn't cause cancer.
2013-11-11 00:55:54 -06:00
Bryan Bishop
1d9ecfa00f
switch tests to use new battle starter
2013-11-11 00:04:32 -06:00
Bryan Bishop
9249ffd2d0
bootstrap the battle tests with more mons
...
Use the givepoke function to add a few more pokemon to the team before
starting the battle-related tests. There are some features of the battle
handling code that require more than one pokemon to be present in the
party.
2013-11-10 23:14:42 -06:00