mirror of
https://github.com/HarbourMasters/Shipwright.git
synced 2025-08-20 13:23:45 -07:00
forgot german questItem and function adaptation for these
This commit is contained in:
parent
998f1f8e51
commit
0d027e2928
1 changed files with 25 additions and 1 deletions
|
@ -618,6 +618,15 @@ std::vector<std::string> questItemNamesFra = {
|
||||||
"Saphir Zora", "Pierre de Souffrance", "Carte Gerudo", "Symbole de Skulltula d'Or",
|
"Saphir Zora", "Pierre de Souffrance", "Carte Gerudo", "Symbole de Skulltula d'Or",
|
||||||
};
|
};
|
||||||
|
|
||||||
|
std::vector<std::string> questItemNamesGer = {
|
||||||
|
"Amulett des Waldes", "Amulett des Feuers", "Amulett des Wassers", "Amulett der Geister",
|
||||||
|
"Amulett der Schatten", "Amulett des Lichts", "Menuett des Waldes", "Bolero des Feuers",
|
||||||
|
"Serenade des Wassers", "Requiem der Geister", "Nocturne der Schatten", "Präludium des Lichts",
|
||||||
|
"Zeldas Wiegenlied", "Eponas Lied", "Sarias Lied", "Sonnenlied",
|
||||||
|
"Hymne der Zeit", "Sturm-Lied", "Kokiri-Smaragd", "Goronen-Rubin",
|
||||||
|
"Zora-Saphir", "Stein des Wissens", "Gerudo-Pass", "Goldene Skulltula-Marke",
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
std::array<std::string, RA_MAX> rcareaPrefixes = {
|
std::array<std::string, RA_MAX> rcareaPrefixes = {
|
||||||
"KF",
|
"KF",
|
||||||
|
@ -685,17 +694,32 @@ const std::string& SohUtils::GetItemName(int32_t item) {
|
||||||
assert(false);
|
assert(false);
|
||||||
return "";
|
return "";
|
||||||
}
|
}
|
||||||
|
|
||||||
return (*currentItemNames)[item];
|
return (*currentItemNames)[item];
|
||||||
}
|
}
|
||||||
|
|
||||||
const std::string& SohUtils::GetQuestItemName(int32_t item) {
|
const std::string& SohUtils::GetQuestItemName(int32_t item) {
|
||||||
|
const std::vector<std::string>* currentQuestItemNames = nullptr;
|
||||||
|
|
||||||
|
switch (gSaveContext.language) {
|
||||||
|
case LANGUAGE_FRA:
|
||||||
|
currentQuestItemNames = &questItemNamesFra;
|
||||||
|
break;
|
||||||
|
case LANGUAGE_GER:
|
||||||
|
currentQuestItemNames = &questItemNamesGer;
|
||||||
|
break;
|
||||||
|
case LANGUAGE_ENG:
|
||||||
|
default:
|
||||||
|
currentQuestItemNames = &questItemNamesEng;
|
||||||
|
break;
|
||||||
|
}
|
||||||
if (item > questItemNamesEng.size()) {
|
if (item > questItemNamesEng.size()) {
|
||||||
SPDLOG_WARN("Passed invalid quest item id to SohUtils::GetQuestItemName: ({})", item);
|
SPDLOG_WARN("Passed invalid quest item id to SohUtils::GetQuestItemName: ({})", item);
|
||||||
assert(false);
|
assert(false);
|
||||||
return "";
|
return "";
|
||||||
}
|
}
|
||||||
|
|
||||||
return questItemNamesEng[item];
|
return (*currentQuestItemNames)[item];
|
||||||
}
|
}
|
||||||
|
|
||||||
const std::string& SohUtils::GetRandomizerCheckAreaPrefix(int32_t rcarea) {
|
const std::string& SohUtils::GetRandomizerCheckAreaPrefix(int32_t rcarea) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue