mirror of
https://github.com/pret/pokemon-reverse-engineering-tools.git
synced 2026-08-21 17:54:08 -05:00
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:
@@ -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'.
|
||||
|
||||
Reference in New Issue
Block a user