pokebot-gen3
pokebot-gen3 copied to clipboard
Handle revive modes for catch strategy
Description
Added a revive options in catch strategy to handle fainted leader during a catch
Changes
modules/battle_handler.py
now handle battle pokemon index
modules/battle_strategies/catch.py
- Changed
decide_turn
function to revive the leader pokemon or throw ball depending on the configuration. It also use max revive or revive depending on the configuration. - Implemented
choose_new_lead_after_faint
to return the first new available Pokemon
modules/config/templates/battle.yml
Updated the conf with default revive and item_revive strategy
modules/pokemon.py
Added tool functions to get alive pokemons and pokemons that are not eggs in party
Notes
Beware Sableye, we are coming
Checklist
- [X] Black Linter has been ran, using
--line-length 120
argument - [X] Wiki has been updated (if relevant)
Reviving when catching : https://youtu.be/Ogphgb_EbQM
Game Support
🟥 Ruby | 🔷 Sapphire | 🟢 Emerald | 🔥 FireRed | 🌿 LeafGreen | |
---|---|---|---|---|---|
English | ✅ | ✅ | ✅ | ✅ | ✅ |
Japanese | 🟨 | 🟨 | ✅ | 🟨 | 🟨 |
German | 🟨 | 🟨 | ✅ | 🟨 | 🟨 |
Spanish | 🟨 | 🟨 | ✅ | 🟨 | 🟨 |
French | 🟨 | 🟨 | ✅ | 🟨 | 🟨 |
Italian | 🟨 | 🟨 | ✅ | 🟨 | 🟨 |