shithub: pokered

ref: 21ff7695173821ac333039df4ab1c68c227aea0a
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