summaryrefslogtreecommitdiff
path: root/engine/items/mart.asm
diff options
context:
space:
mode:
Diffstat (limited to 'engine/items/mart.asm')
-rw-r--r--engine/items/mart.asm236
1 files changed, 102 insertions, 134 deletions
diff --git a/engine/items/mart.asm b/engine/items/mart.asm
index 0209aac23..98bb8324c 100644
--- a/engine/items/mart.asm
+++ b/engine/items/mart.asm
@@ -34,10 +34,10 @@ MartDialog:
HerbShop:
call FarReadMart
call LoadStandardMenuHeader
- ld hl, Text_HerbShop_Intro
+ ld hl, HerbShopLadyIntroText
call MartTextbox
call BuyMenu
- ld hl, Text_HerbShop_ComeAgain
+ ld hl, HerbalLadyComeAgainText
call MartTextbox
ret
@@ -47,7 +47,7 @@ BargainShop:
call LoadMartPointer
call ReadMart
call LoadStandardMenuHeader
- ld hl, Text_BargainShop_Intro
+ ld hl, BargainShopIntroText
call MartTextbox
call BuyMenu
ld hl, wBargainShopFlags
@@ -58,17 +58,17 @@ BargainShop:
set DAILYFLAGS1_GOLDENROD_UNDERGROUND_BARGAIN_F, [hl]
.skip_set
- ld hl, Text_BargainShop_ComeAgain
+ ld hl, BargainShopComeAgainText
call MartTextbox
ret
Pharmacist:
call FarReadMart
call LoadStandardMenuHeader
- ld hl, Text_Pharmacist_Intro
+ ld hl, PharmacyIntroText
call MartTextbox
call BuyMenu
- ld hl, Text_Pharmacist_ComeAgain
+ ld hl, PharmacyComeAgainText
call MartTextbox
ret
@@ -85,10 +85,10 @@ RooftopSale:
call LoadMartPointer
call ReadMart
call LoadStandardMenuHeader
- ld hl, Text_Mart_HowMayIHelpYou
+ ld hl, MartWelcomeText
call MartTextbox
call BuyMenu
- ld hl, Text_Mart_ComeAgain
+ ld hl, MartComeAgainText
call MartTextbox
ret
@@ -161,7 +161,7 @@ StandardMart:
.HowMayIHelpYou:
call LoadStandardMenuHeader
- ld hl, Text_Mart_HowMayIHelpYou
+ ld hl, MartWelcomeText
call PrintText
ld a, STANDARDMART_TOPMENU
ret
@@ -202,14 +202,14 @@ StandardMart:
.Quit:
call ExitMenu
- ld hl, Text_Mart_ComeAgain
+ ld hl, MartComeAgainText
call MartTextbox
ld a, STANDARDMART_EXIT
ret
.AnythingElse:
call LoadStandardMenuHeader
- ld hl, Text_Mart_AnythingElse
+ ld hl, MartAskMoreText
call PrintText
ld a, STANDARDMART_TOPMENU
ret
@@ -395,35 +395,35 @@ GetMartDialogGroup:
dwb .StandardMartPointers, 2
.StandardMartPointers:
- dw Text_Mart_HowMany
- dw Text_Mart_CostsThisMuch
- dw Text_Mart_InsufficientFunds
- dw Text_Mart_BagFull
- dw Text_Mart_HereYouGo
+ dw MartHowManyText
+ dw MartFinalPriceText
+ dw MartNoMoneyText
+ dw MartPackFullText
+ dw MartThanksText
dw BuyMenuLoop
.HerbShopPointers:
- dw Text_HerbShop_HowMany
- dw Text_HerbShop_CostsThisMuch
- dw Text_HerbShop_InsufficientFunds
- dw Text_HerbShop_BagFull
- dw Text_HerbShop_HereYouGo
+ dw HerbalLadyHowManyText
+ dw HerbalLadyFinalPriceText
+ dw HerbalLadyNoMoneyText
+ dw HerbalLadyPackFullText
+ dw HerbalLadyThanksText
dw BuyMenuLoop
.BargainShopPointers:
dw BuyMenuLoop
- dw Text_BargainShop_CostsThisMuch
- dw Text_BargainShop_InsufficientFunds
- dw Text_BargainShop_BagFull
- dw Text_BargainShop_HereYouGo
- dw Text_BargainShop_SoldOut
+ dw BargainShopFinalPriceText
+ dw BargainShopNoFundsText
+ dw BargainShopPackFullText
+ dw BargainShopThanksText
+ dw BargainShopSoldOutText
.PharmacyPointers:
- dw Text_Pharmacy_HowMany
- dw Text_Pharmacy_CostsThisMuch
- dw Text_Pharmacy_InsufficientFunds
- dw Text_Pharmacy_BagFull
- dw Text_Pharmacy_HereYouGo
+ dw PharmacyHowManyText
+ dw PharmacyFinalPriceText
+ dw PharmacyNoMoneyText
+ dw PharmacyPackFullText
+ dw PharmacyThanksText
dw BuyMenuLoop
BuyMenuLoop:
@@ -581,14 +581,12 @@ RooftopSaleAskPurchaseQuantity:
ld d, [hl]
ret
-Text_Mart_HowMany:
- ; How many?
- text_far UnknownText_0x1c4bfd
+MartHowManyText:
+ text_far _MartHowManyText
text_end
-Text_Mart_CostsThisMuch:
- ; @ (S) will be ¥@ .
- text_far UnknownText_0x1c4c08
+MartFinalPriceText:
+ text_far _MartFinalPriceText
text_end
MenuHeader_Buy:
@@ -624,109 +622,88 @@ MenuHeader_Buy:
call PrintBCDNumber
ret
-Text_HerbShop_Intro:
- ; Hello, dear. I sell inexpensive herbal medicine. They're good, but a trifle bitter. Your #MON may not like them. Hehehehe…
- text_far UnknownText_0x1c4c28
+HerbShopLadyIntroText:
+ text_far _HerbShopLadyIntroText
text_end
-Text_HerbShop_HowMany:
- ; How many?
- text_far UnknownText_0x1c4ca3
+HerbalLadyHowManyText:
+ text_far _HerbalLadyHowManyText
text_end
-Text_HerbShop_CostsThisMuch:
- ; @ (S) will be ¥@ .
- text_far UnknownText_0x1c4cae
+HerbalLadyFinalPriceText:
+ text_far _HerbalLadyFinalPriceText
text_end
-Text_HerbShop_HereYouGo:
- ; Thank you, dear. Hehehehe…
- text_far UnknownText_0x1c4cce
+HerbalLadyThanksText:
+ text_far _HerbalLadyThanksText
text_end
-Text_HerbShop_BagFull:
- ; Oh? Your PACK is full, dear.
- text_far UnknownText_0x1c4cea
+HerbalLadyPackFullText:
+ text_far _HerbalLadyPackFullText
text_end
-Text_HerbShop_InsufficientFunds:
- ; Hehehe… You don't have the money.
- text_far UnknownText_0x1c4d08
+HerbalLadyNoMoneyText:
+ text_far _HerbalLadyNoMoneyText
text_end
-Text_HerbShop_ComeAgain:
- ; Come again, dear. Hehehehe…
- text_far UnknownText_0x1c4d2a
+HerbalLadyComeAgainText:
+ text_far _HerbalLadyComeAgainText
text_end
-Text_BargainShop_Intro:
- ; Hiya! Care to see some bargains? I sell rare items that nobody else carries--but only one of each item.
- text_far UnknownText_0x1c4d47
+BargainShopIntroText:
+ text_far _BargainShopIntroText
text_end
-Text_BargainShop_CostsThisMuch:
- ; costs ¥@ . Want it?
- text_far UnknownText_0x1c4db0
+BargainShopFinalPriceText:
+ text_far _BargainShopFinalPriceText
text_end
-Text_BargainShop_HereYouGo:
- ; Thanks.
- text_far UnknownText_0x1c4dcd
+BargainShopThanksText:
+ text_far _BargainShopThanksText
text_end
-Text_BargainShop_BagFull:
- ; Uh-oh, your PACK is chock-full.
- text_far UnknownText_0x1c4dd6
+BargainShopPackFullText:
+ text_far _BargainShopPackFullText
text_end
-Text_BargainShop_SoldOut:
- ; You bought that already. I'm all sold out of it.
- text_far UnknownText_0x1c4df7
+BargainShopSoldOutText:
+ text_far _BargainShopSoldOutText
text_end
-Text_BargainShop_InsufficientFunds:
- ; Uh-oh, you're short on funds.
- text_far UnknownText_0x1c4e28
+BargainShopNoFundsText:
+ text_far _BargainShopNoFundsText
text_end
-Text_BargainShop_ComeAgain:
- ; Come by again sometime.
- text_far UnknownText_0x1c4e46
+BargainShopComeAgainText:
+ text_far _BargainShopComeAgainText
text_end
-Text_Pharmacist_Intro:
- ; What's up? Need some medicine?
- text_far UnknownText_0x1c4e5f
+PharmacyIntroText:
+ text_far _PharmacyIntroText
text_end
-Text_Pharmacy_HowMany:
- ; How many?
- text_far UnknownText_0x1c4e7e
+PharmacyHowManyText:
+ text_far _PharmacyHowManyText
text_end
-Text_Pharmacy_CostsThisMuch:
- ; @ (S) will cost ¥@ .
- text_far UnknownText_0x1c4e89
+PharmacyFinalPriceText:
+ text_far _PharmacyFinalPriceText
text_end
-Text_Pharmacy_HereYouGo:
- ; Thanks much!
- text_far UnknownText_0x1c4eab
+PharmacyThanksText:
+ text_far _PharmacyThanksText
text_end
-Text_Pharmacy_BagFull:
- ; You don't have any more space.
- text_far UnknownText_0x1c4eb9
+PharmacyPackFullText:
+ text_far _PharmacyPackFullText
text_end
-Text_Pharmacy_InsufficientFunds:
- ; Huh? That's not enough money.
- text_far UnknownText_0x1c4ed8
+PharmacyNoMoneyText:
+ text_far _PharmacyNoMoneyText
text_end
-Text_Pharmacist_ComeAgain:
- ; All right. See you around.
- text_far UnknownText_0x1c4ef6
+PharmacyComeAgainText:
+ text_far _PharmacyComeAgainText
text_end
SellMenu:
@@ -752,8 +729,7 @@ SellMenu:
ret
.NothingToSellText:
- ; You don't have anything to sell.
- text_far UnknownText_0x1c4f12
+ text_far _NothingToSellText
text_end
.TryToSellItem:
@@ -780,13 +756,13 @@ SellMenu:
ld a, [wItemAttributeParamBuffer]
and a
jr z, .okay_to_sell
- ld hl, TextMart_CantBuyFromYou
+ ld hl, MartCantBuyText
call PrintText
and a
ret
.okay_to_sell
- ld hl, Text_Mart_SellHowMany
+ ld hl, MartSellHowManyText
call PrintText
farcall PlaceMoneyAtTopLeftOfTextbox
farcall SelectQuantityToSell
@@ -795,7 +771,7 @@ SellMenu:
hlcoord 1, 14
lb bc, 3, 18
call ClearBox
- ld hl, Text_Mart_ICanPayThisMuch
+ ld hl, MartSellPriceText
call PrintTextboxText
call YesNoBox
jr c, .declined
@@ -809,7 +785,7 @@ SellMenu:
hlcoord 1, 14
lb bc, 3, 18
call ClearBox
- ld hl, Text_Mart_SoldForAmount
+ ld hl, MartBoughtText
call PrintTextboxText
call PlayTransactionSound
farcall PlaceMoneyBottomLeft
@@ -820,22 +796,19 @@ SellMenu:
and a
ret
-Text_Mart_SellHowMany:
- ; How many?
- text_far UnknownText_0x1c4f33
+MartSellHowManyText:
+ text_far _MartSellHowManyText
text_end
-Text_Mart_ICanPayThisMuch:
- ; I can pay you ¥@ . Is that OK?
- text_far UnknownText_0x1c4f3e
+MartSellPriceText:
+ text_far _MartSellPriceText
text_end
.UnusedString15f7d:
db "!ダミー!@"
-Text_Mart_HowMayIHelpYou:
- ; Welcome! How may I help you?
- text_far UnknownText_0x1c4f62
+MartWelcomeText:
+ text_far _MartWelcomeText
text_end
MenuHeader_BuySell:
@@ -851,37 +824,32 @@ MenuHeader_BuySell:
db "SELL@"
db "QUIT@"
-Text_Mart_HereYouGo:
- ; Here you are. Thank you!
- text_far UnknownText_0x1c4f80
+MartThanksText:
+ text_far _MartThanksText
text_end
-Text_Mart_InsufficientFunds:
- ; You don't have enough money.
- text_far UnknownText_0x1c4f9a
+MartNoMoneyText:
+ text_far _MartNoMoneyText
text_end
-Text_Mart_BagFull:
- ; You can't carry any more items.
- text_far UnknownText_0x1c4fb7
+MartPackFullText:
+ text_far _MartPackFullText
text_end
-TextMart_CantBuyFromYou:
- ; Sorry, I can't buy that from you.
- text_far UnknownText_0x1c4fd7
+MartCantBuyText:
+ text_far _MartCantBuyText
text_end
-Text_Mart_ComeAgain:
- ; Please come again!
- text_far UnknownText_0x1c4ff9
+MartComeAgainText:
+ text_far _MartComeAgainText
text_end
-Text_Mart_AnythingElse:
- text_far UnknownText_0x1c500d
+MartAskMoreText:
+ text_far _MartAskMoreText
text_end
-Text_Mart_SoldForAmount:
- text_far UnknownText_0x1c502e
+MartBoughtText:
+ text_far _MartBoughtText
text_end
PlayTransactionSound: