Print the Gen 2 battle lines the cart actually writes

Five messages in the Gen 2 battle code are written by hand rather than taken
from data/text/battle.asm, and each has drifted from what the game prints:

  SuperEffectiveText                     lost its hyphen and its line break
  NotVeryEffectiveText                   ended on three periods, not the
                                         ellipsis glyph the charmap carries
  BattleText_TheresNoPPLeftForThisMove   dropped "There's"
  PlayerHitTimesText/EnemyHitTimesText   printed "Hit 3 time(s)!", showing
                                         the parenthetical on screen; Gen 1
                                         already prints "Hit 3 times!" via
                                         _HitXTimesText
  StartPerishText                        printed a sentence no cart prints

The break is \n, which is what RomExtractorGen2 decodes the cart's own $4e
into, so these read as an extracted line would.  Each goes through Strings
now, which is what the rest of this file already does with its messages.

SpikesText is left alone and the reason is written down beside it: its third
row is a `cont`, and engine messages set self.message directly rather than
going through showPages, so printMessage would cut the row carrying <TARGET>.
This commit is contained in:
Colson Rice
2026-08-21 19:37:41 -04:00
parent 087a275189
commit 2c1e411e3c
2 changed files with 29 additions and 8 deletions
+1 -1
View File
@@ -175,7 +175,7 @@ do
dealt = event.amount
end
if event.kind == "message"
and event.text == "It's not very effective..." then
and event.text == "It's not very\neffective" then
sawNve = true
end
end