shithub: pokecrystal

Download patch

ref: a9869f18962353b056559dc14dfc00fef0df5978
parent: bceeea8e3b6a829494cd80468c4514ad1b0978bc
author: Idain <[email protected]>
date: Wed Sep 28 16:51:39 EDT 2022

Replace hardcoded wMonType constants (#1011)


--- a/engine/battle/move_effects/attract.asm
+++ b/engine/battle/move_effects/attract.asm
@@ -53,7 +53,7 @@
 	ld [wTempMonDVs], a
 	ld a, [hl]
 	ld [wTempMonDVs + 1], a
-	ld a, 3
+	ld a, TEMPMON
 	ld [wMonType], a
 	farcall GetGender
 	pop bc
--- a/engine/events/daycare.asm
+++ b/engine/events/daycare.asm
@@ -562,7 +562,7 @@
 	ld [wTempMonDVs + 1], a
 	ld a, [wBreedMon1Species]
 	ld [wCurPartySpecies], a
-	ld a, $3
+	ld a, TEMPMON
 	ld [wMonType], a
 	ld a, [wBreedMon1Species]
 	cp DITTO
--- a/engine/pokemon/bills_pc.asm
+++ b/engine/pokemon/bills_pc.asm
@@ -1079,7 +1079,7 @@
 	hlcoord 1, 12
 	call PrintLevel
 
-	ld a, $3
+	ld a, TEMPMON
 	ld [wMonType], a
 	farcall GetGender
 	jr c, .skip_gender