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

Incorrect reference #411

Closed
SnDream opened this issue Apr 22, 2023 · 0 comments
Closed

Incorrect reference #411

SnDream opened this issue Apr 22, 2023 · 0 comments

Comments

@SnDream
Copy link
Contributor

SnDream commented Apr 22, 2023

ld [wBattleMonStatus], a ; remove the status ailment in the in-battle pokemon data
.calculateHPBarCoords
ld hl, wShadowOAMSprite36
ld bc, 2 * SCREEN_WIDTH
inc d

The code here defines the coordinates of the HPBar, which initially uses negative coordinates since the count starts at 1 (inc d).
However, it is incorrectly interpreted as an OAM-related address. It is not related to OAM.
I recommend changing the ld hl, wShadowOAMSprite36 into the corresponding coordinate address, e.g., hlcoord 4, -1.

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

No branches or pull requests

1 participant