sovereignx/test/battle/hold_effect
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
..
air_balloon.c Species Simplifier™ - Part 3 (#3562) 2023-12-08 15:05:10 +01:00
attack_up.c Species Simplifier™ - Part 3 (#3562) 2023-12-08 15:05:10 +01:00
berserk_gene.c Species Simplifier™ - Part 3 (#3562) 2023-12-08 15:05:10 +01:00
clear_amulet.c fixes tests 2023-10-25 10:18:59 +02:00
critical_hit_up.c Battlemove refactored (recoil, crit and Z moves) (#3575) 2023-12-19 16:10:07 +01:00
cure_status.c Fixed entry hazards switch in issue (#3316) 2023-10-01 10:30:41 -03:00
custap_berry.c Fixes Quick Draw (#3724) 2023-12-15 00:03:59 +01:00
defense_up.c Species Simplifier™ - Part 3 (#3562) 2023-12-08 15:05:10 +01:00
eject_button.c Fixes Substitute triggering Stamina and Eject Button on crash damage (#3669) 2023-12-09 17:40:04 +01:00
enigma_berry.c Fix Wall Werrors on modern (#3412) 2023-10-13 18:39:35 +02:00
gems.c Organized tests into subfolders (#2822) 2023-08-12 20:00:15 +01:00
jaboca_berry.c Test cleanup and improvements (#3449) 2023-10-22 21:22:59 +02:00
kee_berry.c Species Simplifier™ - Part 3 (#3562) 2023-12-08 15:05:10 +01:00
leftovers.c Fix Wall Werrors on modern (#3412) 2023-10-13 18:39:35 +02:00
maranga_berry.c Species Simplifier™ - Part 3 (#3562) 2023-12-08 15:05:10 +01:00
metronome.c Fix Wall Werrors on modern (#3412) 2023-10-13 18:39:35 +02:00
micle_berry.c Detect 'NOT x; NOT y;' (#3459) 2023-10-24 09:55:32 +02:00
mirror_herb.c Opportunist Ability (#2994) 2023-10-09 22:35:00 -03:00
quick_claw.c Fix Quick Claw chance (#3737) 2023-12-15 17:05:11 +01:00
random_stat_up.c Fix Kee Berry and Custap Berry + Tests (#3409) 2023-10-13 23:07:04 +02:00
red_card.c Species Simplifier™ - Part 3 (#3562) 2023-12-08 15:05:10 +01:00
rowap_berry.c Detect 'NOT x; NOT y;' (#3459) 2023-10-24 09:55:32 +02:00
safety_goggles.c Merge branch 'RHH/master' into RHH/upcoming 2023-10-19 08:10:49 -03:00
special_attack_up.c Species Simplifier™ - Part 3 (#3562) 2023-12-08 15:05:10 +01:00
special_defense_up.c Species Simplifier™ - Part 3 (#3562) 2023-12-08 15:05:10 +01:00
speed_up.c Species Simplifier™ - Part 3 (#3562) 2023-12-08 15:05:10 +01:00
utility_umbrella.c Organized tests into subfolders (#2822) 2023-08-12 20:00:15 +01:00
white_herb.c Species Simplifier™ - Part 3 (#3562) 2023-12-08 15:05:10 +01:00