sovereignx/test
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
..
battle Battlemove refactored (recoil, crit and Z moves) (#3575) 2023-12-19 16:10:07 +01:00
dynamax.c Species Simplifier™ - Part 3 (#3562) 2023-12-08 15:05:10 +01:00
fpmath.c Merge branch 'RHH/master' into RHH/upcoming 2023-08-12 16:31:44 -04:00
random.c Merge branch 'RHH/master' into RHH/upcoming 2023-10-22 16:30:26 -03:00
species.c SpeciesInfo tests (#3688) 2023-12-11 13:54:20 +01:00
sprite.c Merge branch 'RHH/master' into RHH/upcoming 2023-08-12 16:31:44 -04:00
test_runner.c Merge branch 'RHH/master' into RHH/upcoming 2023-11-14 12:54:16 -03:00
test_runner_args.c
test_runner_battle.c Species Simplifier™ - Part 3 (#3562) 2023-12-08 15:05:10 +01:00