%RUPEE% -> #RUPEE#

This commit is contained in:
aMannus 2022-08-23 22:23:01 +02:00
parent 50b3038a13
commit 2283471b7b

View File

@ -4628,16 +4628,16 @@ void CreateRupeeMessages() {
for (u8 rupee : rupees) {
switch (rupee) {
case TEXT_BLUE_RUPEE:
rupeeText = "\x05\x03 5 %RUPEE%\x05\x00";
rupeeText = "\x05\x03 5 #RUPEE#\x05\x00";
break;
case TEXT_RED_RUPEE:
rupeeText = "\x05\x01 20 %RUPEE%\x05\x00";
rupeeText = "\x05\x01 20 #RUPEE#\x05\x00";
break;
case TEXT_PURPLE_RUPEE:
rupeeText = "\x05\x05 50 %RUPEE%\x05\x00";
rupeeText = "\x05\x05 50 #RUPEE#\x05\x00";
break;
case TEXT_HUGE_RUPEE:
rupeeText = "\x05\x06 200 %RUPEE%\x05\x00";
rupeeText = "\x05\x06 200 #RUPEE#\x05\x00";
break;
}
customMessageManager->CreateMessage(Randomizer::rupeeMessageTableID, rupee,
@ -4682,7 +4682,7 @@ std::string Randomizer::InsertRupeeName(std::string message, int language) {
replaceWith = frenchRupeeNames[randomIndex];
break;
}
std::string replaceString = "%RUPEE%";
std::string replaceString = "#RUPEE#";
size_t pos = message.find(replaceString);
size_t len = replaceString.length();
message.replace(pos, len, replaceWith);