From 2279617b29338bc463f7dd7dfbafdc3951016ab7 Mon Sep 17 00:00:00 2001 From: thibautbus <310327033+thibautbus@users.noreply.github.com> Date: Wed, 19 Aug 2026 14:31:09 +0200 Subject: [PATCH] Route the mart's price confirmation prompts through their real ROM text ShopMenu.lua's buy/sell price confirmations were plain Lua literals, even though the comment on each line already named the real label (_PokemartTellBuyPriceText, _PokemartTellSellPriceText). This file's own txt(game, key, fallback) helper doesn't support substitution arguments, so it can't be reused as-is; added the module-level romText helper instead, same as every other file in this batch. --- src/ui/ShopMenu.lua | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/ui/ShopMenu.lua b/src/ui/ShopMenu.lua index b185f6ad..23ecc7ad 100644 --- a/src/ui/ShopMenu.lua +++ b/src/ui/ShopMenu.lua @@ -13,6 +13,7 @@ local ListMenu = require("src.ui.ListMenu") local Menu = require("src.ui.Menu") local QuantityBox = require("src.ui.QuantityBox") local Strings = require("src.core.Strings") +local romText = require("src.core.RomText") local ShopMenu = {} @@ -57,7 +58,8 @@ local function buy(game, stock) end local cost = qty * def.price -- _PokemartTellBuyPriceText + yes/no confirm - list.footer = Strings("%s?\nThat will be\n¥%d. OK?", def.name, cost) + list.footer = romText(game.data, "_PokemartTellBuyPriceText", + "%s?\nThat will be\n¥%d. OK?", def.name, cost) game.stack:push(ChoiceBox.new(game, function(yes) if not yes then list.footer = greet @@ -147,7 +149,8 @@ local function sell(game) return end -- _PokemartTellSellPriceText + yes/no confirm - list.footer = Strings("I can pay you\n¥%d for that.", unit * qty) + list.footer = romText(game.data, "_PokemartTellSellPriceText", + "I can pay you\n¥%d for that.", unit * qty) game.stack:push(ChoiceBox.new(game, function(yes) if not yes then list.footer = greet