mirror of
https://github.com/pret/pokemon-reverse-engineering-tools.git
synced 2026-08-09 10:47:24 -05:00
even more docstrings
This commit is contained in:
parent
819d16726e
commit
49c51e03d0
|
|
@ -368,6 +368,9 @@ class crystal(object):
|
|||
return name
|
||||
|
||||
def warp(self, map_group_id, map_id, x, y):
|
||||
"""
|
||||
Warp into another map.
|
||||
"""
|
||||
self.vba.write_memory_at(0xdcb5, map_group_id)
|
||||
self.vba.write_memory_at(0xdcb6, map_id)
|
||||
self.vba.write_memory_at(0xdcb7, y)
|
||||
|
|
@ -378,10 +381,17 @@ class crystal(object):
|
|||
self.vba.write_memory_at(0xd434, 0 & 251)
|
||||
|
||||
def warp_pokecenter(self):
|
||||
"""
|
||||
Warp straight into a pokecenter.
|
||||
"""
|
||||
self.warp(1, 1, 3, 3)
|
||||
self.nstep(200)
|
||||
|
||||
def masterballs(self):
|
||||
"""
|
||||
Deposit some pokeballs into the first few slots of the pack. This
|
||||
overrides whatever items were previously there.
|
||||
"""
|
||||
# masterball
|
||||
self.vba.write_memory_at(0xd8d8, 1)
|
||||
self.vba.write_memory_at(0xd8d9, 99)
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user