mirror of
https://github.com/bryanthaboi/gen1recomp.git
synced 2026-08-21 05:00:43 +02:00
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.
This commit is contained in:
@@ -262,7 +262,8 @@ function LinkBattle.new(game, net, opts)
|
|||||||
self.opponentName = theirName
|
self.opponentName = theirName
|
||||||
-- _TrainerWantsToFightText (data/text/text_2.asm:1257): wIsInBattle == 2
|
-- _TrainerWantsToFightText (data/text/text_2.asm:1257): wIsInBattle == 2
|
||||||
-- takes PrintBeginningBattleText's .trainerBattle arm, link included
|
-- 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.remoteHashes = {}
|
||||||
self.localHashes = {}
|
self.localHashes = {}
|
||||||
self.remoteParts = {}
|
self.remoteParts = {}
|
||||||
|
|||||||
Reference in New Issue
Block a user