v0.4.2
This release adds battle_to_df(), a function that converts battle history to a tabular TSV format, and some quality-of-life functions. Read more in the docs. This also tidies up the library and addresses some bugs.
Features
- Added
battle_to_df()to convert battle history to a data frame. - Added
is_non_specific()method forPositionto check if it is non-specific to the current position. - Added
check_activate()forEffectto check if anOutcometrigger activates it.
Changes
- Renamed
TeamViewertrait'scheck_eq_cond()tofilter_matching_pets() - Included
Statisticsof afflicting and affected pets to graphs inTeamverbose dags. - Changed
Teamnames to only include alphanumeric characters.- This ensures that any data frames produced are always formatted correctly.
- Changed effect-applying methods to always use the seed of the team invoking the method.
- Certain
Positions would use the team of the pet being affected.
- Certain
Bug-Fixes
- Fixed
Mosquitoeffect not scaling with level. - Fixes
Chilieffect not triggering pets withKnockoutabilities likeRhinoorHippo. - Fixed bug where cycles in
TeamEffects::trigger_all_effect()were reset.