2022-07-14 00:41:04 -04:00
|
|
|
|
#include "randomizer_custom_messages.h"
|
2022-07-14 00:56:47 -04:00
|
|
|
|
#include "randomizer.h"
|
2022-07-13 23:35:45 -04:00
|
|
|
|
#include <variables.h>
|
|
|
|
|
|
|
|
|
|
using namespace std::literals::string_literals;
|
|
|
|
|
|
|
|
|
|
std::string Randomizer::GetCustomGetItemMessage(GetItemID giid) {
|
|
|
|
|
if (!gSaveContext.n64ddFlag) {
|
|
|
|
|
return "Not Randomized.";
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
switch (giid) {
|
2022-07-15 19:48:49 -04:00
|
|
|
|
case GI_BOTTLE_WITH_BLUE_FIRE:
|
|
|
|
|
switch (gSaveContext.language) {
|
|
|
|
|
case LANGUAGE_FRA:
|
|
|
|
|
case LANGUAGE_GER:
|
|
|
|
|
case LANGUAGE_ENG:
|
|
|
|
|
default:
|
|
|
|
|
return ITEM_OBTAINED(ITEM_BLUE_FIRE) + "You got a " + COLOR(QM_RED) + "Bottle with Blue " +
|
|
|
|
|
NEWLINE() + "Fire" + COLOR(QM_WHITE) + "! Use it to melt Red Ice!" +
|
|
|
|
|
MESSAGE_END();
|
|
|
|
|
}
|
2022-07-13 23:35:45 -04:00
|
|
|
|
default:
|
|
|
|
|
switch (gSaveContext.language) {
|
|
|
|
|
case LANGUAGE_FRA:
|
|
|
|
|
return "Il n'y a pas de message personnalis<69> pour cet <20>l<EFBFBD>ment.";
|
|
|
|
|
case LANGUAGE_GER:
|
|
|
|
|
return "F<EFBFBD>r diesen Artikel gibt es keine benutzerdefinierte Nachricht.";
|
|
|
|
|
case LANGUAGE_ENG:
|
|
|
|
|
default:
|
|
|
|
|
return "There is no custom message for this item.";
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
std::string MESSAGE_END() {
|
|
|
|
|
return "\x02"s;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
std::string ITEM_OBTAINED(uint8_t x) {
|
2022-07-14 11:17:43 -04:00
|
|
|
|
return "\x13"s + char(x);
|
2022-07-13 23:35:45 -04:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
std::string NEWLINE() {
|
2022-07-14 00:56:47 -04:00
|
|
|
|
return "\x01"s;
|
2022-07-13 23:35:45 -04:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
std::string COLOR(uint8_t x) {
|
|
|
|
|
return "\x05"s + char(x);
|
2022-07-14 11:17:43 -04:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
std::string WAIT_FOR_INPUT() {
|
|
|
|
|
return "\x04"s;
|
2022-07-13 23:35:45 -04:00
|
|
|
|
}
|