mirror of
https://github.com/HarbourMasters/Shipwright.git
synced 2024-11-22 01:12:19 -05:00
Force the Sarias Song magic hint to replace all other Sarias Song text. (#3296)
This commit is contained in:
parent
e88c8e68b6
commit
02afac704e
@ -3,8 +3,8 @@
|
|||||||
typedef enum {
|
typedef enum {
|
||||||
TEXT_CURSED_SKULLTULA_PEOPLE = 0x22,
|
TEXT_CURSED_SKULLTULA_PEOPLE = 0x22,
|
||||||
TEXT_SARIAS_SONG_FACE_TO_FACE= 0x160,
|
TEXT_SARIAS_SONG_FACE_TO_FACE= 0x160,
|
||||||
TEXT_SARIAS_SONG_FOREST_SOUNDS = 0x161,
|
TEXT_SARIAS_SONG_TEXT_START = 0x160,
|
||||||
TEXT_SARIAS_SONG_FOREST_TEMPLE = 0x16A,
|
TEXT_SARIAS_SONG_TEXT_END = 0x16D,
|
||||||
TEXT_SARIA_SFM = 0x10AD,
|
TEXT_SARIA_SFM = 0x10AD,
|
||||||
TEXT_ITEM_KEY_SMALL = 0x60,
|
TEXT_ITEM_KEY_SMALL = 0x60,
|
||||||
TEXT_ITEM_DUNGEON_MAP = 0x66,
|
TEXT_ITEM_DUNGEON_MAP = 0x66,
|
||||||
|
@ -486,8 +486,8 @@ void Randomizer::LoadHintLocations(const char* spoilerFileName) {
|
|||||||
"Des grenouilles se trouvant&sous l'eau vous fixent attentivement,&tenant fermement&%g{{item}}%w.", TEXTBOX_TYPE_BLUE)
|
"Des grenouilles se trouvant&sous l'eau vous fixent attentivement,&tenant fermement&%g{{item}}%w.", TEXTBOX_TYPE_BLUE)
|
||||||
);
|
);
|
||||||
CustomMessageManager::Instance->CreateMessage(
|
CustomMessageManager::Instance->CreateMessage(
|
||||||
Randomizer::randoMiscHintsTableID, TEXT_SARIAS_SONG_FOREST_SOUNDS,
|
Randomizer::randoMiscHintsTableID, TEXT_SARIAS_SONG_FACE_TO_FACE,
|
||||||
CustomMessage("{{message}}", "{{message}}", "{{message}}", TEXTBOX_TYPE_BLUE)
|
CustomMessage("{{message}}", "{{message}}", "{{message}}", TEXTBOX_TYPE_BLUE) //is this even used?
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
||||||
@ -5342,7 +5342,7 @@ CustomMessage Randomizer::GetSheikMessage(s16 scene, u16 originalTextId) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
CustomMessage Randomizer::GetSariaMessage(u16 originalTextId) {
|
CustomMessage Randomizer::GetSariaMessage(u16 originalTextId) {
|
||||||
if (originalTextId == TEXT_SARIA_SFM || originalTextId == TEXT_SARIAS_SONG_FOREST_SOUNDS || TEXT_SARIAS_SONG_FOREST_TEMPLE) {
|
if (originalTextId == TEXT_SARIA_SFM || (originalTextId >= TEXT_SARIAS_SONG_TEXT_START && originalTextId <= TEXT_SARIAS_SONG_TEXT_END)) {
|
||||||
CustomMessage messageEntry = CustomMessageManager::Instance->RetrieveMessage(Randomizer::hintMessageTableID, TEXT_SARIAS_SONG_FACE_TO_FACE);
|
CustomMessage messageEntry = CustomMessageManager::Instance->RetrieveMessage(Randomizer::hintMessageTableID, TEXT_SARIAS_SONG_FACE_TO_FACE);
|
||||||
CustomMessage messageEntry2 = messageEntry;
|
CustomMessage messageEntry2 = messageEntry;
|
||||||
std::string code = originalTextId == TEXT_SARIA_SFM ? "" : "\x0B";
|
std::string code = originalTextId == TEXT_SARIA_SFM ? "" : "\x0B";
|
||||||
|
@ -2190,8 +2190,7 @@ extern "C" int CustomMessage_RetrieveIfExists(PlayState* play) {
|
|||||||
} else if (Randomizer_GetSettingValue(RSK_FROGS_HINT) && textId == TEXT_FROGS_UNDERWATER) {
|
} else if (Randomizer_GetSettingValue(RSK_FROGS_HINT) && textId == TEXT_FROGS_UNDERWATER) {
|
||||||
messageEntry = OTRGlobals::Instance->gRandomizer->GetFrogsMessage(textId);
|
messageEntry = OTRGlobals::Instance->gRandomizer->GetFrogsMessage(textId);
|
||||||
} else if (Randomizer_GetSettingValue(RSK_SARIA_HINT)) {
|
} else if (Randomizer_GetSettingValue(RSK_SARIA_HINT)) {
|
||||||
if ((gPlayState->sceneNum == SCENE_SACRED_FOREST_MEADOW && textId == TEXT_SARIA_SFM) || textId == TEXT_SARIAS_SONG_FOREST_SOUNDS ||
|
if ((gPlayState->sceneNum == SCENE_SACRED_FOREST_MEADOW && textId == TEXT_SARIA_SFM) || (textId >= TEXT_SARIAS_SONG_TEXT_START && textId <= TEXT_SARIAS_SONG_TEXT_END)) {
|
||||||
textId == TEXT_SARIAS_SONG_FOREST_TEMPLE) {
|
|
||||||
messageEntry = OTRGlobals::Instance->gRandomizer->GetSariaMessage(textId);
|
messageEntry = OTRGlobals::Instance->gRandomizer->GetSariaMessage(textId);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user