mirror of
https://github.com/HarbourMasters/Shipwright.git
synced 2025-08-14 02:27:21 -07:00
tts: replace rupee count with key count in dungeons (except first 3 child dungeons)
This commit is contained in:
parent
db58c3a029
commit
7bf21064f2
4 changed files with 13 additions and 3 deletions
|
@ -2,6 +2,7 @@
|
|||
"health": "Health - $0 Hearts",
|
||||
"magic": "Magic - $0",
|
||||
"rupees": "Rupees - $0",
|
||||
"keys": "Keys - $0",
|
||||
"floor": "Floor $0",
|
||||
"basement": "Basement $0",
|
||||
"item_menu": "Select Item",
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
"health": "Vie - $0 Coeurs",
|
||||
"magic": "Magie - $0",
|
||||
"rupees": "Rubis - $0",
|
||||
"keys": "Clés - $0",
|
||||
"floor": "Étage $0",
|
||||
"basement": "Sous-sol $0",
|
||||
"item_menu": "Inventaire",
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
"health": "Energie - $0 Herzen",
|
||||
"magic": "Magie - $0",
|
||||
"rupees": "Rubine - $0",
|
||||
"keys": "Schlüssel - $0",
|
||||
"floor": "Etage $0",
|
||||
"basement": "Keller $0",
|
||||
"item_menu": "Gegenstände",
|
||||
|
|
|
@ -370,9 +370,16 @@ void RegisterOnKaleidoscopeUpdateHook() {
|
|||
auto translation = GetParameritizedText("magic", TEXT_BANK_KALEIDO, arg);
|
||||
SpeechSynthesizer::Instance->Speak(translation.c_str(), GetLanguageCode());
|
||||
} else if (CHECK_BTN_ALL(input->press.button, BTN_DDOWN)) {
|
||||
snprintf(arg, sizeof(arg), "%d", gSaveContext.rupees);
|
||||
auto translation = GetParameritizedText("rupees", TEXT_BANK_KALEIDO, arg);
|
||||
SpeechSynthesizer::Instance->Speak(translation.c_str(), GetLanguageCode());
|
||||
if (gPlayState->sceneNum >= SCENE_FOREST_TEMPLE && gPlayState->sceneNum <= SCENE_INSIDE_GANONS_CASTLE) {
|
||||
snprintf(arg, sizeof(arg), "%d",
|
||||
std::max(gSaveContext.inventory.dungeonKeys[gPlayState->sceneNum], (s8)0));
|
||||
auto translation = GetParameritizedText("keys", TEXT_BANK_KALEIDO, arg);
|
||||
SpeechSynthesizer::Instance->Speak(translation.c_str(), GetLanguageCode());
|
||||
} else {
|
||||
snprintf(arg, sizeof(arg), "%d", gSaveContext.rupees);
|
||||
auto translation = GetParameritizedText("rupees", TEXT_BANK_KALEIDO, arg);
|
||||
SpeechSynthesizer::Instance->Speak(translation.c_str(), GetLanguageCode());
|
||||
}
|
||||
} else if (CHECK_BTN_ALL(input->press.button, BTN_DRIGHT)) {
|
||||
// TODO: announce timer?
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue