From 684cd862f136b0c06285271a016ff731e71d3587 Mon Sep 17 00:00:00 2001 From: aMannus Date: Wed, 24 Aug 2022 15:29:45 +0200 Subject: [PATCH] Renamed function --- soh/soh/Enhancements/randomizer/randomizer.cpp | 8 ++++---- soh/soh/Enhancements/randomizer/randomizer.h | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/soh/soh/Enhancements/randomizer/randomizer.cpp b/soh/soh/Enhancements/randomizer/randomizer.cpp index a0d7a42d4..cbfd6eeab 100644 --- a/soh/soh/Enhancements/randomizer/randomizer.cpp +++ b/soh/soh/Enhancements/randomizer/randomizer.cpp @@ -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; std::string replaceWith; switch (language) { @@ -4698,9 +4698,9 @@ std::string Randomizer::InsertRupeeName(std::string message, int language) { CustomMessageEntry Randomizer::GetRupeeMessage(u16 rupeeTextId) { CustomMessageEntry messageEntry = CustomMessageManager::Instance->RetrieveMessage(Randomizer::rupeeMessageTableID, rupeeTextId); - messageEntry.english = Randomizer::InsertRupeeName(messageEntry.english, LANGUAGE_ENG); - messageEntry.german = Randomizer::InsertRupeeName(messageEntry.german, LANGUAGE_GER); - messageEntry.french = Randomizer::InsertRupeeName(messageEntry.french, LANGUAGE_FRA); + messageEntry.english = Randomizer::RandomizeRupeeName(messageEntry.english, LANGUAGE_ENG); + messageEntry.german = Randomizer::RandomizeRupeeName(messageEntry.german, LANGUAGE_GER); + messageEntry.french = Randomizer::RandomizeRupeeName(messageEntry.french, LANGUAGE_FRA); return messageEntry; } diff --git a/soh/soh/Enhancements/randomizer/randomizer.h b/soh/soh/Enhancements/randomizer/randomizer.h index 645c47bc5..978048f65 100644 --- a/soh/soh/Enhancements/randomizer/randomizer.h +++ b/soh/soh/Enhancements/randomizer/randomizer.h @@ -48,7 +48,7 @@ class Randomizer { GetItemID GetRandomizedItemIdFromKnownCheck(RandomizerCheck randomizerCheck, GetItemID ogId); GetItemID GetRandomizedItemId(GetItemID ogId, s16 actorId, s16 actorParams, s16 sceneNum); 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); };