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
|
|
@ -16,8 +16,8 @@ namespace RacesOfValheim
|
|||
{
|
||||
base.Setup(character);
|
||||
name = DvergarConfig.StatsSE;
|
||||
m_name = "Stone and Forge";
|
||||
m_tooltip = "Small, sturdy, and born to the anvil.";
|
||||
m_name = "$rov_se_dvergar_stats_name";
|
||||
m_tooltip = "$rov_se_dvergar_stats_tooltip";
|
||||
}
|
||||
|
||||
public override void ModifyAttackStaminaUsage(float baseStaminaUse, ref float staminaUse)
|
||||
|
|
@ -80,7 +80,7 @@ namespace RacesOfValheim
|
|||
|
||||
var stats = ScriptableObject.CreateInstance<SE_DvergarStats>();
|
||||
stats.name = DvergarConfig.StatsSE;
|
||||
stats.m_name = "Stone and Forge";
|
||||
stats.m_name = "$rov_se_dvergar_stats_name";
|
||||
stats.m_icon = icon;
|
||||
CustomStatusEffect customStats = new CustomStatusEffect(stats, fixReference: false);
|
||||
ItemManager.Instance.AddStatusEffect(customStats);
|
||||
|
|
@ -88,22 +88,22 @@ namespace RacesOfValheim
|
|||
|
||||
var overcharge = ScriptableObject.CreateInstance<SE_DvergarOvercharge>();
|
||||
overcharge.name = DvergarConfig.OverchargeSE;
|
||||
overcharge.m_name = "Runic Overcharge";
|
||||
overcharge.m_tooltip = "Your next blow with a favoured weapon carries the whole of the charge.";
|
||||
overcharge.m_name = "$rov_se_dvergar_overcharge_name";
|
||||
overcharge.m_tooltip = "$rov_se_dvergar_overcharge_tooltip";
|
||||
overcharge.m_icon = GetItemIcon("Eitr") ?? icon;
|
||||
ItemManager.Instance.AddStatusEffect(new CustomStatusEffect(overcharge, fixReference: false));
|
||||
|
||||
var pingCd = ScriptableObject.CreateInstance<SE_DvergarAbilityCooldown>();
|
||||
pingCd.name = DvergarConfig.RunicPingCdSE;
|
||||
pingCd.m_name = "Runic Ping";
|
||||
pingCd.m_tooltip = "The runes must settle before you may call on them again.";
|
||||
pingCd.m_name = "$rov_se_dvergar_pingcd_name";
|
||||
pingCd.m_tooltip = "$rov_se_dvergar_pingcd_tooltip";
|
||||
pingCd.m_icon = GetItemIcon("DvergrKeyFragment") ?? icon;
|
||||
ItemManager.Instance.AddStatusEffect(new CustomStatusEffect(pingCd, fixReference: false));
|
||||
|
||||
var overchargeCd = ScriptableObject.CreateInstance<SE_DvergarAbilityCooldown>();
|
||||
overchargeCd.name = DvergarConfig.OverchargeCdSE;
|
||||
overchargeCd.m_name = "Overcharge Cooldown";
|
||||
overchargeCd.m_tooltip = "The runes are spent.";
|
||||
overchargeCd.m_name = "$rov_se_dvergar_overchargecd_name";
|
||||
overchargeCd.m_tooltip = "$rov_se_dvergar_overchargecd_tooltip";
|
||||
overchargeCd.m_icon = GetItemIcon("Eitr") ?? icon;
|
||||
ItemManager.Instance.AddStatusEffect(new CustomStatusEffect(overchargeCd, fixReference: false));
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue