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
|
|
@ -30,8 +30,8 @@ namespace RacesOfValheim
|
|||
{
|
||||
base.Setup(character);
|
||||
name = SvermConfig.StatsSE;
|
||||
m_name = "Chitin Plating";
|
||||
m_tooltip = "Armoured, venomous, and never alone.";
|
||||
m_name = "$rov_se_sverm_stats_name";
|
||||
m_tooltip = "$rov_se_sverm_stats_tooltip";
|
||||
RebuildForState();
|
||||
}
|
||||
|
||||
|
|
@ -101,8 +101,8 @@ namespace RacesOfValheim
|
|||
public override void Setup(Character character)
|
||||
{
|
||||
base.Setup(character);
|
||||
m_name = "Ravager Strain Cooldown";
|
||||
m_tooltip = "The strain is spent. It will take again soon.";
|
||||
m_name = "$rov_se_sverm_ravagercd_name";
|
||||
m_tooltip = "$rov_se_sverm_ravagercd_tooltip";
|
||||
m_ttl = SvermConfig.RavagerCooldownSeconds;
|
||||
}
|
||||
}
|
||||
|
|
@ -120,8 +120,8 @@ namespace RacesOfValheim
|
|||
public override void Setup(Character character)
|
||||
{
|
||||
base.Setup(character);
|
||||
m_name = "Ravager Strain";
|
||||
m_tooltip = "The shell doubles, and nothing that hits it lands the same again.";
|
||||
m_name = "$rov_se_sverm_ravager_name";
|
||||
m_tooltip = "$rov_se_sverm_ravager_tooltip";
|
||||
m_ttl = SvermConfig.RavagerDurationSeconds;
|
||||
}
|
||||
}
|
||||
|
|
@ -138,7 +138,7 @@ namespace RacesOfValheim
|
|||
|
||||
var stats = ScriptableObject.CreateInstance<SE_SvermStats>();
|
||||
stats.name = SvermConfig.StatsSE;
|
||||
stats.m_name = "Chitin Plating";
|
||||
stats.m_name = "$rov_se_sverm_stats_name";
|
||||
stats.m_icon = icon;
|
||||
CustomStatusEffect customStats = new CustomStatusEffect(stats, fixReference: false);
|
||||
ItemManager.Instance.AddStatusEffect(customStats);
|
||||
|
|
@ -146,13 +146,13 @@ namespace RacesOfValheim
|
|||
|
||||
var form = ScriptableObject.CreateInstance<SE_SvermRavagerForm>();
|
||||
form.name = SvermConfig.RavagerSE;
|
||||
form.m_name = "Ravager Strain";
|
||||
form.m_name = "$rov_se_sverm_ravager_name";
|
||||
form.m_icon = icon;
|
||||
ItemManager.Instance.AddStatusEffect(new CustomStatusEffect(form, fixReference: false));
|
||||
|
||||
var cooldown = ScriptableObject.CreateInstance<SE_SvermRavagerCooldown>();
|
||||
cooldown.name = SvermConfig.RavagerCdSE;
|
||||
cooldown.m_name = "Ravager Strain Cooldown";
|
||||
cooldown.m_name = "$rov_se_sverm_ravagercd_name";
|
||||
cooldown.m_icon = icon;
|
||||
ItemManager.Instance.AddStatusEffect(new CustomStatusEffect(cooldown, fixReference: false));
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue