shithub: pokered

ref: 60276d0c5b9234619707518f29e6b85b8719b838
dir: /engine/events/hidden_objects/oaks_lab_posters.asm/

View raw version
DisplayOakLabLeftPoster:
	call EnableAutoTextBoxDrawing
	tx_pre_jump PushStartText

PushStartText::
	text_far _PushStartText
	text_end

DisplayOakLabRightPoster:
	call EnableAutoTextBoxDrawing
	ld hl, wPokedexOwned
	ld b, wPokedexOwnedEnd - wPokedexOwned
	call CountSetBits
	ld a, [wNumSetBits]
	cp 2
	tx_pre_id SaveOptionText
	jr c, .ownLessThanTwo
	; own two or more mon
	tx_pre_id StrengthsAndWeaknessesText
.ownLessThanTwo
	jp PrintPredefTextID

SaveOptionText::
	text_far _SaveOptionText
	text_end

StrengthsAndWeaknessesText::
	text_far _StrengthsAndWeaknessesText
	text_end