PokéBot Gen3 is a shiny hunting bot, written in Python that runs libmgba + mGBA Python bindings under the hood. Pokémon Ruby, Sapphire, Emerald, FireRed and LeafGreen are supported.
This removes calls to the deprecated same-map navigation function in favour of the new cross-map one.
Doing that simplifies the code a little bit, and hopefully also fixes #316 (at least I wasn't able to reproduce the behaviour anymore.)
As a semi-related fix, this resolves an issue where reapplying Repel would lead to the player continue running in the same direction until they hit an obstacle.
Changes
modules/map_path.py - Fix a bug where the bot would crash if map object data wasn't fully loaded yet by the game.
modules/modes/util/items.py - Fix the bug where the player would stuck running in one direction after re-applying Repel.
Description
This removes calls to the deprecated same-map navigation function in favour of the new cross-map one.
Doing that simplifies the code a little bit, and hopefully also fixes #316 (at least I wasn't able to reproduce the behaviour anymore.)
As a semi-related fix, this resolves an issue where reapplying Repel would lead to the player continue running in the same direction until they hit an obstacle.
Changes
modules/map_path.py
- Fix a bug where the bot would crash if map object data wasn't fully loaded yet by the game.modules/modes/util/items.py
- Fix the bug where the player would stuck running in one direction after re-applying Repel.modules/modes/roamer_reset.py
- Migrated navigation functions.Checklist
--line-length 120
argument