Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added auto (grind) attack function to barbarians (#285)
* feat(activateMiracle): added activation level export - Refactor `obtainMiraclesAvailable` to now include activation levels via the `wonderActivationLevel` field. - Improvement enables better management of auto grind for barbarians based on activation levels. * feat(autoBarbarians): added `autoBarbarians` to the options menu * fix(attackBarbarians): Fixed issue with acquiring unit speed due to translation * feat(attackBarbarians): Added unit name acquisition in function * feat(autoBarbarians)!: auto Barbarian function - Added presets to make barbarian grinding easier automatically; - Added usage warnings for users to better understand; - Added Hephaestus availability check to easily switch between presets; - Added auto-recognition of floating city usage through the preset; - Added visualization for users of the troops required by the presets they are using; * feat(autoBarbarians): Added attack and looting action functions - Adjusted data modeling of the `DEFAULT_SCHEMATICS` object for greater efficiency; - Applied syntax and dialog corrections; - Removed extra comments previously added as information for development - Fixed error with `float_city` variable being within a very specific scope; - Added auto-attack operation loop: - Added `get_units_scattered` function to manage the amount of scattered troops; * fix(autoBarbarians): Fixed translation and data modeling - Added a development feature-flag for hephaestus and custom schematic selection; - Fixed translation errors that presented syntax in pt-BR; - Removed unnecessary inputs added in development; * fix(autoBarbarians): Formatted by Black Fomatter * fix(autoBarbarians): dedicated function for background and cleanup - dedicated `do_it` function for background; - renamed the attack function from `do_it` to `do_attack`; - removed some unnecessary comments; - translated some writings that are in pt-BR; * fix(autoBarbarians): Fixed problem where attacks would not follow up if troops took longer than expected to return * feat(attackBarbarians): Added option in to filter only abortables as parameter * fix(autoBarbarians): Validation to wait for the troops to return completely; - Added the `get_current_looting` function to check if the barbarians' city is still being looted, and if it is, wait for the units to return; - Removed redundancy in the function call to start looting; * remove gettext --------- Co-authored-by: ikagod <[email protected]>
- Loading branch information