sovereignx/test/battle
Martin Griffin 8bd5ac2e7a
Competitive-formatted parties (#3545)
$ python3 migration_scripts/convert_parties.py src/data/trainers.h src/data/trainer_parties.h src/data/npc_trainers.party
Is available to convert Trainer Control-formatted trainers/parties into
Competitive-formatted ones.

Multiple '#include's can be placed in the trainer section of src/data.c
to support spreading the trainers across multiple .party files.

trainerproc does not interpret the values, leaving that job to the C
compiler, so we use '#line' to associate those errors with the lines in
the .party file(s). Because the columns don't make sense we use
-fno-show-column and -fno-diagostics-show-caret. We might want to move
gTrainers into its own file so that the rest of src/data.c isn't
affected by those flags.

Extensions (misfeatures, imo):
- .party files are passed through cpp, so '#define's are supported, and so
  are '// ...' and '/* ... */' comments.
- .party files also support writing, e.g. 'SPECIES_PIKACHU' instead of
  'Pikachu'. This allows people to write constants explicitly if they
  like.

Pragmas:
- '#pragma trainerproc ivs explicit' requires an explicit 'IVs:' line
  rather than defaulting to 31s.
- '#pragma trainerproc ivs <IVs>' changes the default IVs.
- '#pragma trainerproc level explicit' requires an explicit 'Level:'
  line rather than defaulting to 100.
- '#pragma trainerproc level <level>' changes the default level.

Co-authored-by: Eduardo Quezada <eduardo602002@gmail.com>
Co-authored-by: Alex <93446519+AlexOn1ine@users.noreply.github.com>
2024-04-06 15:05:15 -03:00
..
ability Fix typo in Booster Energy's battle message (#4354) 2024-04-05 20:37:23 +02:00
form_change Renamed "MoveHasMoveEffect" functions 2024-02-26 14:21:38 +09:00
hold_effect Renamed "MoveHasMoveEffect" functions 2024-02-26 14:21:38 +09:00
item_effect Merge branch '_RHH/master' into _RHH/upcoming 2024-02-09 17:02:56 -03:00
move_effect Updated Knock Off (#4333) 2024-04-03 10:13:39 +02:00
move_flags Move data unification (#3999) 2024-01-29 08:51:32 -03:00
status1 Move data unification (#3999) 2024-01-29 08:51:32 -03:00
terrain Move data unification (#3999) 2024-01-29 08:51:32 -03:00
weather Move data unification (#3999) 2024-01-29 08:51:32 -03:00
ai.c Move most damage AI_BadMove checks to AI_CalcDamage (#4238) 2024-03-04 09:54:04 +01:00
ai_calc_best_move_score.c Renamed "MoveHasMoveEffect" functions 2024-02-26 14:21:38 +09:00
ai_check_viability.c Merge remote-tracking branch 'rhh/upcoming' into battlemove_refactored 2024-02-26 14:23:53 +09:00
ai_powerful_status.c Fixed test 2024-02-26 15:12:34 +09:00
ai_trytofaint.c Move data unification (#3999) 2024-01-29 08:51:32 -03:00
crit_chance.c Adds Dragon Cheer (#4122) 2024-02-03 08:00:41 -07:00
damage_formula.c Move data unification (#3999) 2024-01-29 08:51:32 -03:00
exp.c Fix Wall Werrors on modern (#3412) 2023-10-13 18:39:35 +02:00
move.c Apply suggestions from code review 2024-02-26 23:59:15 +09:00
trainer_control.c Competitive-formatted parties (#3545) 2024-04-06 15:05:15 -03:00
trainer_control.h Competitive-formatted parties (#3545) 2024-04-06 15:05:15 -03:00
trainer_control.party Competitive-formatted parties (#3545) 2024-04-06 15:05:15 -03:00