-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
Missing wild encounter constant usage in Match Call #1634
Comments
(somewhat related): Also, the constants from #define FISH_WILD_COUNT_OLD_ROD 2
#define FISH_WILD_COUNT_GOOD_ROD 3
#define FISH_WILD_COUNT_SUPER_ROD 5 |
They were defined in a |
um no, obviously we wouldn't have to do that.
well yeah that's the point. make the template generate a .c file, drop the
nah that's not necessary either. |
Currently constants for the distribution of wild Pokémon are generated from data in wild_encounters.json and written by the inja template to wild_encounters.h. Because this file contains data it can't be included elsewhere, and the constants can only be used in
wild_encounter.c
.The constants should instead be defined in a separate file that can be included repeatedly so that they can be used in other places the values are referenced (in match call, specifically). If a user changes the encounter chances without the constants there then the distribution of wild Pokémon mentioned in match calls can skew, or it could read out of bounds of the encounter table.
The text was updated successfully, but these errors were encountered: