shithub: pokered

ref: 70eac3a1f7a27d5b71b968708f423dbbff6b146c
dir: /engine/overworld/daycare_exp.asm/

View raw version
IncrementDayCareMonExp:
	ld a, [wDayCareInUse]
	and a
	ret z
	ld hl, wDayCareMonExp + 2
	inc [hl]
	ret nz
	dec hl
	inc [hl]
	ret nz
	dec hl
	inc [hl]
	ld a, [hl]
	cp $50
	ret c
	ld a, $50
	ld [hl], a
	ret