mirror of https://github.com/pret/pokecrystal.git
dump item attributes
This commit is contained in:
parent
6b960f3e15
commit
45343b07c7
|
@ -10943,13 +10943,13 @@ GetItem: ; 37dd0
|
|||
ret z
|
||||
|
||||
push hl
|
||||
ld hl, $67c3 ; Items
|
||||
ld hl, ItemAttributes + 2
|
||||
dec a
|
||||
ld c, a
|
||||
ld b, 0
|
||||
ld a, 7
|
||||
ld a, Item2Attributes - Item1Attributes
|
||||
call AddNTimes
|
||||
ld a, $1 ; BANK(Items)
|
||||
ld a, BANK(ItemAttributes)
|
||||
call GetFarHalfword
|
||||
ld b, l
|
||||
ld c, h
|
||||
|
|
File diff suppressed because it is too large
Load Diff
11
main.asm
11
main.asm
|
@ -4533,7 +4533,12 @@ _Divide: ; 673e
|
|||
; 67c1
|
||||
|
||||
|
||||
INCBIN "baserom.gbc", $67c1, $6eef - $67c1
|
||||
ItemAttributes: ; 67c1
|
||||
INCLUDE "items/item_attributes.asm"
|
||||
; 6ec1
|
||||
|
||||
|
||||
INCBIN "baserom.gbc", $6ec1, $6eef - $6ec1
|
||||
|
||||
|
||||
DrawGraphic: ; 6eef
|
||||
|
@ -5539,7 +5544,7 @@ GetItemAttr: ; d460
|
|||
push hl
|
||||
push bc
|
||||
|
||||
ld hl, $67c1 ; Items
|
||||
ld hl, ItemAttributes
|
||||
ld c, a
|
||||
ld b, 0
|
||||
add hl, bc
|
||||
|
@ -5552,7 +5557,7 @@ GetItemAttr: ; d460
|
|||
ld c, a
|
||||
ld a, 7
|
||||
call AddNTimes
|
||||
ld a, $1 ; BANK(Items)
|
||||
ld a, BANK(ItemAttributes)
|
||||
call GetFarByte
|
||||
|
||||
pop bc
|
||||
|
|
Loading…
Reference in New Issue