shithub: pokered

ref: 4b64b146e4d723980d26470d171fb18e63f4a215
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