Renamed function

This commit is contained in:
aMannus 2022-08-24 15:29:45 +02:00
parent e2633c9be1
commit 684cd862f1
2 changed files with 5 additions and 5 deletions

View File

@ -4670,7 +4670,7 @@ void CreateRupeeMessages() {
} }
} }
std::string Randomizer::InsertRupeeName(std::string message, int language) { std::string Randomizer::RandomizeRupeeName(std::string message, int language) {
int randomIndex; int randomIndex;
std::string replaceWith; std::string replaceWith;
switch (language) { switch (language) {
@ -4698,9 +4698,9 @@ std::string Randomizer::InsertRupeeName(std::string message, int language) {
CustomMessageEntry Randomizer::GetRupeeMessage(u16 rupeeTextId) { CustomMessageEntry Randomizer::GetRupeeMessage(u16 rupeeTextId) {
CustomMessageEntry messageEntry = CustomMessageEntry messageEntry =
CustomMessageManager::Instance->RetrieveMessage(Randomizer::rupeeMessageTableID, rupeeTextId); CustomMessageManager::Instance->RetrieveMessage(Randomizer::rupeeMessageTableID, rupeeTextId);
messageEntry.english = Randomizer::InsertRupeeName(messageEntry.english, LANGUAGE_ENG); messageEntry.english = Randomizer::RandomizeRupeeName(messageEntry.english, LANGUAGE_ENG);
messageEntry.german = Randomizer::InsertRupeeName(messageEntry.german, LANGUAGE_GER); messageEntry.german = Randomizer::RandomizeRupeeName(messageEntry.german, LANGUAGE_GER);
messageEntry.french = Randomizer::InsertRupeeName(messageEntry.french, LANGUAGE_FRA); messageEntry.french = Randomizer::RandomizeRupeeName(messageEntry.french, LANGUAGE_FRA);
return messageEntry; return messageEntry;
} }

View File

@ -48,7 +48,7 @@ class Randomizer {
GetItemID GetRandomizedItemIdFromKnownCheck(RandomizerCheck randomizerCheck, GetItemID ogId); GetItemID GetRandomizedItemIdFromKnownCheck(RandomizerCheck randomizerCheck, GetItemID ogId);
GetItemID GetRandomizedItemId(GetItemID ogId, s16 actorId, s16 actorParams, s16 sceneNum); GetItemID GetRandomizedItemId(GetItemID ogId, s16 actorId, s16 actorParams, s16 sceneNum);
static void CreateCustomMessages(); static void CreateCustomMessages();
static std::string InsertRupeeName(std::string message, int language); static std::string RandomizeRupeeName(std::string message, int language);
static CustomMessageEntry GetRupeeMessage(u16 rupeeTextId); static CustomMessageEntry GetRupeeMessage(u16 rupeeTextId);
}; };