diff options
| author | Idain <luiscarlosholguinperez@outlook.com> | 2021-11-17 03:19:48 -0400 |
|---|---|---|
| committer | Idain <luiscarlosholguinperez@outlook.com> | 2021-11-17 03:19:48 -0400 |
| commit | dc491e2c6831b4febc66937dd4c0a41510921e6e (patch) | |
| tree | 4e91fd4de9129dc6ab860adc63730dc504a8542c | |
| parent | e06363a95e0978193fe585dcd64b6b1074d9bfe6 (diff) | |
Update labels
| -rw-r--r-- | Add-a-new-Mart.md | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/Add-a-new-Mart.md b/Add-a-new-Mart.md index 064c236..88e1727 100644 --- a/Add-a-new-Mart.md +++ b/Add-a-new-Mart.md @@ -186,8 +186,7 @@ Edit [engine/items/mart.asm](../blob/master/engine/items/mart.asm): + call MartTextbox + call BuyMenu + ld hl, Text_ShadyShop_ComeAgain -+ call MartTextbox -+ ret ++ jp MartTextbox ... @@ -321,7 +320,8 @@ This is a simple improvement. Edit [wram.asm](../blob/master/wram.asm): ```diff - NEXTU ; d002 + SECTION UNION "Miscellaneous WRAM 1", WRAMX + ; mart items wMartItem1BCD:: ds 3 wMartItem2BCD:: ds 3 @@ -346,11 +346,11 @@ Edit [wram.asm](../blob/master/wram.asm): ... - UNION ; d0f0 + UNION ; mart data --wCurMart:: ds 16 -+wCurMart:: ds 22 - wCurMartEnd:: + wCurMartCount:: db +-wCurMartItems:: ds 15 ++wCurMartItems:: ds 21 ``` -`wCurMart` stores the inventory from [data/items/marts.asm](../blob/master/data/items/marts.asm), including the count and the ending −1. So with 22 bytes, a Mart can sell 20 items. Then there just has to be enough space to store 20 prices. +`wCurMartItems` stores the inventory from [data/items/marts.asm](../blob/master/data/items/marts.asm), including the count and the ending −1. So with 21 bytes, a Mart can sell 20 items. Then there just has to be enough space to store 20 prices. |
