Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Species Refactor #2363

Conversation

AsparagusEduardo
Copy link
Collaborator

@AsparagusEduardo AsparagusEduardo commented Sep 27, 2022

Due to the sheer size of this PR, I decided to slowly port features from it into their own individuals PRs (plus the help of other people):

Description

  • Reordered IDs by game release.
  • Tables ordered by base species.
  • Add data:
    • Teachable moves from future generations
    • Species data
  • Removed #if defined SPECIES_ instances.
  • Created new macros for gSpeciesInfo and grouped them all next to the cases used.
  • Pokédex Upgrades
    • Simplify the creation of National and Regional Dexes by having to modify only 2 lists and having them auto-update based what species are disabled.
    • Automatically use 4 digits when the Dex count exceeds 999.
    • Add form dex data (Fixes Alternate forms don't have heights and weights specifict to them. #2738).
    • Change form entry by pressing L or R in the scrolling list menu
    • Tracking caught and seen specific forms.
    • Configs
      • Config to not show form entry info unless they're actually caught.
      • Config to search mon by single letter instead of groups of 3 letters.
      • Config to skip multiple dex entries (like in SV).
      • Config to have an empty entry at the end of the dex list when there's an unseen mon ahead (like in SV)
      • Config to have the regional dex have a N°000 entry like in Gen 5
  • Config for toggling categories of species (Regional Forms, Mega Evolutions, Gigantamax, future gen evolutions)
  • Restore pret mon graphic order
  • Separate cries from species order into their own IDs to simplify adding newer species
  • Remove Unown hack.
  • Reduce space by storing mon pic tables as u32 *const instead of CompressedSpriteSheet
  • Group national dex data (like names and form tables) into their own table.
  • Rename Mega Pokémon voice samples from mega_x.aif to x_mega.aif for consistency.
  • Learnsets
    • Learnsets pointers stored in gSpeciesInfo.
    • Order Egg Moves by alphabetical order.
    • Order Teachable Moves by alphabetical order.
  • Evolution table converted to individual tables to both reduce size and allow for over 10 evolutions (Milcery -> Alcremie)
  • Extended Easy Chat integration (fixes Give support for EASY CHAT #2567)

Discord contact info

AsparagusEduardo#6051

@AsparagusEduardo AsparagusEduardo added category: pokemon Pertains to Pokémon data and functionality type: BREAKING Not to be merged lightly, needs to be reviewed labels Sep 30, 2022
This reverts commit c528200.

# Conflicts:
#	include/pokemon_icon.h
#	src/data/pokemon/species_info.h
#	src/pokemon_icon.c
This reverts commit 33f1df4.

# Conflicts:
#	src/data/pokemon/species_info.h
#	src/data/pokemon_graphics/front_pic_anims.h
This reverts commit f65de53.

# Conflicts:
#	src/data/pokemon/species_info.h
#	src/data/pokemon_graphics/back_pic_coordinates.h
#	src/data/pokemon_graphics/front_pic_coordinates.h
#	src/trade.c
This reverts commit 84e6ee2.

# Conflicts:
#	src/data/pokemon_graphics/enemy_mon_elevation.h
This reverts commit ecd2291.

# Conflicts:
#	src/data/pokemon_graphics/shiny_palette_table.h
This reverts commit bef27c1.

# Conflicts:
#	src/data/pokemon/species_info.h
#	src/data/pokemon_graphics/palette_table.h
This reverts commit 7b9bafa.

# Conflicts:
#	src/data/pokemon/species_info.h
#	src/data/pokemon_graphics/back_pic_table.h
This reverts commit 15aa139.

# Conflicts:
#	src/data/pokemon/species_info.h
#	src/data/pokemon_graphics/front_pic_table.h
…oryMap compatibility"

This reverts commit eb907c8.

# Conflicts:
#	src/data/pokemon/species_info.h
#	src/pokemon_icon.c
# Conflicts:
#	gflib/string_util.c
#	graphics/pokemon/alcremie/lemon_cream/back.png
#	graphics/pokemon/alcremie/lemon_cream/front.png
#	graphics/pokemon/alcremie/matcha_cream/back.png
#	graphics/pokemon/alcremie/matcha_cream/front.png
#	graphics/pokemon/alcremie/mint_cream/back.png
#	graphics/pokemon/alcremie/mint_cream/front.png
#	graphics/pokemon/alcremie/ruby_cream/back.png
#	graphics/pokemon/alcremie/ruby_cream/front.png
#	graphics/pokemon/alcremie/ruby_swirl/back.png
#	graphics/pokemon/alcremie/ruby_swirl/front.png
#	graphics/pokemon/alcremie/salted_cream/back.png
#	graphics/pokemon/alcremie/salted_cream/front.png
#	graphics/pokemon/arcanine/hisuian/back.png
#	graphics/pokemon/arcanine/hisuian/front.png
#	graphics/pokemon/avalugg/hisuian/back.png
#	graphics/pokemon/avalugg/hisuian/front.png
#	graphics/pokemon/basculegion/back.png
#	graphics/pokemon/basculegion/female/back.png
#	graphics/pokemon/basculegion/female/front.png
#	graphics/pokemon/basculegion/front.png
#	graphics/pokemon/enamorus/front.png
#	graphics/pokemon/goodra/hisuian/back.png
#	graphics/pokemon/goodra/hisuian/front.png
#	graphics/pokemon/growlithe/hisuian/back.png
#	graphics/pokemon/growlithe/hisuian/front.png
#	graphics/pokemon/qwilfish/hisuian/back.png
#	graphics/pokemon/qwilfish/hisuian/front.png
#	graphics/pokemon/samurott/hisuian/back.png
#	graphics/pokemon/sliggoo/hisuian/back.png
#	graphics/pokemon/sliggoo/hisuian/front.png
#	graphics/pokemon/sneasel/hisuian/back.png
#	graphics/pokemon/sneasel/hisuian/front.png
#	include/union_room_chat.h
#	src/data/pokemon/evolution.h
#	src/pokemon.c
#	src/union_room_chat.c
#	test/form_change.c
#	test/test_runner_battle.c
@AsparagusEduardo AsparagusEduardo marked this pull request as ready for review August 14, 2023 03:28
@AsparagusEduardo AsparagusEduardo marked this pull request as draft August 14, 2023 03:28
@AsparagusEduardo
Copy link
Collaborator Author

This PR is a mess. Keeping this open for so long has given people the impression that it's in a usable state, when it isn't.

@AsparagusEduardo AsparagusEduardo changed the title [For 2.0][WIP] Species Refactor ™️ Species Refactor Aug 15, 2023
@leo60228 leo60228 mentioned this pull request Aug 22, 2023
8 tasks
This was referenced Jan 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category: pokemon Pertains to Pokémon data and functionality type: BREAKING Not to be merged lightly, needs to be reviewed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Alternate forms don't have heights and weights specifict to them.
4 participants