diff --git a/docs/cheats-and-assists.md b/docs/cheats-and-assists.md index a95eff957..1ee97ecd8 100644 --- a/docs/cheats-and-assists.md +++ b/docs/cheats-and-assists.md @@ -39,6 +39,7 @@ your settings. |---|---| | God mode | Link takes no damage. | | One-hit kill | Enemies go down in one hit. | +| Unlock champion abilities | The four champion abilities are usable anywhere from the start of the game, in shrines and in the Trial of the Sword too; the pause menu cannot switch them off. | | Damage taken | How much damage Link takes: 25% to 400%. 100% is the game's own. | | Damage dealt | How much damage enemies take: 25% to 400%. 100% is the game's own. | | Weapon wear | How fast weapons, bows and shields wear out: Fairy (never), Peter Pan (0.5x), Hylian (1x, the game's own), Hero (1.5x), Master (2x), Legend (2.5x), Dude, are you ok? (3x). | diff --git a/runtime/assists.c b/runtime/assists.c index 4462ab578..4ec1a8614 100644 --- a/runtime/assists.c +++ b/runtime/assists.c @@ -54,3 +54,16 @@ uint32_t rt_stamina(uint32_t oldv, uint32_t newv) { // Infinite arrows: the bow's shot takes its arrows off the pouch through one function, which returns before taking // any (tools/patches.py _remove_arrows). One arrow is still needed to shoot. int rt_infinite_arrows(void) { return g_settings.infinite_arrows; } + +// Champion abilities (tools/patches.py _hero_soul_*): the game's own "can this be used" checks return 0 in shrines, in +// the Trial of the Sword and while the ability recharges. With the option on the check passes, so the ability works +// from the start of the game and in those places; off, the check runs as the game wrote it. +int rt_hero_soul(int which) { + switch (which) { + case 0: return g_settings.hero_soul_wind; + case 1: return g_settings.hero_soul_electric; + case 2: return g_settings.hero_soul_fire; + case 3: return g_settings.hero_soul_water; + } + return 0; +} diff --git a/runtime/control_settings.c b/runtime/control_settings.c index b03cc77d8..7fdd47327 100644 --- a/runtime/control_settings.c +++ b/runtime/control_settings.c @@ -63,7 +63,8 @@ static const Setting settings[] = { I(weapon_wear, WEAPON_WEAR_MIN, WEAPON_WEAR_MAX, NULL), B(infinite_arrows), B(infinite_stamina), B(infinite_rupees), I(item_multiplier, 1, 8, NULL), B(free_sprint), B(sure_footed), I(weather, 0, WEATHER_COUNT - 1, "game|no_rain|no_storms|clear|cloudy|rain|heavy_rain|snow|heavy_snow|thunderstorm|thunder_rain|sun_shower"), - B(god_mode), B(one_hit_kill), I(damage_taken, 25, 400, NULL), I(damage_dealt, 25, 400, NULL), + B(god_mode), B(one_hit_kill), B(hero_soul_wind), B(hero_soul_electric), B(hero_soul_fire), B(hero_soul_water), + I(damage_taken, 25, 400, NULL), I(damage_dealt, 25, 400, NULL), I(text_language, 0, 0, NULL), I(voice_language, 0, 0, NULL), B(save_backups), B(stick_cam_on), I(stick_cam_x, STICK_CAM_MIN, STICK_CAM_MAX, NULL), I(stick_cam_y, STICK_CAM_MIN, STICK_CAM_MAX, NULL), B(toggle_zl), B(toggle_zr), I(menu_text_size, 80, 150, NULL), B(auto_continue), B(menu_tip_seen), diff --git a/runtime/game_sites.h b/runtime/game_sites.h index 41bdd8ff5..eb460c52b 100644 --- a/runtime/game_sites.h +++ b/runtime/game_sites.h @@ -28,6 +28,10 @@ X(frame_loop_interval_ret) /* the frame loop's return address from setting the present interval */ \ X(title_version_format) /* "Ver.%s": the title screen's version line */ \ X(player_info) /* uking::act::PlayerInfo * (test tools) */ \ + X(hero_soul_wind) /* Revali's Gale: the game's "can this be used" check (assists.c rt_hero_soul) */ \ + X(hero_soul_electric) /* Urbosa's Fury: likewise */ \ + X(hero_soul_fire) /* Daruk's Protection: likewise */ \ + X(hero_soul_water) /* Mipha's Grace: likewise */ \ X(world_mgr) /* ksys::world::Manager * (test tools, weather.c)*/ \ X(main_data) /* main's .data (then .bss, up to main_end) */ \ X(main_end) diff --git a/runtime/settings.c b/runtime/settings.c index 3e9efadbf..6cd6479bb 100644 --- a/runtime/settings.c +++ b/runtime/settings.c @@ -641,6 +641,10 @@ void settings_load(void) { else if (!strcmp(key, "colour_vision_strength")) g_settings.colour_vision_strength = atoi(val); // (percent) else if (!strcmp(key, "god_mode")) g_settings.god_mode = atoi(val) != 0; else if (!strcmp(key, "one_hit_kill")) g_settings.one_hit_kill = atoi(val) != 0; + else if (!strcmp(key, "hero_soul_wind")) g_settings.hero_soul_wind = atoi(val) != 0; + else if (!strcmp(key, "hero_soul_electric")) g_settings.hero_soul_electric = atoi(val) != 0; + else if (!strcmp(key, "hero_soul_fire")) g_settings.hero_soul_fire = atoi(val) != 0; + else if (!strcmp(key, "hero_soul_water")) g_settings.hero_soul_water = atoi(val) != 0; else if (!strcmp(key, "damage_taken")) g_settings.damage_taken = atoi(val); // (percent) else if (!strcmp(key, "damage_dealt")) g_settings.damage_dealt = atoi(val); else if (!strcmp(key, "toggle_zl")) g_settings.toggle_zl = atoi(val) != 0; @@ -918,6 +922,10 @@ bool settings_save_to(const char *path) { fprintf(f, "colour_vision_strength = %d\n", g_settings.colour_vision_strength); fprintf(f, "god_mode = %d\n", g_settings.god_mode); fprintf(f, "one_hit_kill = %d\n", g_settings.one_hit_kill); + fprintf(f, "hero_soul_wind = %d\n", g_settings.hero_soul_wind); + fprintf(f, "hero_soul_electric = %d\n", g_settings.hero_soul_electric); + fprintf(f, "hero_soul_fire = %d\n", g_settings.hero_soul_fire); + fprintf(f, "hero_soul_water = %d\n", g_settings.hero_soul_water); fprintf(f, "damage_taken = %d\n", g_settings.damage_taken); fprintf(f, "damage_dealt = %d\n", g_settings.damage_dealt); fprintf(f, "toggle_zl = %d\n", g_settings.toggle_zl ? 1 : 0); diff --git a/runtime/settings.h b/runtime/settings.h index 8ddd3702c..8b75c6653 100644 --- a/runtime/settings.h +++ b/runtime/settings.h @@ -229,6 +229,10 @@ typedef struct { int weather; // WEATHER_COUNT: the game's, rain or thunderstorms kept out, or one weather held (weather.c) bool god_mode; // Link takes no damage bool one_hit_kill; // whatever else takes damage loses all its life at once + bool hero_soul_wind; // Revali's Gale works in shrines and the Trial of the Sword (assists.c rt_hero_soul) + bool hero_soul_electric; // Urbosa's Fury, likewise + bool hero_soul_fire; // Daruk's Protection, likewise + bool hero_soul_water; // Mipha's Grace, likewise int damage_taken; // percent of the damage Link takes (DAMAGE_CHOICES) int damage_dealt; // percent of the damage everything else takes (DAMAGE_CHOICES) bool toggle_zl; // press ZL once in play to hold shield / focus; press again to release (hle/input.c) diff --git a/runtime/ui/i18n/de.inc b/runtime/ui/i18n/de.inc index 9e5386972..94741e950 100644 --- a/runtime/ui/i18n/de.inc +++ b/runtime/ui/i18n/de.inc @@ -1261,3 +1261,10 @@ T("Downloading Intel XeSS", "Intel XeSS wird heruntergeladen") T("Dynamic: renders the 3D scene smaller when frames are slow, sharper when they aren't; stays full size where that gains nothing.", "Dynamisch: rendert die 3D-Szene kleiner, wenn Frames langsam sind, und wieder schärfer, wenn nicht; bleibt in voller Größe, wo das nichts bringt.") T("About mods", "Über Mods") T("Mods are made by other people, not by Savage Wind. We don't check, test or support them, and we aren't responsible for what they do, including if they break the game or your saves. Back up your saves before trying one, and turn mods off before reporting a bug: a report of a bug a mod causes is closed right away. Savage Wind releases never include mods; in the future we may suggest some we've found to play well with Savage Wind.", "Mods stammen von anderen Leuten, nicht von Savage Wind. Wir prüfen, testen und unterstützen sie nicht und sind nicht verantwortlich für das, was sie tun, auch wenn sie das Spiel oder deine Spielstände beschädigen. Sichere deine Spielstände, bevor du einen ausprobierst, und schalte Mods aus, bevor du einen Fehler meldest: Eine Meldung zu einem Fehler, den ein Mod verursacht, wird sofort geschlossen. Savage-Wind-Versionen enthalten nie Mods; künftig empfehlen wir vielleicht einige, die gut mit Savage Wind laufen.") +T("Unlock champion abilities", "Champion-Fähigkeiten freischalten") +T("Revali's Gale", "Revalis Sturm") +T("Urbosa's Fury", "Urbosas Zorn") +T("Daruk's Protection", "Darukas Schutz") +T("Mipha's Grace", "Miphas Gnade") +T("Also usable in shrines and in the Trial of the Sword.", "Auch in Schreinen und in der Prüfung des Schwertes nutzbar.") +T("The four champion abilities stay usable everywhere, from the start of the game. They cannot be switched off in the pause menu.", "Die vier Champion-Fähigkeiten sind überall nutzbar, von Spielbeginn an. Im Pausenmenü lassen sie sich nicht abschalten.") diff --git a/runtime/ui/i18n/es.inc b/runtime/ui/i18n/es.inc index 7cfb7cbb7..a1ed88b19 100644 --- a/runtime/ui/i18n/es.inc +++ b/runtime/ui/i18n/es.inc @@ -1260,3 +1260,10 @@ T("Downloading Intel XeSS", "Descargando Intel XeSS") T("Dynamic: renders the 3D scene smaller when frames are slow, sharper when they aren't; stays full size where that gains nothing.", "Dinámico: renderiza la escena 3D más pequeña cuando los fotogramas van lentos y más nítida cuando no; se queda a tamaño completo donde eso no gana nada.") T("About mods", "Sobre los mods") T("Mods are made by other people, not by Savage Wind. We don't check, test or support them, and we aren't responsible for what they do, including if they break the game or your saves. Back up your saves before trying one, and turn mods off before reporting a bug: a report of a bug a mod causes is closed right away. Savage Wind releases never include mods; in the future we may suggest some we've found to play well with Savage Wind.", "Los mods los hacen otras personas, no Savage Wind. No los revisamos, probamos ni damos soporte, y no nos hacemos responsables de lo que hagan, incluso si rompen el juego o tus partidas. Haz una copia de tus partidas antes de probar uno y desactiva los mods antes de reportar un error: un reporte de un error causado por un mod se cierra de inmediato. Las versiones de Savage Wind nunca incluyen mods; en el futuro quizá recomendemos algunos que funcionen bien con Savage Wind.") +T("Unlock champion abilities", "Desbloquear habilidades de campeón") +T("Revali's Gale", "Furia de Revali") +T("Urbosa's Fury", "Furia de Urbosa") +T("Daruk's Protection", "Protección de Daruk") +T("Mipha's Grace", "Gracia de Mipha") +T("Also usable in shrines and in the Trial of the Sword.", "También utilizable en santuarios y en la Prueba de la Espada.") +T("The four champion abilities stay usable everywhere, from the start of the game. They cannot be switched off in the pause menu.", "Las cuatro habilidades de campeón se pueden usar en cualquier lugar, desde el principio. No se pueden desactivar en el menú de pausa.") diff --git a/runtime/ui/i18n/fr.inc b/runtime/ui/i18n/fr.inc index 89adbc608..9b27cf6fb 100644 --- a/runtime/ui/i18n/fr.inc +++ b/runtime/ui/i18n/fr.inc @@ -1261,3 +1261,10 @@ T("Downloading Intel XeSS", "Téléchargement de Intel XeSS") T("Dynamic: renders the 3D scene smaller when frames are slow, sharper when they aren't; stays full size where that gains nothing.", "Dynamique : rend la scène 3D plus petite quand les images sont lentes, plus nette quand elles ne le sont pas ; reste en pleine taille là où ça n'apporte rien.") T("About mods", "À propos des mods") T("Mods are made by other people, not by Savage Wind. We don't check, test or support them, and we aren't responsible for what they do, including if they break the game or your saves. Back up your saves before trying one, and turn mods off before reporting a bug: a report of a bug a mod causes is closed right away. Savage Wind releases never include mods; in the future we may suggest some we've found to play well with Savage Wind.", "Les mods sont faits par d'autres personnes, pas par Savage Wind. Nous ne les vérifions pas, ne les testons pas et ne les prenons pas en charge, et nous ne sommes pas responsables de ce qu'ils font, y compris s'ils cassent le jeu ou vos sauvegardes. Sauvegardez vos parties avant d'en essayer un, et désactivez les mods avant de signaler un bug : le signalement d'un bug causé par un mod est fermé immédiatement. Les versions de Savage Wind n'incluent jamais de mods ; à l'avenir, nous pourrons en recommander certains qui fonctionnent bien avec Savage Wind.") +T("Unlock champion abilities", "Débloquer les pouvoirs des prodiges") +T("Revali's Gale", "Envol de Revali") +T("Urbosa's Fury", "Colère d'Urbosa") +T("Daruk's Protection", "Protection de Daruk") +T("Mipha's Grace", "Grâce de Mipha") +T("Also usable in shrines and in the Trial of the Sword.", "Également utilisable dans les sanctuaires et dans l'Épreuve de l'épée.") +T("The four champion abilities stay usable everywhere, from the start of the game. They cannot be switched off in the pause menu.", "Les quatre pouvoirs des prodiges sont utilisables partout, dès le début. Ils ne peuvent pas être désactivés dans le menu pause.") diff --git a/runtime/ui/i18n/he.inc b/runtime/ui/i18n/he.inc index d23da92b4..3c41d3bc9 100644 --- a/runtime/ui/i18n/he.inc +++ b/runtime/ui/i18n/he.inc @@ -1260,3 +1260,10 @@ T("Downloading Intel XeSS", "מוריד את Intel XeSS") T("Dynamic: renders the 3D scene smaller when frames are slow, sharper when they aren't; stays full size where that gains nothing.", "דינמי: מרנדר את סצנת ה-3D קטנה יותר כשהפריימים איטיים וחדה יותר כשלא; נשארת בגודל מלא כשאין בכך תועלת.") T("About mods", "על מודים") T("Mods are made by other people, not by Savage Wind. We don't check, test or support them, and we aren't responsible for what they do, including if they break the game or your saves. Back up your saves before trying one, and turn mods off before reporting a bug: a report of a bug a mod causes is closed right away. Savage Wind releases never include mods; in the future we may suggest some we've found to play well with Savage Wind.", "המודים נוצרים על ידי אנשים אחרים, לא על ידי Savage Wind. איננו בודקים, מנסים או תומכים בהם, ואיננו אחראים למה שהם עושים, כולל אם הם שוברים את המשחק או את השמירות שלך. גבה את השמירות לפני שאתה מנסה מוד, וכבה את המודים לפני דיווח על באג: דיווח על באג שנגרם על ידי מוד ייסגר מיד. גרסאות Savage Wind לעולם אינן כוללות מודים; בעתיד אולי נמליץ על כמה שעובדים טוב עם Savage Wind.") +T("Unlock champion abilities", "שחרור כוחות האלופים") +T("Revali's Gale", "הסערה של רוואלי") +T("Urbosa's Fury", "הזעם של אורבוזה") +T("Daruk's Protection", "ההגנה של דארוק") +T("Mipha's Grace", "החסד של מיפה") +T("Also usable in shrines and in the Trial of the Sword.", "שמיש גם במקדשים ובמבחן החרב.") +T("The four champion abilities stay usable everywhere, from the start of the game. They cannot be switched off in the pause menu.", "ארבע היכולות של האלופים שמישות בכל מקום, מתחילת המשחק. אי אפשר לכבות אותן בתפריט ההשהיה.") diff --git a/runtime/ui/i18n/it.inc b/runtime/ui/i18n/it.inc index 075f46d38..ea20c6932 100644 --- a/runtime/ui/i18n/it.inc +++ b/runtime/ui/i18n/it.inc @@ -1261,3 +1261,10 @@ T("Downloading Intel XeSS", "Download di Intel XeSS") T("Dynamic: renders the 3D scene smaller when frames are slow, sharper when they aren't; stays full size where that gains nothing.", "Dinamico: rende la scena 3D più piccola quando i frame sono lenti, più nitida quando non lo sono; resta a piena dimensione dove non serve.") T("About mods", "Informazioni sulle mod") T("Mods are made by other people, not by Savage Wind. We don't check, test or support them, and we aren't responsible for what they do, including if they break the game or your saves. Back up your saves before trying one, and turn mods off before reporting a bug: a report of a bug a mod causes is closed right away. Savage Wind releases never include mods; in the future we may suggest some we've found to play well with Savage Wind.", "Le mod sono fatte da altre persone, non da Savage Wind. Non le controlliamo, non le testiamo e non le supportiamo, e non siamo responsabili di ciò che fanno, anche se rompono il gioco o i tuoi salvataggi. Fai una copia dei salvataggi prima di provarne una e disattiva le mod prima di segnalare un bug: la segnalazione di un bug causato da una mod viene chiusa subito. Le versioni di Savage Wind non includono mai mod; in futuro potremmo consigliarne alcune che funzionano bene con Savage Wind.") +T("Unlock champion abilities", "Sblocca i poteri dei campioni") +T("Revali's Gale", "Furia di Revali") +T("Urbosa's Fury", "Furia di Urbosa") +T("Daruk's Protection", "Protezione di Daruk") +T("Mipha's Grace", "Grazia di Mipha") +T("Also usable in shrines and in the Trial of the Sword.", "Utilizzabile anche nei santuari e nella Prova della Spada.") +T("The four champion abilities stay usable everywhere, from the start of the game. They cannot be switched off in the pause menu.", "I quattro poteri dei campioni sono utilizzabili ovunque, fin dall'inizio. Non si possono disattivare nel menu di pausa.") diff --git a/runtime/ui/i18n/ja.inc b/runtime/ui/i18n/ja.inc index 7f8bed7e3..4952d0b73 100644 --- a/runtime/ui/i18n/ja.inc +++ b/runtime/ui/i18n/ja.inc @@ -1261,3 +1261,10 @@ T("Downloading Intel XeSS", "Intel XeSS をダウンロード中") T("Dynamic: renders the 3D scene smaller when frames are slow, sharper when they aren't; stays full size where that gains nothing.", "動的:フレームが遅いときは 3D シーンを小さく、速いときは鮮明にレンダリングします。効果がない環境ではフルサイズのままです。") T("About mods", "MOD について") T("Mods are made by other people, not by Savage Wind. We don't check, test or support them, and we aren't responsible for what they do, including if they break the game or your saves. Back up your saves before trying one, and turn mods off before reporting a bug: a report of a bug a mod causes is closed right away. Savage Wind releases never include mods; in the future we may suggest some we've found to play well with Savage Wind.", "MOD は Savage Wind ではなく、ほかの人が作ったものです。私たちは MOD の確認・テスト・サポートを行わず、ゲームやセーブデータが壊れた場合も含め、MOD の動作について責任を負いません。試す前にセーブデータをバックアップし、不具合を報告する前には MOD をオフにしてください。MOD が原因の不具合の報告はすぐにクローズされます。Savage Wind のリリースに MOD が含まれることはありません。今後、Savage Wind でよく動く MOD を紹介することはあるかもしれません。") +T("Unlock champion abilities", "英傑の力を解放") +T("Revali's Gale", "リーバルの猛り") +T("Urbosa's Fury", "ウルボザの怒り") +T("Daruk's Protection", "ダルケルの護り") +T("Mipha's Grace", "ミファーの祈り") +T("Also usable in shrines and in the Trial of the Sword.", "試練の祠や剣の試練でも使えます。") +T("The four champion abilities stay usable everywhere, from the start of the game. They cannot be switched off in the pause menu.", "4つの英傑の力は最初からどこでも使えます。ポーズメニューでは切れません。") diff --git a/runtime/ui/i18n/ko.inc b/runtime/ui/i18n/ko.inc index 18346ad05..cd9b237a5 100644 --- a/runtime/ui/i18n/ko.inc +++ b/runtime/ui/i18n/ko.inc @@ -1261,3 +1261,10 @@ T("Downloading Intel XeSS", "Intel XeSS 다운로드 중") T("Dynamic: renders the 3D scene smaller when frames are slow, sharper when they aren't; stays full size where that gains nothing.", "동적: 프레임이 느릴 때 3D 장면을 더 작게, 빠를 때 더 선명하게 렌더링합니다. 이득이 없는 환경에서는 전체 크기를 유지합니다.") T("About mods", "모드 안내") T("Mods are made by other people, not by Savage Wind. We don't check, test or support them, and we aren't responsible for what they do, including if they break the game or your saves. Back up your saves before trying one, and turn mods off before reporting a bug: a report of a bug a mod causes is closed right away. Savage Wind releases never include mods; in the future we may suggest some we've found to play well with Savage Wind.", "모드는 Savage Wind가 아니라 다른 사람들이 만든 것입니다. 저희는 모드를 확인하거나 테스트하거나 지원하지 않으며, 게임이나 세이브가 망가지는 경우를 포함해 모드가 하는 일에 책임지지 않습니다. 모드를 써 보기 전에 세이브를 백업하고, 버그를 신고하기 전에는 모드를 꺼 주세요. 모드 때문에 생긴 버그 신고는 바로 닫힙니다. Savage Wind 릴리스에는 모드가 포함되지 않습니다. 앞으로 Savage Wind에서 잘 작동하는 모드를 추천할 수는 있습니다.") +T("Unlock champion abilities", "영걸의 힘 해방") +T("Revali's Gale", "리발의 용맹") +T("Urbosa's Fury", "우르보사의 분노") +T("Daruk's Protection", "다르케르의 수호") +T("Mipha's Grace", "미파의 기도") +T("Also usable in shrines and in the Trial of the Sword.", "사당과 검의 시련에서도 사용할 수 있습니다.") +T("The four champion abilities stay usable everywhere, from the start of the game. They cannot be switched off in the pause menu.", "네 가지 영걸의 힘은 처음부터 어디서나 사용할 수 있습니다. 일시정지 메뉴에서는 끌 수 없습니다.") diff --git a/runtime/ui/i18n/nl.inc b/runtime/ui/i18n/nl.inc index 36361d27e..f1099cd53 100644 --- a/runtime/ui/i18n/nl.inc +++ b/runtime/ui/i18n/nl.inc @@ -1261,3 +1261,10 @@ T("Downloading Intel XeSS", "Intel XeSS wordt gedownload") T("Dynamic: renders the 3D scene smaller when frames are slow, sharper when they aren't; stays full size where that gains nothing.", "Dynamisch: rendert de 3D-scène kleiner als frames traag zijn, scherper als dat niet zo is; blijft op volle grootte waar het niets oplevert.") T("About mods", "Over mods") T("Mods are made by other people, not by Savage Wind. We don't check, test or support them, and we aren't responsible for what they do, including if they break the game or your saves. Back up your saves before trying one, and turn mods off before reporting a bug: a report of a bug a mod causes is closed right away. Savage Wind releases never include mods; in the future we may suggest some we've found to play well with Savage Wind.", "Mods worden door anderen gemaakt, niet door Savage Wind. We controleren, testen en ondersteunen ze niet en zijn niet verantwoordelijk voor wat ze doen, ook niet als ze het spel of je saves breken. Maak een back-up van je saves voordat je er een probeert, en zet mods uit voordat je een bug meldt: een melding van een bug die een mod veroorzaakt, wordt meteen gesloten. Savage Wind-releases bevatten nooit mods; in de toekomst raden we misschien een paar aan die goed werken met Savage Wind.") +T("Unlock champion abilities", "Kampioenkrachten vrijspelen") +T("Revali's Gale", "Revali's Storm") +T("Urbosa's Fury", "Urbosa's Woede") +T("Daruk's Protection", "Daruk's Bescherming") +T("Mipha's Grace", "Mipha's Genade") +T("Also usable in shrines and in the Trial of the Sword.", "Ook bruikbaar in schrijnen en in de Beproeving van het Zwaard.") +T("The four champion abilities stay usable everywhere, from the start of the game. They cannot be switched off in the pause menu.", "De vier kampioenkrachten zijn overal bruikbaar, vanaf het begin. Ze kunnen niet in het pausemenu worden uitgezet.") diff --git a/runtime/ui/i18n/pt.inc b/runtime/ui/i18n/pt.inc index b63277b21..693119d56 100644 --- a/runtime/ui/i18n/pt.inc +++ b/runtime/ui/i18n/pt.inc @@ -1261,3 +1261,10 @@ T("Downloading Intel XeSS", "Baixando Intel XeSS") T("Dynamic: renders the 3D scene smaller when frames are slow, sharper when they aren't; stays full size where that gains nothing.", "Dinâmico: renderiza a cena 3D menor quando os quadros ficam lentos e mais nítida quando não; mantém o tamanho cheio onde isso não ganha nada.") T("About mods", "Sobre os mods") T("Mods are made by other people, not by Savage Wind. We don't check, test or support them, and we aren't responsible for what they do, including if they break the game or your saves. Back up your saves before trying one, and turn mods off before reporting a bug: a report of a bug a mod causes is closed right away. Savage Wind releases never include mods; in the future we may suggest some we've found to play well with Savage Wind.", "Os mods são feitos por outras pessoas, não pelo Savage Wind. Não os verificamos, testamos nem damos suporte, e não somos responsáveis pelo que fazem, incluindo se estragarem o jogo ou os seus saves. Faça uma cópia dos seus saves antes de experimentar um e desative os mods antes de reportar um erro: um relatório de um erro causado por um mod é fechado de imediato. As versões do Savage Wind nunca incluem mods; no futuro talvez recomendemos alguns que funcionem bem com o Savage Wind.") +T("Unlock champion abilities", "Desbloquear poderes dos campeões") +T("Revali's Gale", "Fúria de Revali") +T("Urbosa's Fury", "Fúria de Urbosa") +T("Daruk's Protection", "Proteção de Daruk") +T("Mipha's Grace", "Graça de Mipha") +T("Also usable in shrines and in the Trial of the Sword.", "Também utilizável em santuários e na Provação da Espada.") +T("The four champion abilities stay usable everywhere, from the start of the game. They cannot be switched off in the pause menu.", "Os quatro poderes dos campeões podem ser usados em qualquer lugar, desde o início. Não podem ser desativados no menu de pausa.") diff --git a/runtime/ui/i18n/ru.inc b/runtime/ui/i18n/ru.inc index e1c0c123f..62ca7c0e0 100644 --- a/runtime/ui/i18n/ru.inc +++ b/runtime/ui/i18n/ru.inc @@ -1261,3 +1261,10 @@ T("Downloading Intel XeSS", "Загрузка Intel XeSS") T("Dynamic: renders the 3D scene smaller when frames are slow, sharper when they aren't; stays full size where that gains nothing.", "Динамический: рендерит 3D-сцену меньше, когда кадры идут медленно, и резче, когда нет; остаётся в полном размере там, где это ничего не даёт.") T("About mods", "О модах") T("Mods are made by other people, not by Savage Wind. We don't check, test or support them, and we aren't responsible for what they do, including if they break the game or your saves. Back up your saves before trying one, and turn mods off before reporting a bug: a report of a bug a mod causes is closed right away. Savage Wind releases never include mods; in the future we may suggest some we've found to play well with Savage Wind.", "Моды делают другие люди, а не Savage Wind. Мы их не проверяем, не тестируем и не поддерживаем и не отвечаем за то, что они делают, в том числе если они ломают игру или ваши сохранения. Сделайте копию сохранений, прежде чем пробовать мод, и выключите моды, прежде чем сообщать об ошибке: сообщение об ошибке, которую вызвал мод, сразу закрывается. Релизы Savage Wind никогда не включают моды; в будущем мы, возможно, порекомендуем некоторые, которые хорошо работают с Savage Wind.") +T("Unlock champion abilities", "Разблокировать силы героев") +T("Revali's Gale", "Ярость Ревали") +T("Urbosa's Fury", "Гнев Урбозы") +T("Daruk's Protection", "Защита Дарука") +T("Mipha's Grace", "Милость Мифы") +T("Also usable in shrines and in the Trial of the Sword.", "Также работает в святилищах и в Испытании меча.") +T("The four champion abilities stay usable everywhere, from the start of the game. They cannot be switched off in the pause menu.", "Четыре силы героев работают везде, с самого начала. В меню паузы их нельзя отключить.") diff --git a/runtime/ui/i18n/th.inc b/runtime/ui/i18n/th.inc index 0dc5f99c1..70c44891b 100644 --- a/runtime/ui/i18n/th.inc +++ b/runtime/ui/i18n/th.inc @@ -1261,3 +1261,10 @@ T("Downloading Intel XeSS", "กำลังดาวน์โหลด Intel Xe T("Dynamic: renders the 3D scene smaller when frames are slow, sharper when they aren't; stays full size where that gains nothing.", "ไดนามิก: เรนเดอร์ฉาก 3D เล็กลงเมื่อเฟรมช้า และคมขึ้นเมื่อเร็ว คงขนาดเต็มเมื่อไม่ได้ประโยชน์") T("About mods", "เกี่ยวกับม็อด") T("Mods are made by other people, not by Savage Wind. We don't check, test or support them, and we aren't responsible for what they do, including if they break the game or your saves. Back up your saves before trying one, and turn mods off before reporting a bug: a report of a bug a mod causes is closed right away. Savage Wind releases never include mods; in the future we may suggest some we've found to play well with Savage Wind.", "ม็อดสร้างโดยผู้อื่น ไม่ใช่ Savage Wind เราไม่ได้ตรวจสอบ ทดสอบ หรือดูแลม็อด และไม่รับผิดชอบต่อสิ่งที่ม็อดทำ รวมถึงหากม็อดทำให้เกมหรือเซฟเสียหาย สำรองเซฟก่อนลองม็อด และปิดม็อดก่อนรายงานบั๊ก รายงานบั๊กที่เกิดจากม็อดจะถูกปิดทันที รุ่นเผยแพร่ของ Savage Wind จะไม่รวมม็อดใด ๆ ในอนาคตเราอาจแนะนำม็อดบางตัวที่เล่นกับ Savage Wind ได้ดี") +T("Unlock champion abilities", "ปลดล็อกพลังนักรบ") +T("Revali's Gale", "พายุของเรวาลี") +T("Urbosa's Fury", "โทสะของอูร์โบซา") +T("Daruk's Protection", "การปกป้องของดารุค") +T("Mipha's Grace", "พรของมีฟา") +T("Also usable in shrines and in the Trial of the Sword.", "ใช้ได้ในศาลเจ้าและการทดสอบดาบด้วย") +T("The four champion abilities stay usable everywhere, from the start of the game. They cannot be switched off in the pause menu.", "พลังนักรบทั้งสี่ใช้ได้ทุกที่ตั้งแต่เริ่มเกม และปิดในเมนูหยุดเกมไม่ได้") diff --git a/runtime/ui/i18n/zh-Hans.inc b/runtime/ui/i18n/zh-Hans.inc index 5022f2c0b..64224018b 100644 --- a/runtime/ui/i18n/zh-Hans.inc +++ b/runtime/ui/i18n/zh-Hans.inc @@ -1261,3 +1261,10 @@ T("Downloading Intel XeSS", "正在下载 Intel XeSS") T("Dynamic: renders the 3D scene smaller when frames are slow, sharper when they aren't; stays full size where that gains nothing.", "动态:帧率低时缩小 3D 场景,帧率够时恢复清晰;降档无收益的环境保持原生尺寸。") T("About mods", "关于模组") T("Mods are made by other people, not by Savage Wind. We don't check, test or support them, and we aren't responsible for what they do, including if they break the game or your saves. Back up your saves before trying one, and turn mods off before reporting a bug: a report of a bug a mod causes is closed right away. Savage Wind releases never include mods; in the future we may suggest some we've found to play well with Savage Wind.", "模组由其他人制作,而非 Savage Wind。我们不检查、不测试也不支持模组,对模组造成的任何后果概不负责,包括游戏或存档损坏。试用模组前请备份存档,报告错误前请先关闭模组;由模组导致的错误报告会被立即关闭。Savage Wind 的发布版本绝不包含模组;将来我们可能会推荐一些与 Savage Wind 配合良好的模组。") +T("Unlock champion abilities", "解锁英杰技能") +T("Revali's Gale", "力巴尔的勇猛") +T("Urbosa's Fury", "乌尔波扎的愤怒") +T("Daruk's Protection", "达尔克尔的守护") +T("Mipha's Grace", "米法的祈福") +T("Also usable in shrines and in the Trial of the Sword.", "在神庙和剑之试炼中也可使用。") +T("The four champion abilities stay usable everywhere, from the start of the game. They cannot be switched off in the pause menu.", "四种英杰技能开局即可在任何地方使用,暂停菜单中无法关闭。") diff --git a/runtime/ui/i18n/zh-Hant.inc b/runtime/ui/i18n/zh-Hant.inc index e36752bc0..b108060b5 100644 --- a/runtime/ui/i18n/zh-Hant.inc +++ b/runtime/ui/i18n/zh-Hant.inc @@ -1261,3 +1261,10 @@ T("Downloading Intel XeSS", "正在下載 Intel XeSS") T("Dynamic: renders the 3D scene smaller when frames are slow, sharper when they aren't; stays full size where that gains nothing.", "動態:幀率低時縮小 3D 場景,幀率足夠時恢復清晰;降檔無收益的環境保持原生尺寸。") T("About mods", "關於模組") T("Mods are made by other people, not by Savage Wind. We don't check, test or support them, and we aren't responsible for what they do, including if they break the game or your saves. Back up your saves before trying one, and turn mods off before reporting a bug: a report of a bug a mod causes is closed right away. Savage Wind releases never include mods; in the future we may suggest some we've found to play well with Savage Wind.", "模組由其他人製作,而非 Savage Wind。我們不檢查、不測試也不支援模組,對模組造成的任何後果概不負責,包括遊戲或存檔損壞。試用模組前請備份存檔,回報錯誤前請先關閉模組;由模組導致的錯誤回報會被立即關閉。Savage Wind 的發行版本絕不包含模組;將來我們可能會推薦一些與 Savage Wind 搭配良好的模組。") +T("Unlock champion abilities", "解鎖英傑技能") +T("Revali's Gale", "力巴爾的勇猛") +T("Urbosa's Fury", "烏爾波扎的憤怒") +T("Daruk's Protection", "達爾克爾的守護") +T("Mipha's Grace", "米法的祈福") +T("Also usable in shrines and in the Trial of the Sword.", "在神廟和劍之試煉中也可使用。") +T("The four champion abilities stay usable everywhere, from the start of the game. They cannot be switched off in the pause menu.", "四種英傑技能開局即可在任何地方使用,暫停選單中無法關閉。") diff --git a/runtime/ui/menu.mm b/runtime/ui/menu.mm index 0f3df0ef5..9c2a917c3 100644 --- a/runtime/ui/menu.mm +++ b/runtime/ui/menu.mm @@ -1411,6 +1411,26 @@ static void cheats_options(void) { opt_toggle("Infinite stamina", &g_settings.infinite_stamina, false, "The stamina wheel never runs out."); opt_toggle("One-hit kill", &g_settings.one_hit_kill, false, "Enemies go down in one hit."); + { // the four champion abilities: a row that opens to their four switches + static bool open = false; + if (opt_action("Unlock champion abilities", open ? "-" : "+", + "The four champion abilities stay usable everywhere, from the start of the game. They cannot be " + "switched off in the pause menu.", true)) + open = !open; + if (open) { + opt_indent(1); + opt_toggle("Revali's Gale", &g_settings.hero_soul_wind, false, + "Also usable in shrines and in the Trial of the Sword."); + opt_toggle("Urbosa's Fury", &g_settings.hero_soul_electric, false, + "Also usable in shrines and in the Trial of the Sword."); + opt_toggle("Daruk's Protection", &g_settings.hero_soul_fire, false, + "Also usable in shrines and in the Trial of the Sword."); + opt_toggle("Mipha's Grace", &g_settings.hero_soul_water, false, + "Also usable in shrines and in the Trial of the Sword."); + opt_indent(-1); + } + } + opt_toggle("Infinite arrows", &g_settings.infinite_arrows, false, "Shooting a bow uses up no arrows. You still need one to shoot."); { // (Accessibility's rows: game_options.mm k_wear and DAMAGE_CHOICES) diff --git a/tools/game_sites.py b/tools/game_sites.py index 5ef248299..98fdc19b2 100644 --- a/tools/game_sites.py +++ b/tools/game_sites.py @@ -217,6 +217,30 @@ '7100001f 5400000c/ff00001f 91314260', 1), Site('world_mgr', 'ref', '90000008/9f00001f 91000108/ffc003ff f9400108 b4000008/ff00001f b946b908 7100051f ' '54000001/ff00001f a9bf7bfd', 1), + # the four champion abilities' "can this be used" checks (tools/patches.py _hero_soul_*; runtime/assists.c + # rt_hero_soul): each returns 0 while the game forbids hero souls, as the shrines and the Trial of the Sword do, and + # while the ability recharges. The patterns run from a check's entry to the call or the load that tells it apart. + Site('hero_soul_wind', 'code', + 'f0008468/9f00001f d0008469/9f00001f f9420d08/ffc003ff f944c929/ffc003ff 39400108/ffc003ff ' + '39400129/ffc003ff 2a090108 34000068/ff00001f 2a1f03e0 d65f03c0 a9be7bfd f9000bf3 910003fd ' + 'aa0003f3 2a1f03e0 94017619/fc000000 2a0003e8 2a1f03e0 36000088/ff00001f f9400bf3/ffc003ff ' + 'a8c27bfd d65f03c0 aa1303e0 94003761/fc000000', 0), + Site('hero_soul_fire', 'code', + 'f0008468/9f00001f d0008469/9f00001f f9420d08/ffc003ff f944c929/ffc003ff 39400108/ffc003ff ' + '39400129/ffc003ff 2a090108 34000068/ff00001f 2a1f03e0 d65f03c0 a9be7bfd f9000bf3 910003fd ' + 'aa0003f3 2a1f03e0 940175f3/fc000000 2a0003e8 2a1f03e0 36000088/ff00001f f9400bf3/ffc003ff ' + 'a8c27bfd d65f03c0 94069c50/fc000000 360000c0/ff00001f bd5e0660', 0), + Site('hero_soul_electric', 'code', + 'f0008468/9f00001f d0008469/9f00001f f9420d08/ffc003ff f944c929/ffc003ff 39400108/ffc003ff ' + '39400129/ffc003ff 2a090108 34000068/ff00001f 2a1f03e0 d65f03c0 a9be7bfd f9000bf3 910003fd ' + 'aa0003f3 2a1f03e0 940175d4/fc000000 2a0003e8 2a1f03e0 36000088/ff00001f f9400bf3/ffc003ff ' + 'a8c27bfd d65f03c0 94069c45/fc000000 360000c0/ff00001f bd5e1260', 0), + Site('hero_soul_water', 'code', + 'a9be7bfd f9000bf3 910003fd aa0003f3 2a1f03e0 39712268/ffc003ff 370001e8/ff00001f f0008468/9f00001f ' + 'd0008469/9f00001f f9420d08/ffc003ff 39400108/ffc003ff f944c929/ffc003ff 39400129/ffc003ff 7100011f ' + '7a400920 540000c1/ff00001f 2a1f03e0 940175b3/fc000000 2a0003e8 2a1f03e0 36000088/ff00001f ' + 'f9400bf3/ffc003ff a8c27bfd d65f03c0 94069c38/fc000000', 0), + # the mouse camera (tools/patches.py _cam_stick, _cam_pitch, _cam_pitch_aim; runtime/hle/input.c): the camera's # stick input, which every camera action reads, and the square that the chase-like cameras apply to its vertical # part @@ -691,6 +715,10 @@ 'controller_step': 0x7001dad0e0, 'player_info': 0x7001e13ed0, 'world_mgr': 0x7001e57580, + 'hero_soul_wind': 0x7000cd9390, + 'hero_soul_electric': 0x7000cd94a4, + 'hero_soul_fire': 0x7000cd9428, + 'hero_soul_water': 0x7000cd9520, 'cam_stick': 0x7000d57fe0, 'cam_stick_end': 0x7000d5801c, 'horse_cam_lr': 0x7000c29000, diff --git a/tools/patches.py b/tools/patches.py index 2f13427ae..564ca3a79 100644 --- a/tools/patches.py +++ b/tools/patches.py @@ -744,6 +744,38 @@ def _persp_unproject_x(gen, a): # the mouse turns both alike. Optional sites (tools/game_sites.py OPTIONAL_GROUPS): without them the mouse moves the # stick, as before. +# The four champion abilities' "can this be used" checks (tools/game_sites.py hero_soul_*; runtime/assists.c +# rt_hero_soul): each returns 0 while the game forbids hero souls, as the shrines and the Trial of the Sword do, and +# while the ability recharges. With the option on the check passes, so the ability works from the start of the game and +# in those places; off, the original instruction runs. +def _hero_soul_entry(gen, a, which, who): + w = _word(gen, a) + assert (w & 0x9F000000) == 0x90000000, hex(w) # adrp + return (f'{{ extern int rt_hero_soul(int); if (rt_hero_soul({which})) {{ c->x[0] = 1; return; }} ' + f'c->x[{w & 31}] = {adrp_page(w, a):#x}ull; }}' + f' /* {a:#x}: adrp (the check for {who}) */') + + +def _hero_soul_wind(gen, a): + return _hero_soul_entry(gen, a, 0, "Revali's Gale") + + +def _hero_soul_electric(gen, a): + return _hero_soul_entry(gen, a, 1, "Urbosa's Fury") + + +def _hero_soul_fire(gen, a): + return _hero_soul_entry(gen, a, 2, "Daruk's Protection") + + +def _hero_soul_water(gen, a): + # Mipha's check is the one that saves the caller's registers before testing + assert _word(gen, a) == 0xa9be7bfd, hex(_word(gen, a)) # stp x29, x30, [sp, #-0x20]! + return ('{ extern int rt_hero_soul(int); if (rt_hero_soul(3)) { c->x[0] = 1; return; } ' + 'uint64_t ea = c->sp - 0x20; ST64(ea, c->x[29]); ST64(ea + 8, c->x[30]); c->sp = ea; }' + f" /* {a:#x}: stp x29, x30, [sp, #-0x20]! (the check for Mipha's Grace) */") + + def _cam_stick(gen, a): assert _word(gen, a) == _sub_sp(0x30), hex(_word(gen, a)) return ('{ extern int rt_cam_stick(uint64_t, uint64_t); if (rt_cam_stick(c->x[0], c->x[30])) return; ' @@ -1181,6 +1213,10 @@ def _tp_gate(gen, a): PATCHES = { + 'hero_soul_wind': _hero_soul_wind, + 'hero_soul_electric': _hero_soul_electric, + 'hero_soul_fire': _hero_soul_fire, + 'hero_soul_water': _hero_soul_water, 'ui_layout_draw': _ui_layout_draw, 'ui_layout_pane': _ui_layout_pane, 'replace_tick_call': _replace_tick_call,