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
|
|
@ -24,7 +24,7 @@ namespace RacesOfValheim
|
|||
|
||||
var se = ScriptableObject.CreateInstance<SE_SkeletonStats>();
|
||||
se.name = "SE_SkeletonStats";
|
||||
se.m_name = "Undead Fortitude";
|
||||
se.m_name = "$rov_se_skeleton_stats_name";
|
||||
|
||||
// Icon
|
||||
GameObject skelTrophy = PrefabManager.Cache.GetPrefab<ItemDrop>("TrophySkeleton")?.gameObject;
|
||||
|
|
|
|||
|
|
@ -60,8 +60,8 @@ namespace RacesOfValheim
|
|||
public override void Setup(Character character)
|
||||
{
|
||||
base.Setup(character);
|
||||
m_name = "Resurrection Cooldown";
|
||||
m_tooltip = "Your skeletal body is too weak to resurrect again right now.";
|
||||
m_name = "$rov_se_skeleton_resurrectcd_name";
|
||||
m_tooltip = "$rov_se_skeleton_resurrectcd_tooltip";
|
||||
m_icon = Jotunn.Managers.PrefabManager.Cache.GetPrefab<GameObject>("TrophySkeletonPoison")?.GetComponent<ItemDrop>()?.m_itemData.GetIcon()
|
||||
?? Jotunn.Managers.PrefabManager.Cache.GetPrefab<GameObject>("TrophySkeleton")?.GetComponent<ItemDrop>()?.m_itemData.GetIcon();
|
||||
m_ttl = SkeletonConfig.ResurrectionCooldown.Value;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue