sovereignx/test/battle/move_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
..
absorb.c Detect 'NOT x; NOT y;' (#3459) 2023-10-24 09:55:32 +02:00
accuracy_down.c
after_you.c
assist.c
attack_down.c
attack_up.c
attack_up_user_ally.c Fixes Howl 2023-11-22 21:55:08 +01:00
aurora_veil.c More weather and type-specific tests (#3260) 2023-10-14 22:58:31 -03:00
axe_kick.c
barb_barrage.c
beak_blast.c
bide.c
brick_break.c Adds Raging Bull and various fixes (#3552) 2023-11-19 17:45:58 +01:00
bug_bite.c Test cleanup and improvements (#3449) 2023-10-22 21:22:59 +02:00
burn_hit.c Detect 'NOT x; NOT y;' (#3459) 2023-10-24 09:55:32 +02:00
burn_up.c
chilly_reception.c EFFECT_CHILLY_RECEPTION (#3379) 2023-12-06 17:11:13 +01:00
collision_course.c
corrosive_gas.c
court_change.c
defense_down.c
defense_up.c
defog.c
dire_claw.c Species Simplifier™ - Part 3 (#3562) 2023-12-08 15:05:10 +01:00
double_shock.c
dream_eater.c Detect 'NOT x; NOT y;' (#3459) 2023-10-24 09:55:32 +02:00
embargo.c fix baton pass not passing embargo (#3745) 2023-12-17 00:25:16 +01:00
encore.c New tests + Sheer Force / Last Resort minor bug fixes (#3378) 2023-10-30 11:39:41 +01:00
evasion_up.c
explosion.c
flinch_hit.c flinch tests + protect/flinch fix (#3345) 2023-09-30 20:30:28 -03:00
flinch_status.c Adds Glaive Rush, fixes for Plasma Fists and Relic Song (#3476) 2023-11-18 15:19:38 +01:00
fling.c Merge remote-tracking branch '_RHH_origin/master' into RHH/upcoming 2023-12-10 14:29:42 -03:00
focus_punch.c
freeze_hit.c Detect 'NOT x; NOT y;' (#3459) 2023-10-24 09:55:32 +02:00
glaive_rush.c Adds Glaive Rush, fixes for Plasma Fists and Relic Song (#3476) 2023-11-18 15:19:38 +01:00
haze.c
heal_pulse.c Species Simplifier™ - Part 3 (#3562) 2023-12-08 15:05:10 +01:00
healing_wish.c
hex.c
hit_escape.c Species Simplifier™ - Part 3 (#3562) 2023-12-08 15:05:10 +01:00
hit_set_entry_hazardss.c
hit_set_remove_terrain.c Fix Wall Werrors on modern (#3412) 2023-10-13 18:39:35 +02:00
hit_switch_target.c
hurricane.c More weather and type-specific tests (#3260) 2023-10-14 22:58:31 -03:00
hydro_steam.c Remove all trailing whitespace (upcoming) (#3473) 2023-10-27 13:54:55 -03:00
infernal_parade.c
ivy_cudgel.c Fixed Ivy Cudgel test name (#3742) 2023-12-16 09:22:36 +01:00
knock_off.c Fix Knock Off healing berries (#3509) 2023-11-01 14:47:31 +01:00
last_resort.c New tests + Sheer Force / Last Resort minor bug fixes (#3378) 2023-10-30 11:39:41 +01:00
leech_seed.c More weather and type-specific tests (#3260) 2023-10-14 22:58:31 -03:00
make_it_rain.c Fixes Make it Rain in double battles (#3441) 2023-10-21 23:42:19 +02:00
matcha_gotcha.c Adds moves Matcha Gotcha, Syrup Bomb and Ivy Cudgel (#3402) 2023-10-11 11:09:50 +02:00
metronome.c
mind_blown.c
mirror_move.c
moonlight.c More weather and type-specific tests (#3260) 2023-10-14 22:58:31 -03:00
morning_sun.c More weather and type-specific tests (#3260) 2023-10-14 22:58:31 -03:00
mortal_spin.c
multi_hit.c Test cleanup and improvements (#3449) 2023-10-22 21:22:59 +02:00
octolock.c fixes tests 2023-10-25 10:18:59 +02:00
ohko.c More weather and type-specific tests (#3260) 2023-10-14 22:58:31 -03:00
paralyze_hit.c Detect 'NOT x; NOT y;' (#3459) 2023-10-24 09:55:32 +02:00
plasma_fists.c Adds Glaive Rush, fixes for Plasma Fists and Relic Song (#3476) 2023-11-18 15:19:38 +01:00
pledge.c Adds combined pledge move effects (#3336) 2023-11-21 16:23:22 +01:00
poison_hit.c Detect 'NOT x; NOT y;' (#3459) 2023-10-24 09:55:32 +02:00
population_bomb.c
protect.c Battlemove refactored (recoil, crit and Z moves) (#3575) 2023-12-19 16:10:07 +01:00
rage_fist.c Adds Rage Fist (#3573) 2023-12-10 12:33:25 +01:00
rampage.c
recoil.c Battlemove refactored (recoil, crit and Z moves) (#3575) 2023-12-19 16:10:07 +01:00
recoil_if_miss.c
reflect.c Fix Wall Werrors on modern (#3412) 2023-10-13 18:39:35 +02:00
reflect_type.c Made Reflect Type handle 3rd types (#3303) 2023-10-23 10:08:36 +01:00
relic_song.c Species Simplifier™ - Part 3 (#3562) 2023-12-08 15:05:10 +01:00
revival_blessing.c Remove all trailing whitespace (upcoming) (#3473) 2023-10-27 13:54:55 -03:00
roar.c
roost.c Species Simplifier™ - Part 3 (#3562) 2023-12-08 15:05:10 +01:00
salt_cure.c Test improvements (#3408) 2023-10-12 12:14:07 +02:00
shell_trap.c
sleep.c
solar_beam.c More weather and type-specific tests (#3260) 2023-10-14 22:58:31 -03:00
special_attack_down.c
special_attack_up_3.c
spikes.c
spin_out.c
stealth_rock.c New tests + Sheer Force / Last Resort minor bug fixes (#3378) 2023-10-30 11:39:41 +01:00
sticky_web.c Species Simplifier™ - Part 3 (#3562) 2023-12-08 15:05:10 +01:00
stockpile.c Fix tests breaking on modern (#3319) 2023-09-19 12:15:03 +02:00
strength_sap.c Fix strength sap on substitute (#3486) 2023-10-30 11:58:15 +01:00
synthesis.c More weather and type-specific tests (#3260) 2023-10-14 22:58:31 -03:00
syrup_bomb.c Syrup Bomb move and special speed drop anim, Credits to Dat.H A (#3474) 2023-10-27 19:14:45 -03:00
tailwind.c
take_heart.c
teatime.c Species Simplifier™ - Part 3 (#3562) 2023-12-08 15:05:10 +01:00
techno_blast.c Changed Ivy Gudgel effect (#3721) 2023-12-14 18:09:06 +01:00
teleport.c
thunder.c More weather and type-specific tests (#3260) 2023-10-14 22:58:31 -03:00
torment.c
toxic.c Detect 'NOT x; NOT y;' (#3459) 2023-10-24 09:55:32 +02:00
toxic_spikes.c More weather and type-specific tests (#3260) 2023-10-14 22:58:31 -03:00
tri_attack.c Species Simplifier™ - Part 3 (#3562) 2023-12-08 15:05:10 +01:00
triple_arrows.c Battlemove refactored (recoil, crit and Z moves) (#3575) 2023-12-19 16:10:07 +01:00
triple_kick.c
venoshock.c
weather_ball.c More weather and type-specific tests (#3260) 2023-10-14 22:58:31 -03:00