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.
This commit is contained in:
Bryan Bishop
2013-11-11 23:04:44 -06:00
parent fd5544f790
commit 5b35595c7a

View File

@@ -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'.