diff options
| author | Rangi <remy.oukaour+rangi42@gmail.com> | 2020-07-03 22:11:35 -0400 |
|---|---|---|
| committer | Rangi <remy.oukaour+rangi42@gmail.com> | 2020-07-03 22:22:09 -0400 |
| commit | 6ef36800b0dcb86100a7c716172015667e60dc99 (patch) | |
| tree | 7e381171a7f42cadb6e619c839bfc4d3eb88e7d1 /engine/events/pick_up_item.asm | |
| parent | H_CONSTANTNAMES -> hConstantNames (diff) | |
| download | pokeyellow-6ef36800b0dcb86100a7c716172015667e60dc99.tar.gz pokeyellow-6ef36800b0dcb86100a7c716172015667e60dc99.tar.xz pokeyellow-6ef36800b0dcb86100a7c716172015667e60dc99.zip | |
Replace raw hex values with HRAM constants
To do: turn constants into labels and use ldh
Diffstat (limited to 'engine/events/pick_up_item.asm')
| -rw-r--r-- | engine/events/pick_up_item.asm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engine/events/pick_up_item.asm b/engine/events/pick_up_item.asm index 9f19100a..5a658f22 100644 --- a/engine/events/pick_up_item.asm +++ b/engine/events/pick_up_item.asm @@ -15,7 +15,7 @@ PickUpItem: .isMissable ld a, [hl] - ld [$ffdb], a + ld [hMissableObjectIndex], a ld hl, wMapSpriteExtraData ld a, [hSpriteIndexOrTextID] @@ -30,7 +30,7 @@ PickUpItem: call GiveItem jr nc, .BagFull - ld a, [$ffdb] + ld a, [hMissableObjectIndex] ld [wMissableObjectIndex], a predef HideObject ld a, 1 |
