fix rando fire temple goron text formatting (#6332)

AutoFormat isn't suitable for text using escape codes, but unlike other texts this collection uses a mix of escape codes & our formatting codes. In such scenarios Format avoids mangling things
This commit is contained in:
Philip Dubé
2026-03-08 04:28:55 +00:00
committed by GitHub
parent 3174545749
commit 99e60b81fd

View File

@@ -86,7 +86,7 @@ void BuildGoronMessage(uint16_t* textId, bool* loadFromMessageTable) {
CustomMessage msg = ShipUtils::RandomElement(FireTempleGoronMessages);
msg.Replace("[[days]]", std::to_string(gSaveContext.totalDays));
msg.Replace("[[a_btn]]", std::to_string(gSaveContext.ship.stats.count[COUNT_BUTTON_PRESSES_A]));
msg.AutoFormat();
msg.Format();
msg.LoadIntoFont();
*loadFromMessageTable = false;
}