-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
DoBattleIntro state documentation #5231
DoBattleIntro state documentation #5231
Conversation
Co-authored-by: Alex <93446519+AlexOn1ine@users.noreply.github.com>
Applied change |
correct me if I'm wrong but I think the variable declared on line 3452 can be changed to |
For that, it seems that I need to change |
When you make the change in the Battle Struct could you check the space usage in the struct before and after? Also you could try to change the enum to a u8 and see how that goes. |
If you mean EWRAM usage, no difference:
Weirdly enough, there's a 20-byte increase in ROM when setting the last enum to STATE_PRINT_PLAYER_2_SEND_OUT_TEXT,
- STATE_SET_DEX_AND_BATTLE_VARS,
+ STATE_SET_DEX_AND_BATTLE_VARS = 300, Memory region Used Size Region Size %age Used
EWRAM: 244554 B 256 KB 93.29%
IWRAM: 30436 B 32 KB 92.88%
- ROM: 25696068 B 32 MB 76.58%
+ ROM: 25696088 B 32 MB 76.58% |
(I'll have to wait until I get home to check the actual struct size) |
no I meant |
A few things were missed btw. I'm not sure how to quote particular lines but...
|
Finally was able to check. The change increased the size of the struct from 1144b to 1152b |
hm, then since both changes would lead to either increased rom size or increased BattleStruct size I'm leaning towards it being not important enough to justify the change. |
You're talking about using an enum for |
yes |
could you try limit it to 8 bits. will this prevent to increase the size? so |
I was able to remove the pointer reference alongside the bit limit change and it was kept as 1144b! :D Since the enum will be in |
oh, that's nice. I would rename it |
Done 👍 |
Description
Slight documentation to make it easier to modify intro states.
Also removed unused state.
Issue(s) that this PR fixes
Fixes #4501
People who collaborated with me in this PR
@ShinyDragonHunter
Discord contact info
AsparagusEduardo