summaryrefslogtreecommitdiff
path: root/scripts/celadonmansion1_2.asm
blob: 0e1c2389b0abeca8fb6753372e50b315f704bbf0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
Func_f1e70:
	ld a, $1
	ld [wDoNotWaitForButtonPressAfterDisplayingText], a
	ld hl, CeladonMansion1Text_f1e96
	call PrintText
	callab IsStarterPikachuInOurParty
	ret nc
	ld hl, CeladonMansionText_f1e9c
	call PrintText
	ld a, $0
	ld [wDoNotWaitForButtonPressAfterDisplayingText], a
	call Func_f1ea2
	call PrintText
	ret

CeladonMansion1Text_f1e96:
	TX_FAR _CeladonMansion1Text2
	TX_WAIT_BUTTON
	db "@"

CeladonMansionText_f1e9c:
	TX_FAR _CeladonMansion1Text6
	TX_BUTTON_SOUND
	db "@"

Func_f1ea2:
	ld hl, PikachuHappinessThresholds_f1eb9
.asm_f1ea5
	ld a, [hli]
	inc hl
	and a
	jr z, .asm_f1eb5
	ld b, a
	ld a, [wPikachuHappiness]
	cp b
	jr c, .asm_f1eb5
	inc hl
	inc hl
	jr .asm_f1ea5

.asm_f1eb5
	ld a, [hli]
	ld h, [hl]
	ld l, a
	ret

PikachuHappinessThresholds_f1eb9
	dw  51,      CeladonMansion1Text_f1ed5
	dw 101,      CeladonMansion1Text_f1eda
	dw 131,      CeladonMansion1Text_f1edf
	dw 161,      CeladonMansion1Text_f1ee4
	dw 201,      CeladonMansion1Text_f1ee9
	dw 255,      CeladonMansion1Text_f1eee
	dbbw 0, $ff, CeladonMansion1Text_f1eee

CeladonMansion1Text_f1ed5:
	TX_FAR _CeladonMansion1Text7
	db "@"

CeladonMansion1Text_f1eda:
	TX_FAR _CeladonMansion1Text8
	db "@"

CeladonMansion1Text_f1edf:
	TX_FAR _CeladonMansion1Text9
	db "@"

CeladonMansion1Text_f1ee4:
	TX_FAR _CeladonMansion1Text10
	db "@"

CeladonMansion1Text_f1ee9:
	TX_FAR _CeladonMansion1Text11
	db "@"

CeladonMansion1Text_f1eee:
	TX_FAR _CeladonMansion1Text12
	db "@"