dump item attributes

This commit is contained in:
yenatch 2013-04-30 02:01:54 -04:00
parent 6b960f3e15
commit 45343b07c7
3 changed files with 2064 additions and 6 deletions

View File

@ -10943,13 +10943,13 @@ GetItem: ; 37dd0
ret z ret z
push hl push hl
ld hl, $67c3 ; Items ld hl, ItemAttributes + 2
dec a dec a
ld c, a ld c, a
ld b, 0 ld b, 0
ld a, 7 ld a, Item2Attributes - Item1Attributes
call AddNTimes call AddNTimes
ld a, $1 ; BANK(Items) ld a, BANK(ItemAttributes)
call GetFarHalfword call GetFarHalfword
ld b, l ld b, l
ld c, h ld c, h

2053
items/item_attributes.asm Normal file

File diff suppressed because it is too large Load Diff

View File

@ -4533,7 +4533,12 @@ _Divide: ; 673e
; 67c1 ; 67c1
INCBIN "baserom.gbc", $67c1, $6eef - $67c1 ItemAttributes: ; 67c1
INCLUDE "items/item_attributes.asm"
; 6ec1
INCBIN "baserom.gbc", $6ec1, $6eef - $6ec1
DrawGraphic: ; 6eef DrawGraphic: ; 6eef
@ -5539,7 +5544,7 @@ GetItemAttr: ; d460
push hl push hl
push bc push bc
ld hl, $67c1 ; Items ld hl, ItemAttributes
ld c, a ld c, a
ld b, 0 ld b, 0
add hl, bc add hl, bc
@ -5552,7 +5557,7 @@ GetItemAttr: ; d460
ld c, a ld c, a
ld a, 7 ld a, 7
call AddNTimes call AddNTimes
ld a, $1 ; BANK(Items) ld a, BANK(ItemAttributes)
call GetFarByte call GetFarByte
pop bc pop bc