From b555da99f266b9da2700290bb818bf347e950a9e Mon Sep 17 00:00:00 2001 From: kanym Date: Mon, 28 Sep 2026 13:55:45 +0200 Subject: [PATCH] feat(text): the Tame and Grab Log hover prompts come from translation files Co-Authored-By: Claude Opus 5.5 --- JotunnModStub/Aswid/AswidPatches.cs | 2 +- JotunnModStub/Translations/English/hover.json | 2 ++ JotunnModStub/Translations/Italian/hover.json | 2 ++ JotunnModStub/Trol/TrolLogWeapon.cs | 2 +- 4 files changed, 6 insertions(+), 2 deletions(-) diff --git a/JotunnModStub/Aswid/AswidPatches.cs b/JotunnModStub/Aswid/AswidPatches.cs index 9361df9..e2bb353 100644 --- a/JotunnModStub/Aswid/AswidPatches.cs +++ b/JotunnModStub/Aswid/AswidPatches.cs @@ -463,7 +463,7 @@ namespace RacesOfValheim // AswidConfig.TameKey) - the hint never matched the working key, and would have // gone stale again the moment that key was rebound. MainKey.ToString() reads back // whatever is actually bound. - __result += $"\n[{AswidConfig.TameKey.Value.MainKey}] Tame"; + __result += ModText.Get("rov_hover_aswid_tame", AswidConfig.TameKey.Value.MainKey); } } } diff --git a/JotunnModStub/Translations/English/hover.json b/JotunnModStub/Translations/English/hover.json index 9c09cb6..daaefdf 100644 --- a/JotunnModStub/Translations/English/hover.json +++ b/JotunnModStub/Translations/English/hover.json @@ -3,6 +3,7 @@ "rov_hover_aswid_dominate_cooldown_m": "[$KEY_Use] Dominate (Cooldown: $1m)", "rov_hover_aswid_follow": "[$KEY_Use] Follow", "rov_hover_aswid_stay": "[$KEY_Use] Stay", + "rov_hover_aswid_tame": "\n[$1] Tame", "rov_hover_butler_no_servant_stands_here_raise": "$1\nNo servant stands here.\n[$KEY_Use] Raise one", "rov_hover_butler_waiting": "Waiting.", "rov_hover_draugh_feed_flesh_or_draugr_s": "\n[$KEY_Use] Feed it flesh, or a draugr's head", @@ -44,6 +45,7 @@ "rov_hover_trenta_ready_empty": "ready: $1 $2\n[$KEY_Use] Empty it", "rov_hover_trenta_rotting_minutes_left": "rotting, $1 minutes left", "rov_hover_trol_call_warbands": "\n[$KEY_Use] Call the warbands", + "rov_hover_trol_grab_log": "\n[$1] Grab Log", "rov_hover_trol_warbands": "warbands $1/$2", "rov_hover_trol_yagluth_drop_hand_buys_king": "\n(a Yagluth drop in hand buys a king's head, and two more bands)", "rov_hover_ward_personal": "Personal", diff --git a/JotunnModStub/Translations/Italian/hover.json b/JotunnModStub/Translations/Italian/hover.json index d332961..01d1d9f 100644 --- a/JotunnModStub/Translations/Italian/hover.json +++ b/JotunnModStub/Translations/Italian/hover.json @@ -3,6 +3,7 @@ "rov_hover_aswid_dominate_cooldown_m": "[$KEY_Use] Domina (ricarica: $1m)", "rov_hover_aswid_follow": "[$KEY_Use] Segui", "rov_hover_aswid_stay": "[$KEY_Use] Resta", + "rov_hover_aswid_tame": "\n[$1] Addomestica", "rov_hover_butler_no_servant_stands_here_raise": "$1\nQui non c'รจ nessun servitore.\n[$KEY_Use] Fanne alzare uno", "rov_hover_butler_waiting": "In attesa.", "rov_hover_draugh_feed_flesh_or_draugr_s": "\n[$KEY_Use] Nutrilo di carne, o della testa di un draugr", @@ -44,6 +45,7 @@ "rov_hover_trenta_ready_empty": "pronto: $1 $2\n[$KEY_Use] Svuotala", "rov_hover_trenta_rotting_minutes_left": "sta marcendo, mancano $1 minuti", "rov_hover_trol_call_warbands": "\n[$KEY_Use] Chiama le bande da guerra", + "rov_hover_trol_grab_log": "\n[$1] Afferra il tronco", "rov_hover_trol_warbands": "bande da guerra $1/$2", "rov_hover_trol_yagluth_drop_hand_buys_king": "\n(un bottino di Yagluth in mano compra la testa di un re, e altre due bande)", "rov_hover_ward_personal": "Personale", diff --git a/JotunnModStub/Trol/TrolLogWeapon.cs b/JotunnModStub/Trol/TrolLogWeapon.cs index f315494..5480273 100644 --- a/JotunnModStub/Trol/TrolLogWeapon.cs +++ b/JotunnModStub/Trol/TrolLogWeapon.cs @@ -137,7 +137,7 @@ namespace RacesOfValheim if (rightItem != null && rightItem.m_dropPrefab != null && rightItem.m_dropPrefab.name.StartsWith("TrolWeapon_")) return; string key = TrolConfig.GrabLogKey.Value.MainKey.ToString(); - __result += $"\n[{key}] Grab Log"; + __result += ModText.Get("rov_hover_trol_grab_log", key); } } }