summaryrefslogtreecommitdiff
path: root/pokemontools/vba/vba.py
diff options
context:
space:
mode:
authorBryan Bishop <kanzure@gmail.com>2013-11-11 23:04:44 -0600
committerBryan Bishop <kanzure@gmail.com>2013-11-11 23:04:44 -0600
commit5b35595c7a13792db782f8ebc21dccfcc1b56b9a (patch)
treedb7a4c9703b90a5be3af6fba170a57cbf256ffcf /pokemontools/vba/vba.py
parentfd5544f79094ddddce59754de7bbe3738622e8fe (diff)
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.
Diffstat (limited to 'pokemontools/vba/vba.py')
-rw-r--r--pokemontools/vba/vba.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/pokemontools/vba/vba.py b/pokemontools/vba/vba.py
index 17d3be6..e339f57 100644
--- a/pokemontools/vba/vba.py
+++ b/pokemontools/vba/vba.py
@@ -655,6 +655,12 @@ class crystal(object):
self.vba.write_memory_at(0xDCA7, 0xFF)
self.vba.write_memory_at(0xDCA8, 0xFF)
+ def set_battle_type(self, battle_type):
+ """
+ Changes the battle type value.
+ """
+ self.vba.write_memory_at(0xd230, battle_type)
+
def get_gender(self):
"""
Returns 'male' or 'female'.