feat(text): status effect names and tooltips come from translation files
Every status effect the mod registers now carries a $rov_se_ token instead of English, and status_effects.json holds the texts in English and Italian. Valheim localizes both fields itself when it shows them. The blood potion's tooltip has numbers in it, so SE_BloodPotion fills its $1 and $2 in GetTooltipString, at display time. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
c055455027
commit
9bf144aedc
16 changed files with 203 additions and 66 deletions
|
|
@ -22,7 +22,7 @@ namespace RacesOfValheim
|
|||
// Invert the Wet debuff to actually heal the Draugh
|
||||
__instance.m_healthRegenMultiplier = DraughConfig.WetHealthRegenMultiplier.Value;
|
||||
__instance.m_staminaRegenMultiplier = 1f; // No stamina penalty
|
||||
__instance.m_tooltip = "The water restores your rotten flesh. Health regeneration increased.";
|
||||
__instance.m_tooltip = "$rov_se_draugh_wet_tooltip";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue