Skip to content

Commit

Permalink
Replace hardcoded wMonType constants (#1011)
Browse files Browse the repository at this point in the history
  • Loading branch information
Idain authored and vulcandth committed Sep 29, 2022
1 parent b1aba8a commit c9a8d2f
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 @@ -556,7 +556,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 @@ -1064,7 +1064,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 c9a8d2f

Please sign in to comment.