From 0729ed3554f3d79bd59b626c82ccedb88b063860 Mon Sep 17 00:00:00 2001 From: Bryan Bishop Date: Sun, 10 Nov 2013 22:45:12 -0600 Subject: remove a dead function --- pokemontools/vba/vba.py | 17 ++--------------- 1 file 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 -- cgit v1.2.3