From 8f88d01cf22688a4fa9c3cbd60f0b87d962ca585 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 link battle's opening line through its real ROM text LinkBattle.lua's "%s wants\nto fight!" intro was a plain Lua literal, even though the comment right above it already named the real label (_TrainerWantsToFightText). The battle object built at this point is already a BattleState, so this reuses its self:romText convenience method rather than requiring the module-level helper separately. --- src/link/LinkBattle.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/link/LinkBattle.lua b/src/link/LinkBattle.lua index 2d899738..fa27805d 100644 --- a/src/link/LinkBattle.lua +++ b/src/link/LinkBattle.lua @@ -262,7 +262,8 @@ function LinkBattle.new(game, net, opts) self.opponentName = theirName -- _TrainerWantsToFightText (data/text/text_2.asm:1257): wIsInBattle == 2 -- takes PrintBeginningBattleText's .trainerBattle arm, link included - self.introText = Strings("%s wants\nto fight!", theirName) + self.introText = self:romText("_TrainerWantsToFightText", + "%s wants\nto fight!", theirName) self.remoteHashes = {} self.localHashes = {} self.remoteParts = {}