sovereignx/test
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
..
battle Competitive-formatted parties (#3545) 2024-04-06 15:05:15 -03:00
dynamax.c Rename EFFECT_FAKE_OUT to EFFECT_FIRST_TURN_ONLY (#4081) 2024-01-31 09:32:58 -03:00
fpmath.c Merge branch 'RHH/master' into RHH/upcoming 2023-08-12 16:31:44 -04:00
pokemon.c Implemented Custom/Complex/Expanded GiveMon scripting command (#3924) 2024-02-08 09:11:13 +01:00
random.c Optional high-quality RNG (#3780) 2023-12-22 17:39:15 +00:00
species.c Backwards-compatible BoxPokémon Refactor (#3438) 2023-12-27 17:48:17 +01:00
sprite.c Merge branch 'RHH/master' into RHH/upcoming 2023-08-12 16:31:44 -04:00
test_runner.c Save-compatible SaveBlock3 (#4112) 2024-02-10 18:14:36 +01:00
test_runner_args.c Test moves, items, and abilities in battle 2023-02-01 13:53:57 +00:00
test_runner_battle.c Adds Tidy Up + minor Dragon Cheer follow up (#4136) 2024-02-18 20:00:36 +01:00