sovereignx/test/battle
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
..
ability Battlemove refactored (recoil, crit and Z moves) (#3575) 2023-12-19 16:10:07 +01:00
form_change Add status form change 2023-12-15 11:17:35 +01:00
hold_effect Battlemove refactored (recoil, crit and Z moves) (#3575) 2023-12-19 16:10:07 +01:00
item_effect Fix Ice Heal typo in test 2023-12-10 17:07:28 +00:00
move_effect Battlemove refactored (recoil, crit and Z moves) (#3575) 2023-12-19 16:10:07 +01:00
move_flags Battlemove refactored (recoil, crit and Z moves) (#3575) 2023-12-19 16:10:07 +01:00
status1 Test improvements (#3408) 2023-10-12 12:14:07 +02:00
terrain Species Simplifier™ - Part 3 (#3562) 2023-12-08 15:05:10 +01:00
weather Remove all trailing whitespace (upcoming) (#3473) 2023-10-27 13:54:55 -03:00
ai.c get rid of known failing in ai test (#3748) 2023-12-17 15:11:02 +01:00
ai_check_viability.c Increase score of secondary effects only at 100% chance (#3583) 2023-11-21 11:30:20 +01:00
ai_trytofaint.c Remove function GetMoveDamageResult (#3536) 2023-11-09 20:53:14 +01:00
crit_chance.c Battlemove refactored (recoil, crit and Z moves) (#3575) 2023-12-19 16:10:07 +01:00
damage_formula.c Adds combined pledge move effects (#3336) 2023-11-21 16:23:22 +01:00
exp.c Fix Wall Werrors on modern (#3412) 2023-10-13 18:39:35 +02:00
move.c Battlemove refactored (recoil, crit and Z moves) (#3575) 2023-12-19 16:10:07 +01:00
trainer_control.c fix -Wmaybe-uninitialized for ModifyPersonalityForNature test 2023-10-24 01:02:02 +02:00