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
|
|
@ -302,7 +302,7 @@ namespace RacesOfValheim
|
|||
StatusEffect se = ScriptableObject.CreateInstance<StatusEffect>();
|
||||
se.name = ActiveSeName;
|
||||
se.m_name = DisplayName;
|
||||
se.m_tooltip = "Your claws are out. They retract when this runs out.";
|
||||
se.m_tooltip = "$rov_se_claws_tooltip";
|
||||
se.m_icon = icon;
|
||||
|
||||
ItemManager.Instance.AddStatusEffect(new CustomStatusEffect(se, fixReference: false));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue