From dc491e2c6831b4febc66937dd4c0a41510921e6e Mon Sep 17 00:00:00 2001 From: Idain Date: Wed, 17 Nov 2021 03:19:48 -0400 Subject: Update labels --- Add-a-new-Mart.md | 16 ++++++++-------- 1 file 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. -- cgit v1.2.3