aboutsummaryrefslogtreecommitdiffstats
path: root/engine/overworld/unused_load_missable_object_data.asm
blob: ce0c00d1071fa250300f63814d7e822f25631b45 (plain) (blame)
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
Func_f0a54: ; unreferenced
	ret

LoadMissableObjectData::
; farcalled by an unreferenced function
	ld hl, .MissableObjectsMaps
.loop
	ld a, [hli]
	cp -1
	ret z
	ld b, a
	ld a, [wCurMap]
	cp b
	jr z, .found
	inc hl
	inc hl
	inc hl
	jr .loop

.found
	ld a, [hli]
	ld c, a
	ld b, 0
	ld a, [hli]
	ld h, [hl]
	ld l, a
	ld de, wMissableObjectList
	call CopyData
	ret

.MissableObjectsMaps:
	dbbw BLUES_HOUSE, .BluesHouseEnd - .BluesHouse, .BluesHouse
	db -1 ; end

.BluesHouse:
	db 1, HS_DAISY_SITTING_COPY
	db 2, HS_DAISY_WALKING_COPY
	db 3, HS_TOWN_MAP_COPY
	db -1 ; end
.BluesHouseEnd: