Skip to content

Commit 6f826e5

Browse files
committed
Localization Fix
- Fix an error in the vanilla English text
1 parent d3c9833 commit 6f826e5

1 file changed

Lines changed: 14 additions & 3 deletions

File tree

tweaks.cpp

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3332,16 +3332,27 @@ TweakError add_ff_warp_button() {
33323332
}
33333333

33343334
TweakError fix_vanilla_text() {
3335-
//The spanish text for the 99 quiver says that you can hold up to 99 bombs
3336-
RandoSession::CacheEntry& text = g_session.openGameFile("content/Common/Pack/permanent_2d_UsSpanish.pack@SARC@message_msbt.szs@YAZ0@SARC@message.msbt@MSBT");
3337-
text.addAction([](RandoSession* session, FileType* data) -> int {
3335+
// The spanish text for the 99 quiver says that you can hold up to 99 bombs
3336+
RandoSession::CacheEntry& spanish1 = g_session.openGameFile("content/Common/Pack/permanent_2d_UsSpanish.pack@SARC@message_msbt.szs@YAZ0@SARC@message.msbt@MSBT");
3337+
spanish1.addAction([](RandoSession* session, FileType* data) -> int {
33383338
CAST_ENTRY_TO_FILETYPE(msbt, FileTypes::MSBTFile, data)
33393339

33403340
std::u16string& message = msbt.messages_by_label["00277"].text.message;
33413341
message.replace(message.find(u"bombas"), 6, u"flechas", 7);
33423342

33433343
return true;
33443344
});
3345+
3346+
// The English text when you play Song of Passing indoors incorrectly copies the endless night text ("An evil power seems to have blocked the effects of the music you conducted!")
3347+
// In SD (and other HD languages) it has the different (correct) message
3348+
RandoSession::CacheEntry& english2 = g_session.openGameFile("content/Common/Pack/permanent_2d_UsEnglish.pack@SARC@message2_msbt.szs@YAZ0@SARC@message2.msbt@MSBT");
3349+
english2.addAction([](RandoSession* session, FileType* data) -> int {
3350+
CAST_ENTRY_TO_FILETYPE(msbt, FileTypes::MSBTFile, data)
3351+
3352+
msbt.messages_by_label["05290"].text.message = u"The effects of the tune you conducted can\nonly be seen in places where the " TEXT_COLOR_RED u"sun " TEXT_COLOR_DEFAULT u"and\n" TEXT_COLOR_RED u"moon" TEXT_COLOR_DEFAULT u" are visible.\0"s;
3353+
3354+
return true;
3355+
});
33453356

33463357
return TweakError::NONE;
33473358
}

0 commit comments

Comments
 (0)