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

Egg Moves need a refactor #3653

Closed
Bassoonian opened this issue Dec 8, 2023 · 4 comments
Closed

Egg Moves need a refactor #3653

Bassoonian opened this issue Dec 8, 2023 · 4 comments

Comments

@Bassoonian
Copy link
Collaborator

Description

See #3562

Version

upcoming (Edge)

Upcoming Version

No response

Discord contact info

No response

@Bassoonian Bassoonian added bug Bug status: unconfirmed This bug has not been reproduced yet labels Dec 8, 2023
@cfmnephrite
Copy link

How would you do this without adding a prevo field to SpeciesInfo?

@mrgriffin
Copy link
Collaborator

How would you do this without adding a prevo field to SpeciesInfo?

I think we could at least split gEggMoves up into separate arrays, and also write the individual arrays as literals in the species_info header files (similar to evolutions etc etc)?

gEggMoves is absolutely horrifying, a single array that intermingles species IDs (offset by 20000) with move IDs.

@cfmnephrite
Copy link

cfmnephrite commented Dec 21, 2023

How would you do this without adding a prevo field to SpeciesInfo?

I think we could at least split gEggMoves up into separate arrays, and also write the individual arrays as literals in the species_info header files (similar to evolutions etc etc)?

gEggMoves is absolutely horrifying, a single array that intermingles species IDs (offset by 20000) with move IDs.

Sorry, I was half asleep when I wrote that comment and I realise it makes no sense. I took adding egg moves as a compound literal as a given. I was trying to ask if we would also add the prevo field as part of an egg moves reform - for an easy way to retrieve them - or stick to using the old function for calculating prevos by iterating over literally every species. You know, since if we're iterating over a stupidly huge array anyway then we haven't really made that much of a change - except make species_info.h even more unwieldy :P

@Bassoonian Bassoonian added type: reminder and removed bug Bug status: unconfirmed This bug has not been reproduced yet labels Jan 9, 2024
This was referenced May 4, 2024
@AsparagusEduardo
Copy link
Collaborator

#4534

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants