summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBryan Bishop <kanzure@gmail.com>2013-11-10 22:45:12 -0600
committerBryan Bishop <kanzure@gmail.com>2013-11-10 22:45:12 -0600
commit0729ed3554f3d79bd59b626c82ccedb88b063860 (patch)
treee355548c469e725f0a61827c522edf3a18150f16
parent409eab17163b2a85f07d4fe3ea58ed7e4a39b00b (diff)
remove a dead function
-rw-r--r--pokemontools/vba/vba.py17
1 files changed, 2 insertions, 15 deletions
diff --git a/pokemontools/vba/vba.py b/pokemontools/vba/vba.py
index 17472f0..a564ac2 100644
--- a/pokemontools/vba/vba.py
+++ b/pokemontools/vba/vba.py
@@ -832,6 +832,8 @@ class crystal(object):
coordinates, pressing the direction button for a full walk step (which
ideally should be blocked, this is mainly to establish direction), and
then pressing "a" to initiate the trainer battle.
+
+ Consider using start_trainer_battle instead.
"""
self.warp(map_group, map_id, x, y)
@@ -854,21 +856,6 @@ class crystal(object):
self.text_wait()
loop_limit -= 1
- def broken_start_trainer_battle(self, trainer_group=0x1, trainer_id=0x1):
- """
- This will fail after the first mon is defeated.
- """
- Script_startbattle_address = 0x97436
-
- # setup the battle
- memory = self.vba.memory
- memory[0xd459] = 0x81
- memory[0xd22f] = trainer_group
- memory[0xd231] = trainer_id
- self.vba.memory = memory
-
- self.call(calculate_address(Script_startbattle_address), bank=calculate_bank(Script_startbattle_address,))
-
def start_trainer_battle(self, trainer_group=0x1, trainer_id=0x1, text_win="YOU WIN", text_address=0xdb90):
"""
Start a trainer battle with the trainer located by trainer_group and