sovereignx/include/constants
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
..
abilities.h Define new abilities (#3838) 2023-12-28 12:33:29 +01:00
apprentice.h
battle.h Actually remove unused STATUS3_CANT_SCORE_A_CRIT (#4293) 2024-03-20 23:19:18 +01:00
battle_ai.h Adds Powerful status move flag (#4125) 2024-02-18 15:05:08 +01:00
battle_anim.h Generic Starting Battle Status Variable (#4176) 2024-02-14 10:05:37 +01:00
battle_anim_scripts.h
battle_arena.h
battle_dome.h Battle Dome Automation (#3596) 2023-11-24 16:19:32 +01:00
battle_factory.h
battle_frontier.h Customizable FrontierMon Sets (#4313) 2024-03-29 08:47:17 +01:00
battle_frontier_mons.h
battle_frontier_trainers.h
battle_move_effects.h Change freeze dry to allow easier extendebility (#4312) 2024-03-31 19:15:18 +02:00
battle_palace.h Clean up pokemon/ball/dex mentions in comments 2023-12-12 19:02:36 +01:00
battle_partner.h Partner Battle refactor (#3592) 2023-12-20 12:38:28 +01:00
battle_pike.h
battle_pyramid.h
battle_script_commands.h Secondary effects overhaul minor follow-up (#4062) 2024-02-04 23:02:59 +01:00
battle_setup.h
battle_string_ids.h Adds Booster Energy (#4337) 2024-04-05 19:38:50 +02:00
battle_tent.h
battle_tent_mons.h
battle_tent_trainers.h
battle_tower.h
battle_z_move_effects.h Removed some hardcoded move IDs (#3982) 2024-01-12 22:41:46 +01:00
berry.h Refactor growth time and add six stage toggle 2023-12-07 13:22:01 +01:00
cable_club.h
coins.h
contest.h Merge remote-tracking branch 'pret/master' into RHH/pr/upcoming/pret_20230829 2023-08-31 14:28:01 -04:00
cries.h Merge branch '_RHH/master' into _RHH/upcoming 2024-02-19 10:13:13 -03:00
daycare.h Converts a bunch of #if to regular conditions (#4071) 2024-01-26 18:15:45 +01:00
decorations.h
easy_chat.h
event_bg.h
event_object_movement.h Port pokefirered's Vs. Seeker to pokeemerald (#3256) 2023-11-26 18:58:43 +01:00
event_objects.h
expansion.h Non-tagged 2024-03-24 17:52:47 -03:00
field_effects.h Port pokefirered's Vs. Seeker to pokeemerald (#3256) 2023-11-26 18:58:43 +01:00
field_poison.h
field_specials.h Clean up pokemon/ball/dex mentions in comments 2023-12-12 19:02:36 +01:00
field_tasks.h
field_weather.h
flags.h Merge pull request #1904 from GriffinRichards/temp-alias 2023-08-11 15:45:00 -04:00
form_change_types.h Add status form change 2023-12-15 11:17:35 +01:00
frontier_util.h
game_stat.h
global.h Pre-1.8 tweaks (#4275) 2024-03-12 12:21:03 +01:00
heal_locations.h
hold_effects.h Change Ivy Cudgel to be based on Ogerpon form rather than held item (#3865) 2023-12-30 11:40:58 +01:00
item.h Rename gItems and gAbilities to gItemsInfo and gAbilitiesInfo (#4068) 2024-01-26 15:25:52 -03:00
item_effects.h Add Teal Mask item, move, and ability data (#3349) 2023-10-08 15:56:09 -03:00
items.h Converts a bunch of #if to regular conditions (#4071) 2024-01-26 18:15:45 +01:00
layouts.h
lilycove_lady.h
map_groups.h
map_scripts.h
map_types.h
maps.h
mauville_old_man.h
metatile_behaviors.h
metatile_labels.h Remove non-existent tilesets from label comments and alphabetize 2024-01-18 14:31:04 -05:00
moves.h Competitive-formatted parties (#3545) 2024-04-06 15:05:15 -03:00
mystery_gift.h
opponents.h Partner Battle refactor (#3592) 2023-12-20 12:38:28 +01:00
party_menu.h Add support for legendary fusion (#3274) 2023-11-23 22:59:51 +01:00
pokedex.h Add configs for measurement systems and decimal separators (#4183) 2024-02-14 10:17:23 +01:00
pokemon.h Add evolution method for Gimmighoul, EVO_LEVEL_ITEM_COUNT_999 (#4261) 2024-03-17 22:03:40 +01:00
pokemon_debug.h
region_map_sections.h
rgb.h
roulette.h
script_menu.h Merge branch 'upcoming' of https://github.com/rh-hideout/pokeemerald-expansion into berryexpansion 2024-01-05 00:32:21 +01:00
secret_bases.h
slot_machine.h
songs.h
sound.h
species.h Competitive-formatted parties (#3545) 2024-04-06 15:05:15 -03:00
tms_hms.h
trade.h
trainer_hill.h
trainer_types.h
trainers.h Competitive-formatted parties (#3545) 2024-04-06 15:05:15 -03:00
tv.h Clean up pokemon/ball/dex mentions in comments 2023-12-12 19:02:36 +01:00
union_room.h
vars.h
weather.h
wild_encounter.h