Commit Graph

26 Commits

Author SHA1 Message Date
Rachel
1b03304755 Address PR feedback:
- `resultVar` -> `destVarID`
- Clean up member names for `HiddenLocation` and `DistributionEvent`
- `Set/Clear` -> `Enable/Disable` for HiddenLocation script macros
- `ScrCmd_SetOrClearHiddenLocation` -> `ScrCmd_SetHiddenLocation`
- `SYSTEM_VARS_BLOCK_SIZE` -> `NUM_SYSTEM_VARS`
- Identify `scripts_unk_0412` -> `scripts_init_new_game`
- Add `SCRIPT_ID_OFFSET_INIT_NEW_GAME` constant definition
- Add `SCRIPT_ID` functional macro
- Use `SCRIPT_ID(INIT_NEW_GAME, 0)` in `FieldSystem_InitNewGameState`
- Promote `LCRNG_MULTIPLIER` in `math.c` from private to public
- Use private `LCRNG_INCREMENT` in `system_vars.c` for lottery sync
2025-02-16 12:26:47 -08:00
Rachel
5168755542 Document script commands that use system variables 2025-02-16 12:24:32 -08:00
Rachel
decc172f34
Merge pull request #377 from Viperio19/document-scripts
Some checks are pending
build / build (push) Waiting to run
Document `scripts_pokemon_center_daily_trainers.s`
2025-02-15 18:20:01 -08:00
Viperio19
b44ad88210 Improve names and move flag constants to vars_flags.h 2025-02-14 11:56:28 +01:00
Viperio19
e8e190034d Rename "reporters" to "reporter" 2025-02-13 23:30:04 +01:00
Viperio19
eef5a361b2 Finish documentation for scripts_pokemon_center_daily_trainers.s 2025-02-13 23:19:39 +01:00
Rachel
3d96bfb561
Merge pull request #373 from cbt6/npc-trade
Document npc_trade.c
2025-02-13 08:49:12 -08:00
cbt6
809b571fa8 Address review feedback 2025-02-13 16:03:24 +08:00
cbt6
f60f44f3cf Document npc_trade.c 2025-02-13 12:16:23 +08:00
Viperio19
be219b0a6c document script for weekday-based trainers in the pokemon center (name mapID / weekday script commands + use map_header / trainer constants) 2025-02-12 20:35:53 +01:00
Viperio19
57328992ed Move enums with system flags from vars_flags.h to generated files 2025-02-12 17:35:56 +01:00
Gudf
af119390f5 Address review 2025-02-10 20:31:19 +01:00
Rachel
f6d8ad29a5
Merge pull request #356 from h2o-DS/Pokedex_Menu_Text
Some checks are pending
build / build (push) Waiting to run
Generate Foreign Dex Entries
2025-02-03 00:26:16 -08:00
h2o-DS
fb1f061a1c Language Codes
Changed languages to ISO-639 codes
Gave forms pokedex data fields
moved name to pokedex data
pokedex_text_banks -> species_text_banks
2025-02-02 21:32:17 -05:00
h2o-DS
ac56f124e1 Foreign_Dex
Added foreign languages to res/pokemon/<species>/data/json pokedex_data
Removed prebuilt pokedex gmm files
Renamed message banks 698-723
2025-02-01 16:49:28 -05:00
Rachel
7e5f0e62b8 Port trainer data archive packing to C++ 2025-01-31 19:42:24 -08:00
Rachel
ef666503f9 Remove trdata.naix generation, generate TRAINER constants separately 2025-01-30 20:42:15 -08:00
Rachel
7c99b08629 Refactor dependency chain on pokedex data NARCs and text banks
- All affected targets no longer take a list of source files as input
and instead derive source-files from the SPECIES environment variable.
- Text banks no longer depend on auto-generated constants, which means
that changing a constant does not implicitly soil the text bank archive.
2025-01-29 23:06:05 -08:00
Rachel
2e4e858081 Migrate remaining generated constants to metang 2025-01-29 22:43:45 -08:00
Rachel
ab09fd604e Use a static ordering for text archives + refactor terminology + unify includes 2025-01-27 20:53:13 -08:00
Rachel
26db7b2f7e Migrate constants used by battle and AI scripting to metang 2025-01-27 20:46:35 -08:00
Rachel
3dc9f864be Migrate shared constants used by scrcmd.inc to metang 2025-01-27 20:46:35 -08:00
Rachel
e71ea7f133 Switch metang to python implementation as temp-fix for native Windows builds 2025-01-23 22:20:34 -08:00
Rachel
2c410b8046 Replace python scripts for packing species archives with C++
This new code is responsible for packing the following archives:

- `pl_personal` -> basic information for each species: stats, types, etc.
- `evo` -> evolution lines for each species
- `wotbl` -> by-level learnsets for each species
- `ppark` -> catching show data for each species
- `height` -> y-offsets for front and back sprites for each species
- `pl_poke_data` -> sprite-rendering data for each species: animation
  ID, frame data, shadow size and offsets, etc.

Additionally, the following headers are generated:

- `res/pokemon/tutorable_moves.h` -> A listing of moves taught by each
  tutor and how much each move costs to be tutored
- `res/pokemon/species_learnsets_by_tutor.h` -> An array of bitmasks for
  each species designating which moves can be tutored to that species
2025-01-21 22:46:39 -08:00
Rachel
c0f35c0910 Migrate evolution methods to metang 2025-01-21 22:46:39 -08:00
Rachel
92cd212dea Integrate metang as a subproject + migrate species data constants 2025-01-21 22:46:38 -08:00