mirror of
https://github.com/thornAvery/jep-hack.git
synced 2026-02-08 00:55:28 +13:00
First Commit
Upload literally everything from the pokecrystal16 expand-move-ID branch
This commit is contained in:
commit
2f8a41f833
4618 changed files with 480386 additions and 0 deletions
46
engine/link/init_list.asm
Normal file
46
engine/link/init_list.asm
Normal file
|
|
@ -0,0 +1,46 @@
|
|||
InitList:
|
||||
; This entire function is useless.
|
||||
ld a, [wInitListType]
|
||||
|
||||
cp INIT_ENEMYOT_LIST
|
||||
jr nz, .check_party_ot_name
|
||||
ld hl, wOTPartyCount
|
||||
ld a, ENEMY_OT_NAME
|
||||
jr .done
|
||||
|
||||
.check_party_ot_name
|
||||
cp INIT_PLAYEROT_LIST
|
||||
jr nz, .check_mon_name
|
||||
ld hl, wPartyCount
|
||||
ld a, PARTY_OT_NAME
|
||||
jr .done
|
||||
|
||||
.check_mon_name
|
||||
cp INIT_MON_LIST
|
||||
jr nz, .check_item_name
|
||||
ld hl, wCurMartCount
|
||||
ld a, MON_NAME
|
||||
jr .done
|
||||
|
||||
.check_item_name
|
||||
cp INIT_BAG_ITEM_LIST
|
||||
jr nz, .check_ob_item_name
|
||||
ld hl, wNumItems
|
||||
ld a, ITEM_NAME
|
||||
jr .done
|
||||
|
||||
.check_ob_item_name
|
||||
ld hl, wCurMartCount
|
||||
ld a, ITEM_NAME
|
||||
.done
|
||||
ld [wNamedObjectType], a
|
||||
ld a, l
|
||||
ld [wListPointer], a
|
||||
ld a, h
|
||||
ld [wListPointer + 1], a
|
||||
ld bc, ItemAttributes
|
||||
ld a, c
|
||||
ld [wItemAttributesPointer], a
|
||||
ld a, b
|
||||
ld [wItemAttributesPointer + 1], a
|
||||
ret
|
||||
Loading…
Add table
Add a link
Reference in a new issue