mirror of
https://github.com/HarbourMasters/Shipwright.git
synced 2024-12-23 16:48:52 -05:00
Pulls altar text from CustomMessageTable instead of gSaveContext.
This commit is contained in:
parent
780e9f4669
commit
661946b4f5
@ -1473,10 +1473,9 @@ extern "C" int CopyScrubMessage(u16 scrubTextId, char* buffer, const int maxBuff
|
|||||||
return CopyStringToCharBuffer(scrubText, buffer, maxBufferSize);
|
return CopyStringToCharBuffer(scrubText, buffer, maxBufferSize);
|
||||||
}
|
}
|
||||||
|
|
||||||
extern "C" int Randomizer_CopyAltarMessage(char* buffer, const int maxBufferSize) {
|
extern "C" CustomMessageEntry Randomizer_CopyAltarMessage() {
|
||||||
const std::string& altarText = (LINK_IS_ADULT) ? OTRGlobals::Instance->gRandomizer->GetAdultAltarText()
|
return (LINK_IS_ADULT) ? CustomMessage::Instance->RetrieveMessage(Randomizer::hintMessageTableID, 0x7088)
|
||||||
: OTRGlobals::Instance->gRandomizer->GetChildAltarText();
|
: CustomMessage::Instance->RetrieveMessage(Randomizer::hintMessageTableID, 0x7040);
|
||||||
return CopyStringToCharBuffer(altarText, buffer, maxBufferSize);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
extern "C" int Randomizer_CopyGanonText(char* buffer, const int maxBufferSize) {
|
extern "C" int Randomizer_CopyGanonText(char* buffer, const int maxBufferSize) {
|
||||||
@ -1520,8 +1519,7 @@ extern "C" int CustomMessage_RetrieveIfExists(GlobalContext* globalCtx) {
|
|||||||
if (textId == 0xF8) {
|
if (textId == 0xF8) {
|
||||||
messageEntry =
|
messageEntry =
|
||||||
Randomizer_GetCustomGetItemMessage((GetItemID)GET_PLAYER(globalCtx)->getItemId, buffer, maxBufferSize);
|
Randomizer_GetCustomGetItemMessage((GetItemID)GET_PLAYER(globalCtx)->getItemId, buffer, maxBufferSize);
|
||||||
}
|
} else if (textId == 0x2053 && Randomizer_GetSettingValue(RSK_GOSSIP_STONE_HINTS) != 0 &&
|
||||||
if (textId == 0x2053 && Randomizer_GetSettingValue(RSK_GOSSIP_STONE_HINTS) != 0 &&
|
|
||||||
(Randomizer_GetSettingValue(RSK_GOSSIP_STONE_HINTS) == 1 ||
|
(Randomizer_GetSettingValue(RSK_GOSSIP_STONE_HINTS) == 1 ||
|
||||||
(Randomizer_GetSettingValue(RSK_GOSSIP_STONE_HINTS) == 2 &&
|
(Randomizer_GetSettingValue(RSK_GOSSIP_STONE_HINTS) == 2 &&
|
||||||
Player_GetMask(globalCtx) == PLAYER_MASK_TRUTH) ||
|
Player_GetMask(globalCtx) == PLAYER_MASK_TRUTH) ||
|
||||||
@ -1549,6 +1547,9 @@ extern "C" int CustomMessage_RetrieveIfExists(GlobalContext* globalCtx) {
|
|||||||
Randomizer_GetCheckFromActor(globalCtx->sceneNum, msgCtx->talkActor->id, actorParams);
|
Randomizer_GetCheckFromActor(globalCtx->sceneNum, msgCtx->talkActor->id, actorParams);
|
||||||
|
|
||||||
messageEntry = Randomizer_CopyHintFromCheck(hintCheck);
|
messageEntry = Randomizer_CopyHintFromCheck(hintCheck);
|
||||||
|
} else if (textId == 0x7040 || textId == 0x7088) {
|
||||||
|
// rando hints at altar
|
||||||
|
messageEntry = Randomizer_CopyAltarMessage();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (textId == 0x00B4 || textId == 0x00B5) {
|
if (textId == 0x00B4 || textId == 0x00B5) {
|
||||||
|
Loading…
Reference in New Issue
Block a user