Skip to content

Commit

Permalink
Replace hardcoded wMonType constants (pret#1011)
Browse files Browse the repository at this point in the history
  • Loading branch information
Idain committed Sep 11, 2023
1 parent 145abdd commit 2af38d9
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion engine/battle/move_effects/attract.asm
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ CheckOppositeGender:
ld [wTempMonDVs], a
ld a, [hl]
ld [wTempMonDVs + 1], a
ld a, 3
ld a, TEMPMON
ld [wMonType], a
farcall GetGender
pop bc
Expand Down
2 changes: 1 addition & 1 deletion engine/events/daycare.asm
Original file line number Diff line number Diff line change
Expand Up @@ -562,7 +562,7 @@ DayCare_InitBreeding:
ld [wTempMonDVs + 1], a
ld a, [wBreedMon1Species]
ld [wCurPartySpecies], a
ld a, $3
ld a, TEMPMON
ld [wMonType], a
ld a, [wBreedMon1Species]
cp DITTO
Expand Down
2 changes: 1 addition & 1 deletion engine/pokemon/bills_pc.asm
Original file line number Diff line number Diff line change
Expand Up @@ -1079,7 +1079,7 @@ PCMonInfo:
hlcoord 1, 12
call PrintLevel

ld a, $3
ld a, TEMPMON
ld [wMonType], a
farcall GetGender
jr c, .skip_gender
Expand Down

0 comments on commit 2af38d9

Please sign in to comment.