sovereignx/test/battle/move_flags
Nephrite 4a1a6c5625
Battlemove refactored (recoil, crit and Z moves) (#3575)
* Unified EFFECT_RECOIL

Combined EFFECT_RECOIL_25/33/50/33_STATUS into a single EFFECT; added an extra field to BattleMove 'secondaryData' that contains the franction of HP recoil; argument still holds status effect for Flare Blitz/Volt Tackle

* BattleMove struct change

Added critrate, recoil, multihit fields, made zMove into a union of effect/powerOverride for status/non-status moves respectively. Added new recoil field and zMove field to all moves. To-do: crit rate, multihit

* Critrate field added

Moves use a critRate field instead of a flag - obsoletes EFFECT_ALWAYS_CRIT

* Just a little define

Makes clear that critBoost = 3 means ALWAYS CRIT

* Added a proper recoil field

Just to make it unambiguous and flexible - can finally have a move with 69% recoil.

* Fixed AI damage calculation for multi-strike moves

* Fixes + removed unused effects

* Tests fixes

Two to fix: pass when run in isolation but not when the whole group is run, which is annoying...

* Minor fixes

* Minor tweaks

* Fixed move effects

* recoil tests

---------

Co-authored-by: Alex <alexthenotes@gmail.com>
2023-12-19 16:10:07 +01:00
..
cant_use_twice.c Add new move flags and update all flags for every move (#3425) 2023-10-19 20:16:37 -03:00
damages_airborne_double_damage.c Missing master merge organization 2023-08-13 19:01:03 -04:00
damages_underground.c Missing master merge organization 2023-08-13 19:01:03 -04:00
damages_underwater.c Missing master merge organization 2023-08-13 19:01:03 -04:00
minimize_double_damage.c Missing master merge organization 2023-08-13 19:01:03 -04:00
powder.c More weather and type-specific tests (#3260) 2023-10-14 22:58:31 -03:00
strike_count.c Battlemove refactored (recoil, crit and Z moves) (#3575) 2023-12-19 16:10:07 +01:00