sovereignx/test/battle/move_effect
LOuroboros a64e1c63c1
Move data unification (#3999)
* Made gBattleMoves handle the InGame name and description of battle moves
No more multiple arrays in separate, individual files.

Note:
-Keep an eye on Task_LearnedMove.

* Reintroduced move names

Misc:
-Fixed Trick-or-Treat and Light of Ruin's expanded names.
-Introduced a new field for Z-Move names, and a constant for their name length.
-Added a few TODOs to GetBattleMoveName.
-Updated GetMaxMoveName and GetZMoveName. There's no reason not to let GetBattleMoveName handle everything on its own.

* Updated GetBattleMoveName to handle Z-Move Names

Misc:
-Removed pointless TODO about MOVE_NAME_LENGTH.
 -The compiler doesn't allow to have a move name with a value higher than MOVE_NAME_LENGTH, therefore it's pointless to worry about it.

* Fixed a couple of expanded move names

* Removed zMoveName variable of struct BattleMove and extended the name variable's size

* Ditched no longer used MOVE_NAME_LENGTH constant

* Corrected the names of the max moves
I should have done this after updating the size of the name variable of the struct BattleMove, but I didn't think about it at all until Cancer Fairy indirectly gave me the idea.

* Fixed U-turn's name

* Brought back MOVE_NAME_LENGTH
I think it doesn't make sense to have a Z_MOVE_NAME_LENGTH because the length in question is used for all battle moves, not just the Z-Moves.

* Introduced a union for Move/Z-Move names in the struct BattleMove

* Fixed the union for gBattleMoves move names
Also updated GetBattleMoveName to properly handle Max Move names.
Also also renamed the "zMoveName" variable to "bigMoveName" which better reflects its purpose. Z-Move names weren't the only thing it covered, since it also handles Max Move names.

* Removed deprecated GetZMoveName and GetMaxMoveName

* Reintroduced mention to gMoveNames in sGFRomHeader

* Fixed move names and ported move descriptions

* Fused the struct ContestMove into the struct BattleMove

* Removed no longer used Z_MOVE_NAME_LENGTH constant

* Renamed the struct BattleMove's bigMoveName variable and introduced macros to prettify move names

* Reintroduced the contest parameters for Pokémon moves

* Renamed gBattleMoves to gMovesInfo
This is consistent with gSpeciesInfo, the array that contains most of the species data.

* Renamed the BattleMove struct to MovesInfo
This is consistent with the struct SpeciesInfo, which contains the variables used by the gSpeciesInfo array.

* Removed empty lines separating battle params from contest params in gMovesInfo

* Renamed MovesInfo to MoveInfo

* Added Cancer Fairy's HANDLE_EXPANDED_MOVE_NAME macro
Used to handle moves with expanded names in a more comfortable manner.
Also fixed Trick-or-Treat's expanded name.

* Renamed GetBattleMoveName to GetMoveName

* Added a comment pointing out that the shared move descriptions are shared move descriptions

* Re-aligned one of the escape characters of CHECK_MOVE_FLAG

* Renamed the battle_moves.h file to moves_info.h instead for consistency's sake

* Applied Eduardo's adjustments

* Using compound string for regular move names as well, saving 1180 bytes and making their use consistent
* Move description formatting

* Updated Pursuit test after merge

* Renamed the BATTLE_CATEGORY constants to DAMAGE_CATEGORY

---------

Co-authored-by: Nephrite <thechurchofcage@gmail.com>
Co-authored-by: Bassoonian <iasperbassoonian@gmail.com>
Co-authored-by: Eduardo Quezada D'Ottone <eduardo602002@gmail.com>
2024-01-29 08:51:32 -03:00
..
absorb.c Move data unification (#3999) 2024-01-29 08:51:32 -03:00
accuracy_down.c Move data unification (#3999) 2024-01-29 08:51:32 -03:00
after_you.c Move data unification (#3999) 2024-01-29 08:51:32 -03:00
ally_switch.c Move data unification (#3999) 2024-01-29 08:51:32 -03:00
assist.c Move data unification (#3999) 2024-01-29 08:51:32 -03:00
attack_down.c Move data unification (#3999) 2024-01-29 08:51:32 -03:00
attack_up.c Move data unification (#3999) 2024-01-29 08:51:32 -03:00
attack_up_user_ally.c Move data unification (#3999) 2024-01-29 08:51:32 -03:00
aura_wheel.c Move data unification (#3999) 2024-01-29 08:51:32 -03:00
aurora_veil.c Move data unification (#3999) 2024-01-29 08:51:32 -03:00
axe_kick.c Move data unification (#3999) 2024-01-29 08:51:32 -03:00
barb_barrage.c Move data unification (#3999) 2024-01-29 08:51:32 -03:00
beak_blast.c Move data unification (#3999) 2024-01-29 08:51:32 -03:00
belly_drum.c Move data unification (#3999) 2024-01-29 08:51:32 -03:00
bide.c Move data unification (#3999) 2024-01-29 08:51:32 -03:00
brick_break.c Move data unification (#3999) 2024-01-29 08:51:32 -03:00
bug_bite.c Move data unification (#3999) 2024-01-29 08:51:32 -03:00
burn_hit.c Move data unification (#3999) 2024-01-29 08:51:32 -03:00
burn_up.c Move data unification (#3999) 2024-01-29 08:51:32 -03:00
chilly_reception.c Move data unification (#3999) 2024-01-29 08:51:32 -03:00
clanging_scales.c Renamed healBlockBanned to healingMove (#3981) 2024-01-12 18:41:45 +01:00
collision_course.c Move data unification (#3999) 2024-01-29 08:51:32 -03:00
confusion_hit.c Merge branch 'upcoming' into secondary_effects_overhaul 2024-01-01 20:40:11 +09:00
corrosive_gas.c Move data unification (#3999) 2024-01-29 08:51:32 -03:00
court_change.c Move data unification (#3999) 2024-01-29 08:51:32 -03:00
defense_down.c Move data unification (#3999) 2024-01-29 08:51:32 -03:00
defense_up.c Move data unification (#3999) 2024-01-29 08:51:32 -03:00
defog.c Move data unification (#3999) 2024-01-29 08:51:32 -03:00
dire_claw.c Tweaked helper functions 2023-12-30 17:42:53 +09:00
doodle.c Move data unification (#3999) 2024-01-29 08:51:32 -03:00
double_shock.c Move data unification (#3999) 2024-01-29 08:51:32 -03:00
dream_eater.c Move data unification (#3999) 2024-01-29 08:51:32 -03:00
embargo.c Move data unification (#3999) 2024-01-29 08:51:32 -03:00
encore.c Move data unification (#3999) 2024-01-29 08:51:32 -03:00
evasion_up.c Move data unification (#3999) 2024-01-29 08:51:32 -03:00
explosion.c Move data unification (#3999) 2024-01-29 08:51:32 -03:00
fickle_beam.c Move data unification (#3999) 2024-01-29 08:51:32 -03:00
fillet_away.c Move data unification (#3999) 2024-01-29 08:51:32 -03:00
flinch_hit.c Tweaked helper functions 2023-12-30 17:42:53 +09:00
flinch_status.c Tweaked helper functions 2023-12-30 17:42:53 +09:00
fling.c Move data unification (#3999) 2024-01-29 08:51:32 -03:00
focus_punch.c Move data unification (#3999) 2024-01-29 08:51:32 -03:00
freeze_hit.c Move data unification (#3999) 2024-01-29 08:51:32 -03:00
glaive_rush.c Move data unification (#3999) 2024-01-29 08:51:32 -03:00
haze.c Move data unification (#3999) 2024-01-29 08:51:32 -03:00
heal_pulse.c Move data unification (#3999) 2024-01-29 08:51:32 -03:00
healing_wish.c Move data unification (#3999) 2024-01-29 08:51:32 -03:00
hex.c Move data unification (#3999) 2024-01-29 08:51:32 -03:00
hit_escape.c Move data unification (#3999) 2024-01-29 08:51:32 -03:00
hit_set_entry_hazardss.c Tweaked helper functions 2023-12-30 17:42:53 +09:00
hit_set_remove_terrain.c Move data unification (#3999) 2024-01-29 08:51:32 -03:00
hit_switch_target.c Move data unification (#3999) 2024-01-29 08:51:32 -03:00
hurricane.c Move data unification (#3999) 2024-01-29 08:51:32 -03:00
hydro_steam.c Move data unification (#3999) 2024-01-29 08:51:32 -03:00
infernal_parade.c Move data unification (#3999) 2024-01-29 08:51:32 -03:00
ion_deluge.c Move data unification (#3999) 2024-01-29 08:51:32 -03:00
ivy_cudgel.c Move data unification (#3999) 2024-01-29 08:51:32 -03:00
jaw_lock.c Tweaked helper functions 2023-12-30 17:42:53 +09:00
knock_off.c Move data unification (#3999) 2024-01-29 08:51:32 -03:00
last_resort.c Move data unification (#3999) 2024-01-29 08:51:32 -03:00
leech_seed.c Move data unification (#3999) 2024-01-29 08:51:32 -03:00
make_it_rain.c Move data unification (#3999) 2024-01-29 08:51:32 -03:00
max_hp_50_recoil.c Move data unification (#3999) 2024-01-29 08:51:32 -03:00
meteor_beam.c Move data unification (#3999) 2024-01-29 08:51:32 -03:00
metronome.c Move data unification (#3999) 2024-01-29 08:51:32 -03:00
mind_blown.c Move data unification (#3999) 2024-01-29 08:51:32 -03:00
mirror_move.c Move data unification (#3999) 2024-01-29 08:51:32 -03:00
moonlight.c Move data unification (#3999) 2024-01-29 08:51:32 -03:00
morning_sun.c Move data unification (#3999) 2024-01-29 08:51:32 -03:00
multi_hit.c Move data unification (#3999) 2024-01-29 08:51:32 -03:00
octolock.c fixes tests 2023-10-25 10:18:59 +02:00
ohko.c Move data unification (#3999) 2024-01-29 08:51:32 -03:00
paralyze_hit.c Move data unification (#3999) 2024-01-29 08:51:32 -03:00
pay_day.c Fix stat drop in doubles for single target moves (#4003) 2024-01-16 09:25:40 -03:00
photon_geyser.c Move data unification (#3999) 2024-01-29 08:51:32 -03:00
plasma_fists.c Move data unification (#3999) 2024-01-29 08:51:32 -03:00
pledge.c Move data unification (#3999) 2024-01-29 08:51:32 -03:00
poison_hit.c Tweaked helper functions 2023-12-30 17:42:53 +09:00
population_bomb.c Move data unification (#3999) 2024-01-29 08:51:32 -03:00
protect.c Move data unification (#3999) 2024-01-29 08:51:32 -03:00
psychic_noise.c Move data unification (#3999) 2024-01-29 08:51:32 -03:00
pursuit.c Move data unification (#3999) 2024-01-29 08:51:32 -03:00
rage_fist.c Move data unification (#3999) 2024-01-29 08:51:32 -03:00
rampage.c Renamed seteffectwithchance to setadditionaleffects 2023-12-30 20:29:09 +09:00
rapid_spin.c Apply suggestions from code review 2024-01-12 02:13:55 +09:00
recoil.c Move data unification (#3999) 2024-01-29 08:51:32 -03:00
recoil_if_miss.c Move data unification (#3999) 2024-01-29 08:51:32 -03:00
reflect.c Move data unification (#3999) 2024-01-29 08:51:32 -03:00
reflect_type.c Made Reflect Type handle 3rd types (#3303) 2023-10-23 10:08:36 +01:00
relic_song.c Move data unification (#3999) 2024-01-29 08:51:32 -03:00
revival_blessing.c Move data unification (#3999) 2024-01-29 08:51:32 -03:00
roar.c Move data unification (#3999) 2024-01-29 08:51:32 -03:00
roost.c Move data unification (#3999) 2024-01-29 08:51:32 -03:00
salt_cure.c Move data unification (#3999) 2024-01-29 08:51:32 -03:00
shed_tail.c Move data unification (#3999) 2024-01-29 08:51:32 -03:00
shell_trap.c Move data unification (#3999) 2024-01-29 08:51:32 -03:00
sleep.c Move data unification (#3999) 2024-01-29 08:51:32 -03:00
solar_beam.c Move data unification (#3999) 2024-01-29 08:51:32 -03:00
sp_atk_two_down.c Fix stat drop in doubles for single target moves (#4003) 2024-01-16 09:25:40 -03:00
special_attack_down.c Move data unification (#3999) 2024-01-29 08:51:32 -03:00
special_attack_up_3.c Move data unification (#3999) 2024-01-29 08:51:32 -03:00
spikes.c Move data unification (#3999) 2024-01-29 08:51:32 -03:00
spin_out.c Tweaked helper functions 2023-12-30 17:42:53 +09:00
stealth_rock.c Move data unification (#3999) 2024-01-29 08:51:32 -03:00
sticky_web.c Move data unification (#3999) 2024-01-29 08:51:32 -03:00
stockpile.c Move data unification (#3999) 2024-01-29 08:51:32 -03:00
strength_sap.c Move data unification (#3999) 2024-01-29 08:51:32 -03:00
stuff_cheeks.c Move data unification (#3999) 2024-01-29 08:51:32 -03:00
substitute.c Move data unification (#3999) 2024-01-29 08:51:32 -03:00
synthesis.c Move data unification (#3999) 2024-01-29 08:51:32 -03:00
syrup_bomb.c Syrup Bomb / Sticky Syrup addition (#3948) 2024-01-09 13:37:07 +01:00
tailwind.c Move data unification (#3999) 2024-01-29 08:51:32 -03:00
take_heart.c Move data unification (#3999) 2024-01-29 08:51:32 -03:00
teatime.c Move data unification (#3999) 2024-01-29 08:51:32 -03:00
techno_blast.c Move data unification (#3999) 2024-01-29 08:51:32 -03:00
telekinesis.c Move data unification (#3999) 2024-01-29 08:51:32 -03:00
teleport.c Move data unification (#3999) 2024-01-29 08:51:32 -03:00
throat_chop.c Review changes 2024-01-10 00:55:43 +09:00
thunder.c Move data unification (#3999) 2024-01-29 08:51:32 -03:00
torment.c Move data unification (#3999) 2024-01-29 08:51:32 -03:00
toxic.c Move data unification (#3999) 2024-01-29 08:51:32 -03:00
toxic_spikes.c Move data unification (#3999) 2024-01-29 08:51:32 -03:00
tri_attack.c Tweaked helper functions 2023-12-30 17:42:53 +09:00
triple_arrows.c Move data unification (#3999) 2024-01-29 08:51:32 -03:00
triple_kick.c Move data unification (#3999) 2024-01-29 08:51:32 -03:00
venoshock.c Move data unification (#3999) 2024-01-29 08:51:32 -03:00
weather_ball.c Move data unification (#3999) 2024-01-29 08:51:32 -03:00