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
|
|
@ -10,8 +10,8 @@ namespace RacesOfValheim
|
|||
{
|
||||
base.Setup(character);
|
||||
name = "SE_TrolThrowRockCooldown";
|
||||
m_name = "Throw Rock Cooldown";
|
||||
m_tooltip = "You must wait before throwing another rock.";
|
||||
m_name = "$rov_se_trol_throwcd_name";
|
||||
m_tooltip = "$rov_se_trol_throwcd_tooltip";
|
||||
m_ttl = 60f; // 1 minute cooldown
|
||||
|
||||
// Try to find a rock-like icon, e.g. Stone
|
||||
|
|
@ -33,8 +33,8 @@ namespace RacesOfValheim
|
|||
{
|
||||
base.Setup(character);
|
||||
name = "SE_TrolTrueForm";
|
||||
m_name = "True Form";
|
||||
m_tooltip = "You have unleashed your inner troll!";
|
||||
m_name = "$rov_se_trol_trueform_name";
|
||||
m_tooltip = "$rov_se_trol_trueform_tooltip";
|
||||
// Past Fader the form no longer runs out: m_ttl 0 is vanilla's "never expires", and
|
||||
// the True Form key becomes the only way back (see TrolRace.TryTrueForm).
|
||||
m_ttl = BossProgressionManager.GetCurrentProgressionState() >= 8 ? 0f : TrolConfig.TrueFormDuration.Value;
|
||||
|
|
@ -57,8 +57,8 @@ namespace RacesOfValheim
|
|||
{
|
||||
base.Setup(character);
|
||||
name = "SE_TrolTrueFormCooldown";
|
||||
m_name = "True Form Cooldown";
|
||||
m_tooltip = "You are exhausted from your True Form.";
|
||||
m_name = "$rov_se_trol_trueformcd_name";
|
||||
m_tooltip = "$rov_se_trol_trueformcd_tooltip";
|
||||
m_ttl = TrolConfig.TrueFormCooldown.Value;
|
||||
|
||||
GameObject itemPrefab = PrefabManager.Cache.GetPrefab<GameObject>("Stone");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue