From 49c51e03d059bb5a93b4dcd494bd145f5f96428a Mon Sep 17 00:00:00 2001 From: Bryan Bishop Date: Sat, 12 Oct 2013 16:31:05 -0500 Subject: even more docstrings --- pokemontools/vba/vba.py | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'pokemontools/vba') diff --git a/pokemontools/vba/vba.py b/pokemontools/vba/vba.py index 007c132..e30616f 100644 --- a/pokemontools/vba/vba.py +++ b/pokemontools/vba/vba.py @@ -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) -- cgit v1.2.3