2018-06-24 14:09:41 +00:00
|
|
|
InitList:
|
2020-05-10 00:07:01 +00:00
|
|
|
; This entire function is useless.
|
2017-12-16 02:22:26 +00:00
|
|
|
ld a, [wInitListType]
|
|
|
|
|
|
|
|
cp INIT_ENEMYOT_LIST
|
|
|
|
jr nz, .check_party_ot_name
|
2018-01-23 22:39:09 +00:00
|
|
|
ld hl, wOTPartyCount
|
2021-03-17 20:16:02 +00:00
|
|
|
ld de, wOTPartyMonOTs
|
2017-12-16 02:22:26 +00:00
|
|
|
ld a, ENEMY_OT_NAME
|
|
|
|
jr .done
|
|
|
|
|
|
|
|
.check_party_ot_name
|
|
|
|
cp INIT_PLAYEROT_LIST
|
|
|
|
jr nz, .check_mon_name
|
2018-01-23 22:39:09 +00:00
|
|
|
ld hl, wPartyCount
|
2021-03-17 20:16:02 +00:00
|
|
|
ld de, wPartyMonOTs
|
2017-12-16 02:22:26 +00:00
|
|
|
ld a, PARTY_OT_NAME
|
|
|
|
jr .done
|
|
|
|
|
|
|
|
.check_mon_name
|
|
|
|
cp INIT_MON_LIST
|
|
|
|
jr nz, .check_item_name
|
2021-03-08 14:41:55 +00:00
|
|
|
ld hl, wCurMartCount
|
2017-12-16 02:22:26 +00:00
|
|
|
ld de, PokemonNames
|
2018-01-20 17:25:55 +00:00
|
|
|
ld a, MON_NAME
|
2017-12-16 02:22:26 +00:00
|
|
|
jr .done
|
|
|
|
|
|
|
|
.check_item_name
|
|
|
|
cp INIT_BAG_ITEM_LIST
|
|
|
|
jr nz, .check_ob_item_name
|
2018-01-23 22:39:09 +00:00
|
|
|
ld hl, wNumItems
|
2017-12-16 02:22:26 +00:00
|
|
|
ld de, ItemNames
|
|
|
|
ld a, ITEM_NAME
|
|
|
|
jr .done
|
|
|
|
|
|
|
|
.check_ob_item_name
|
2021-03-08 14:41:55 +00:00
|
|
|
ld hl, wCurMartCount
|
2017-12-16 02:22:26 +00:00
|
|
|
ld de, ItemNames
|
|
|
|
ld a, ITEM_NAME
|
|
|
|
.done
|
2020-12-23 21:29:30 +00:00
|
|
|
ld [wNamedObjectType], a
|
2017-12-16 02:22:26 +00:00
|
|
|
ld a, l
|
|
|
|
ld [wListPointer], a
|
|
|
|
ld a, h
|
|
|
|
ld [wListPointer + 1], a
|
|
|
|
ld a, e
|
2020-10-28 17:35:39 +00:00
|
|
|
ld [wUnusedNamesPointer], a
|
2017-12-16 02:22:26 +00:00
|
|
|
ld a, d
|
2020-10-28 17:35:39 +00:00
|
|
|
ld [wUnusedNamesPointer + 1], a
|
2017-12-16 02:22:26 +00:00
|
|
|
ld bc, ItemAttributes
|
|
|
|
ld a, c
|
2020-12-23 21:29:30 +00:00
|
|
|
ld [wItemAttributesPointer], a
|
2017-12-16 02:22:26 +00:00
|
|
|
ld a, b
|
2020-12-23 21:29:30 +00:00
|
|
|
ld [wItemAttributesPointer + 1], a
|
2017-12-16 02:22:26 +00:00
|
|
|
ret
|