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
|
|
@ -176,7 +176,7 @@ namespace RacesOfValheim
|
|||
SE_BloodPotion effect = ScriptableObject.CreateInstance<SE_BloodPotion>();
|
||||
effect.name = name;
|
||||
effect.m_name = displayName;
|
||||
effect.m_tooltip = $"Stomachs filled with blood. Healing {Mathf.RoundToInt(fraction * 100f)}% over {HealDuration:0} seconds.";
|
||||
effect.m_tooltip = "$rov_se_aswid_bloodpotion_tooltip"; // numbers go in at display, see GetTooltipString
|
||||
effect.m_ttl = HealDuration;
|
||||
effect.m_healFraction = fraction;
|
||||
effect.m_essencePrefab = essencePrefab;
|
||||
|
|
@ -287,6 +287,19 @@ namespace RacesOfValheim
|
|||
public float m_healFraction = 0.05f;
|
||||
public string m_essencePrefab = "";
|
||||
|
||||
/// <summary>
|
||||
/// The tooltip's $1 and $2 are the heal share and the duration. Filled in here, at display
|
||||
/// time, because a translation can only be looked up once the language is loaded, and the
|
||||
/// game localizes this string after us in a single pass that would leave $1 as it is.
|
||||
/// </summary>
|
||||
public override string GetTooltipString()
|
||||
{
|
||||
string text = base.GetTooltipString();
|
||||
if (Localization.instance == null) return text;
|
||||
return Localization.instance.Localize(text,
|
||||
Mathf.RoundToInt(m_healFraction * 100f).ToString(), m_ttl.ToString("0"));
|
||||
}
|
||||
|
||||
public override void Setup(Character character)
|
||||
{
|
||||
// SEMan clones the effect before setting it up, so writing the resolved amount here
|
||||
|
|
|
|||
|
|
@ -502,9 +502,9 @@ namespace RacesOfValheim
|
|||
__instance.m_icon = null;
|
||||
}
|
||||
|
||||
__instance.m_name = "Night Aura";
|
||||
__instance.m_name = "$rov_se_aswid_nightaura_name";
|
||||
__instance.m_startMessage = ""; // "The darkness empowers you.";
|
||||
__instance.m_tooltip = "The cold strengthens your beastly senses.";
|
||||
__instance.m_tooltip = "$rov_se_aswid_nightaura_tooltip";
|
||||
|
||||
if (__instance is SE_Stats stats)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -11,8 +11,8 @@ namespace RacesOfValheim
|
|||
{
|
||||
base.Setup(character);
|
||||
name = "SE_AswidStats";
|
||||
m_name = "Benedictus et Afflictus";
|
||||
m_tooltip = "Vampiric senses and life drain.";
|
||||
m_name = "$rov_se_aswid_stats_name";
|
||||
m_tooltip = "$rov_se_aswid_stats_tooltip";
|
||||
}
|
||||
|
||||
public void UpdateStats(int state)
|
||||
|
|
@ -59,8 +59,8 @@ namespace RacesOfValheim
|
|||
{
|
||||
base.Setup(character);
|
||||
name = "SE_BatForm";
|
||||
m_name = "Like a Bat out of Hell";
|
||||
m_tooltip = "You have taken the form of a Bat. You can fly, but cannot attack.";
|
||||
m_name = "$rov_se_aswid_batform_name";
|
||||
m_tooltip = "$rov_se_aswid_batform_tooltip";
|
||||
m_fallDamageModifier = -1f; // Immune to fall damage just in case
|
||||
}
|
||||
}
|
||||
|
|
@ -71,8 +71,8 @@ namespace RacesOfValheim
|
|||
{
|
||||
base.Setup(character);
|
||||
name = "SE_MistForm";
|
||||
m_name = "Weight of Shadows";
|
||||
m_tooltip = "You are mist. Immune to physical damage and poison. Cannot attack or run.";
|
||||
m_name = "$rov_se_aswid_mistform_name";
|
||||
m_tooltip = "$rov_se_aswid_mistform_tooltip";
|
||||
m_fallDamageModifier = -1f;
|
||||
m_mods = new System.Collections.Generic.List<HitData.DamageModPair>
|
||||
{
|
||||
|
|
@ -90,7 +90,7 @@ namespace RacesOfValheim
|
|||
{
|
||||
base.Setup(character);
|
||||
name = "SE_AswidSensesMark";
|
||||
m_name = "Sensed";
|
||||
m_name = "$rov_se_aswid_sensed_name";
|
||||
m_tooltip = "";
|
||||
m_ttl = 2f;
|
||||
m_icon = null; // No icon needed for mobs
|
||||
|
|
@ -103,8 +103,8 @@ namespace RacesOfValheim
|
|||
{
|
||||
base.Setup(character);
|
||||
name = "SE_SuperhumanSenses";
|
||||
m_name = "Auspex";
|
||||
m_tooltip = "Sensing life force of nearby creatures.";
|
||||
m_name = "$rov_se_aswid_auspex_name";
|
||||
m_tooltip = "$rov_se_aswid_auspex_tooltip";
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -132,7 +132,7 @@ namespace RacesOfValheim
|
|||
|
||||
var sensesMark = ScriptableObject.CreateInstance<SE_AswidSensesMark>();
|
||||
sensesMark.name = "SE_AswidSensesMark";
|
||||
sensesMark.m_name = "Sensed";
|
||||
sensesMark.m_name = "$rov_se_aswid_sensed_name";
|
||||
sensesMark.m_ttl = 2f;
|
||||
ItemManager.Instance.AddStatusEffect(new CustomStatusEffect(sensesMark, fixReference: false));
|
||||
|
||||
|
|
|
|||
|
|
@ -22,7 +22,7 @@ namespace RacesOfValheim
|
|||
// Invert the Wet debuff to actually heal the Draugh
|
||||
__instance.m_healthRegenMultiplier = DraughConfig.WetHealthRegenMultiplier.Value;
|
||||
__instance.m_staminaRegenMultiplier = 1f; // No stamina penalty
|
||||
__instance.m_tooltip = "The water restores your rotten flesh. Health regeneration increased.";
|
||||
__instance.m_tooltip = "$rov_se_draugh_wet_tooltip";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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));
|
||||
}
|
||||
|
|
|
|||
|
|
@ -42,8 +42,8 @@ namespace RacesOfValheim {
|
|||
|
||||
curseSE = ScriptableObject.CreateInstance<SE_FenrirCurse>();
|
||||
curseSE.name = "SE_FenrirCurse";
|
||||
curseSE.m_name = "Fenrir's Blood";
|
||||
curseSE.m_tooltip = "You are of the Fenrir race.";
|
||||
curseSE.m_name = "$rov_se_fenrir_curse_name";
|
||||
curseSE.m_tooltip = "$rov_se_fenrir_curse_tooltip";
|
||||
curseSE.m_mods = new System.Collections.Generic.List<HitData.DamageModPair>()
|
||||
{
|
||||
new HitData.DamageModPair() { m_type = HitData.DamageType.Spirit, m_modifier = HitData.DamageModifier.Weak }
|
||||
|
|
@ -64,19 +64,19 @@ namespace RacesOfValheim {
|
|||
|
||||
fenrirCdSE = ScriptableObject.CreateInstance<SE_FormCooldown>();
|
||||
fenrirCdSE.name = "SE_FenrirCooldown";
|
||||
fenrirCdSE.m_name = "Fenrir Form Cooldown";
|
||||
fenrirCdSE.m_name = "$rov_se_fenrir_formcd_name";
|
||||
fenrirCdSE.m_icon = fenringTrophyIcon;
|
||||
ItemManager.Instance.AddStatusEffect(new CustomStatusEffect(fenrirCdSE, fixReference: false));
|
||||
|
||||
cultistCdSE = ScriptableObject.CreateInstance<SE_FormCooldown>();
|
||||
cultistCdSE.name = "SE_CultistCooldown";
|
||||
cultistCdSE.m_name = "Cultist Form Cooldown";
|
||||
cultistCdSE.m_name = "$rov_se_fenrir_cultistcd_name";
|
||||
cultistCdSE.m_icon = fenringTrophyIcon;
|
||||
ItemManager.Instance.AddStatusEffect(new CustomStatusEffect(cultistCdSE, fixReference: false));
|
||||
|
||||
formBuffSE = ScriptableObject.CreateInstance<SE_Stats>();
|
||||
formBuffSE.name = "SE_FenrirForm";
|
||||
formBuffSE.m_name = "Bestial Fury";
|
||||
formBuffSE.m_name = "$rov_se_fenrir_form_name";
|
||||
formBuffSE.m_speedModifier = FenrirConfig.FullFormSpeedBonus.Value;
|
||||
formBuffSE.m_jumpModifier = new Vector3(0, FenrirConfig.FullFormJumpBonus.Value, 0);
|
||||
formBuffSE.m_fallDamageModifier = -FenrirConfig.FullFormFallDamageReduction.Value;
|
||||
|
|
@ -87,7 +87,7 @@ namespace RacesOfValheim {
|
|||
|
||||
cultistFormBuffSE = ScriptableObject.CreateInstance<SE_Stats>();
|
||||
cultistFormBuffSE.name = "SE_CultistForm";
|
||||
cultistFormBuffSE.m_name = "Cultist Fury";
|
||||
cultistFormBuffSE.m_name = "$rov_se_fenrir_cultistform_name";
|
||||
cultistFormBuffSE.m_speedModifier = FenrirConfig.FullFormSpeedBonus.Value;
|
||||
cultistFormBuffSE.m_jumpModifier = new Vector3(0, FenrirConfig.FullFormJumpBonus.Value, 0);
|
||||
cultistFormBuffSE.m_fallDamageModifier = -FenrirConfig.FullFormFallDamageReduction.Value;
|
||||
|
|
@ -98,7 +98,7 @@ namespace RacesOfValheim {
|
|||
|
||||
wolfFormBuffSE = ScriptableObject.CreateInstance<SE_Stats>();
|
||||
wolfFormBuffSE.name = "SE_WolfForm";
|
||||
wolfFormBuffSE.m_name = "Wolf Senses";
|
||||
wolfFormBuffSE.m_name = "$rov_se_fenrir_wolfform_name";
|
||||
wolfFormBuffSE.m_speedModifier = FenrirConfig.WolfFormSpeedBonus.Value;
|
||||
wolfFormBuffSE.m_fallDamageModifier = -FenrirConfig.WolfFormFallDamageReduction.Value;
|
||||
wolfFormBuffSE.m_staminaRegenMultiplier = FenrirConfig.FormStaminaRegenMultiplier.Value;
|
||||
|
|
|
|||
|
|
@ -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));
|
||||
|
|
|
|||
|
|
@ -58,7 +58,7 @@ namespace RacesOfValheim
|
|||
|
||||
var se = ScriptableObject.CreateInstance<SE_SkadiStats>();
|
||||
se.name = "SE_SkadiStats";
|
||||
se.m_name = "Skadi's Blessing";
|
||||
se.m_name = "$rov_se_skadi_stats_name";
|
||||
|
||||
// Icon
|
||||
GameObject drakeTrophy = PrefabManager.Cache.GetPrefab<ItemDrop>("TrophyHatchling")?.gameObject;
|
||||
|
|
@ -81,14 +81,14 @@ namespace RacesOfValheim
|
|||
|
||||
skadiCdSE = ScriptableObject.CreateInstance<SE_FormCooldown>();
|
||||
skadiCdSE.name = "SE_SkadiCooldown";
|
||||
skadiCdSE.m_name = "Dragon Form Cooldown";
|
||||
skadiCdSE.m_name = "$rov_se_skadi_formcd_name";
|
||||
skadiCdSE.m_icon = dragonIcon;
|
||||
ItemManager.Instance.AddStatusEffect(new CustomStatusEffect(skadiCdSE, fixReference: false));
|
||||
|
||||
skadiFormSE = ScriptableObject.CreateInstance<SE_SkadiForm>();
|
||||
skadiFormSE.name = "SE_SkadiForm";
|
||||
skadiFormSE.m_name = "Dragon Form";
|
||||
skadiFormSE.m_tooltip = "Your dragon shape holds for a while longer.";
|
||||
skadiFormSE.m_name = "$rov_se_skadi_form_name";
|
||||
skadiFormSE.m_tooltip = "$rov_se_skadi_form_tooltip";
|
||||
skadiFormSE.m_icon = dragonIcon;
|
||||
ItemManager.Instance.AddStatusEffect(new CustomStatusEffect(skadiFormSE, fixReference: false));
|
||||
|
||||
|
|
@ -96,15 +96,15 @@ namespace RacesOfValheim
|
|||
// differently from a dragon attack on cooldown at a glance.
|
||||
var spellCd = ScriptableObject.CreateInstance<SE_SkadiAbilityCooldown>();
|
||||
spellCd.name = SPELL_COOLDOWN_SE;
|
||||
spellCd.m_name = "Cold Spell";
|
||||
spellCd.m_tooltip = "The frost must gather again before you may cast.";
|
||||
spellCd.m_name = "$rov_se_skadi_coldspellcd_name";
|
||||
spellCd.m_tooltip = "$rov_se_skadi_coldspellcd_tooltip";
|
||||
spellCd.m_icon = GetItemIcon("StaffIceShards") ?? dragonIcon;
|
||||
ItemManager.Instance.AddStatusEffect(new CustomStatusEffect(spellCd, fixReference: false));
|
||||
|
||||
var attackCd = ScriptableObject.CreateInstance<SE_SkadiAbilityCooldown>();
|
||||
attackCd.name = ATTACK_COOLDOWN_SE;
|
||||
attackCd.m_name = "Dragon Attack";
|
||||
attackCd.m_tooltip = "Your dragon shape must ready itself to strike again.";
|
||||
attackCd.m_name = "$rov_se_skadi_dragonattackcd_name";
|
||||
attackCd.m_tooltip = "$rov_se_skadi_dragonattackcd_tooltip";
|
||||
attackCd.m_icon = GetItemIcon("TrophyHatchling") ?? dragonIcon;
|
||||
ItemManager.Instance.AddStatusEffect(new CustomStatusEffect(attackCd, fixReference: false));
|
||||
}
|
||||
|
|
|
|||
|
|
@ -23,8 +23,8 @@ namespace RacesOfValheim
|
|||
{
|
||||
base.Setup(character);
|
||||
name = "SE_SkadiStats";
|
||||
m_name = "Skadi's Aura";
|
||||
m_tooltip = "Empowered by the frost.";
|
||||
m_name = "$rov_se_skadi_aura_name";
|
||||
m_tooltip = "$rov_se_skadi_aura_tooltip";
|
||||
}
|
||||
|
||||
// What the last UpdateStats call actually wrote. SEMan.AddStatusEffect stores a Clone() of
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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));
|
||||
}
|
||||
|
|
|
|||
62
JotunnModStub/Translations/English/status_effects.json
Normal file
62
JotunnModStub/Translations/English/status_effects.json
Normal file
|
|
@ -0,0 +1,62 @@
|
|||
{
|
||||
"rov_se_aswid_auspex_name": "Auspex",
|
||||
"rov_se_aswid_auspex_tooltip": "Sensing life force of nearby creatures.",
|
||||
"rov_se_aswid_batform_name": "Like a Bat out of Hell",
|
||||
"rov_se_aswid_batform_tooltip": "You have taken the form of a Bat. You can fly, but cannot attack.",
|
||||
"rov_se_aswid_bloodpotion_tooltip": "Stomachs filled with blood. Healing $1% over $2 seconds.",
|
||||
"rov_se_aswid_mistform_name": "Weight of Shadows",
|
||||
"rov_se_aswid_mistform_tooltip": "You are mist. Immune to physical damage and poison. Cannot attack or run.",
|
||||
"rov_se_aswid_nightaura_name": "Night Aura",
|
||||
"rov_se_aswid_nightaura_tooltip": "The cold strengthens your beastly senses.",
|
||||
"rov_se_aswid_sensed_name": "Sensed",
|
||||
"rov_se_aswid_stats_name": "Benedictus et Afflictus",
|
||||
"rov_se_aswid_stats_tooltip": "Vampiric senses and life drain.",
|
||||
"rov_se_claws_tooltip": "Your claws are out. They retract when this runs out.",
|
||||
"rov_se_draugh_wet_tooltip": "The water restores your rotten flesh. Health regeneration increased.",
|
||||
"rov_se_dvergar_overcharge_name": "Runic Overcharge",
|
||||
"rov_se_dvergar_overcharge_tooltip": "Your next blow with a favoured weapon carries the whole of the charge.",
|
||||
"rov_se_dvergar_overchargecd_name": "Overcharge Cooldown",
|
||||
"rov_se_dvergar_overchargecd_tooltip": "The runes are spent.",
|
||||
"rov_se_dvergar_pingcd_name": "Runic Ping",
|
||||
"rov_se_dvergar_pingcd_tooltip": "The runes must settle before you may call on them again.",
|
||||
"rov_se_dvergar_stats_name": "Stone and Forge",
|
||||
"rov_se_dvergar_stats_tooltip": "Small, sturdy, and born to the anvil.",
|
||||
"rov_se_fenrir_cultistcd_name": "Cultist Form Cooldown",
|
||||
"rov_se_fenrir_cultistform_name": "Cultist Fury",
|
||||
"rov_se_fenrir_curse_name": "Fenrir's Blood",
|
||||
"rov_se_fenrir_curse_tooltip": "You are of the Fenrir race.",
|
||||
"rov_se_fenrir_form_name": "Bestial Fury",
|
||||
"rov_se_fenrir_formcd_name": "Fenrir Form Cooldown",
|
||||
"rov_se_fenrir_wolfform_name": "Wolf Senses",
|
||||
"rov_se_skadi_aura_name": "Skadi's Aura",
|
||||
"rov_se_skadi_aura_tooltip": "Empowered by the frost.",
|
||||
"rov_se_skadi_coldspellcd_name": "Cold Spell",
|
||||
"rov_se_skadi_coldspellcd_tooltip": "The frost must gather again before you may cast.",
|
||||
"rov_se_skadi_dragonattackcd_name": "Dragon Attack",
|
||||
"rov_se_skadi_dragonattackcd_tooltip": "Your dragon shape must ready itself to strike again.",
|
||||
"rov_se_skadi_form_name": "Dragon Form",
|
||||
"rov_se_skadi_form_tooltip": "Your dragon shape holds for a while longer.",
|
||||
"rov_se_skadi_formcd_name": "Dragon Form Cooldown",
|
||||
"rov_se_skadi_stats_name": "Skadi's Blessing",
|
||||
"rov_se_skeleton_resurrectcd_name": "Resurrection Cooldown",
|
||||
"rov_se_skeleton_resurrectcd_tooltip": "Your skeletal body is too weak to resurrect again right now.",
|
||||
"rov_se_skeleton_stats_name": "Undead Fortitude",
|
||||
"rov_se_sverm_ravager_name": "Ravager Strain",
|
||||
"rov_se_sverm_ravager_tooltip": "The shell doubles, and nothing that hits it lands the same again.",
|
||||
"rov_se_sverm_ravagercd_name": "Ravager Strain Cooldown",
|
||||
"rov_se_sverm_ravagercd_tooltip": "The strain is spent. It will take again soon.",
|
||||
"rov_se_sverm_stats_name": "Chitin Plating",
|
||||
"rov_se_sverm_stats_tooltip": "Armoured, venomous, and never alone.",
|
||||
"rov_se_trenta_portalcd_name": "Homecoming Portal",
|
||||
"rov_se_trenta_portalcd_tooltip": "The way home has not yet settled enough to open again.",
|
||||
"rov_se_trenta_purpleraincd_name": "Purple Rain",
|
||||
"rov_se_trenta_purpleraincd_tooltip": "The pollen must settle before you may call the rain again.",
|
||||
"rov_se_trenta_stats_name": "Heartwood",
|
||||
"rov_se_trenta_stats_tooltip": "Rooted, patient, and hard to fell.",
|
||||
"rov_se_trol_throwcd_name": "Throw Rock Cooldown",
|
||||
"rov_se_trol_throwcd_tooltip": "You must wait before throwing another rock.",
|
||||
"rov_se_trol_trueform_name": "True Form",
|
||||
"rov_se_trol_trueform_tooltip": "You have unleashed your inner troll!",
|
||||
"rov_se_trol_trueformcd_name": "True Form Cooldown",
|
||||
"rov_se_trol_trueformcd_tooltip": "You are exhausted from your True Form."
|
||||
}
|
||||
62
JotunnModStub/Translations/Italian/status_effects.json
Normal file
62
JotunnModStub/Translations/Italian/status_effects.json
Normal file
|
|
@ -0,0 +1,62 @@
|
|||
{
|
||||
"rov_se_aswid_auspex_name": "Auspex",
|
||||
"rov_se_aswid_auspex_tooltip": "Percepisci la forza vitale delle creature vicine.",
|
||||
"rov_se_aswid_batform_name": "Come un pipistrello dall'inferno",
|
||||
"rov_se_aswid_batform_tooltip": "Hai preso la forma di un pipistrello. Puoi volare, ma non puoi attaccare.",
|
||||
"rov_se_aswid_bloodpotion_tooltip": "Stomaci pieni di sangue. Cura il $1% in $2 secondi.",
|
||||
"rov_se_aswid_mistform_name": "Peso delle ombre",
|
||||
"rov_se_aswid_mistform_tooltip": "Sei nebbia. Immune ai danni fisici e al veleno. Non puoi attaccare né correre.",
|
||||
"rov_se_aswid_nightaura_name": "Aura notturna",
|
||||
"rov_se_aswid_nightaura_tooltip": "Il freddo acuisce i tuoi sensi bestiali.",
|
||||
"rov_se_aswid_sensed_name": "Percepito",
|
||||
"rov_se_aswid_stats_name": "Benedictus et Afflictus",
|
||||
"rov_se_aswid_stats_tooltip": "Sensi vampirici e risucchio vitale.",
|
||||
"rov_se_claws_tooltip": "Hai gli artigli fuori. Si ritraggono quando questo effetto finisce.",
|
||||
"rov_se_draugh_wet_tooltip": "L'acqua ristora la tua carne putrefatta. Rigenerazione della salute aumentata.",
|
||||
"rov_se_dvergar_overcharge_name": "Sovraccarico runico",
|
||||
"rov_se_dvergar_overcharge_tooltip": "Il tuo prossimo colpo con un'arma prediletta scarica tutta la carica.",
|
||||
"rov_se_dvergar_overchargecd_name": "Ricarica del sovraccarico",
|
||||
"rov_se_dvergar_overchargecd_tooltip": "Le rune sono esaurite.",
|
||||
"rov_se_dvergar_pingcd_name": "Richiamo runico",
|
||||
"rov_se_dvergar_pingcd_tooltip": "Le rune devono assestarsi prima che tu possa invocarle di nuovo.",
|
||||
"rov_se_dvergar_stats_name": "Pietra e forgia",
|
||||
"rov_se_dvergar_stats_tooltip": "Piccolo, robusto e nato per l'incudine.",
|
||||
"rov_se_fenrir_cultistcd_name": "Ricarica forma Cultista",
|
||||
"rov_se_fenrir_cultistform_name": "Furia del Cultista",
|
||||
"rov_se_fenrir_curse_name": "Sangue di Fenrir",
|
||||
"rov_se_fenrir_curse_tooltip": "Sei della razza Fenrir.",
|
||||
"rov_se_fenrir_form_name": "Furia bestiale",
|
||||
"rov_se_fenrir_formcd_name": "Ricarica forma Fenrir",
|
||||
"rov_se_fenrir_wolfform_name": "Sensi del lupo",
|
||||
"rov_se_skadi_aura_name": "Aura di Skadi",
|
||||
"rov_se_skadi_aura_tooltip": "Potenziato dal gelo.",
|
||||
"rov_se_skadi_coldspellcd_name": "Incantesimo del freddo",
|
||||
"rov_se_skadi_coldspellcd_tooltip": "Il gelo deve raccogliersi di nuovo prima che tu possa lanciare.",
|
||||
"rov_se_skadi_dragonattackcd_name": "Attacco del drago",
|
||||
"rov_se_skadi_dragonattackcd_tooltip": "La tua forma di drago deve prepararsi prima di colpire ancora.",
|
||||
"rov_se_skadi_form_name": "Forma di drago",
|
||||
"rov_se_skadi_form_tooltip": "La tua forma di drago resiste ancora per un po'.",
|
||||
"rov_se_skadi_formcd_name": "Ricarica forma di drago",
|
||||
"rov_se_skadi_stats_name": "Benedizione di Skadi",
|
||||
"rov_se_skeleton_resurrectcd_name": "Ricarica resurrezione",
|
||||
"rov_se_skeleton_resurrectcd_tooltip": "Il tuo corpo scheletrico è troppo debole per risorgere di nuovo adesso.",
|
||||
"rov_se_skeleton_stats_name": "Tempra non morta",
|
||||
"rov_se_sverm_ravager_name": "Ceppo Devastatore",
|
||||
"rov_se_sverm_ravager_tooltip": "Il guscio raddoppia, e niente di ciò che lo colpisce va a segno come prima.",
|
||||
"rov_se_sverm_ravagercd_name": "Ricarica Ceppo Devastatore",
|
||||
"rov_se_sverm_ravagercd_tooltip": "Il ceppo è esaurito. Attecchirà di nuovo presto.",
|
||||
"rov_se_sverm_stats_name": "Corazza di chitina",
|
||||
"rov_se_sverm_stats_tooltip": "Corazzato, velenoso e mai solo.",
|
||||
"rov_se_trenta_portalcd_name": "Portale del ritorno",
|
||||
"rov_se_trenta_portalcd_tooltip": "La via di casa non si è ancora assestata abbastanza per riaprirsi.",
|
||||
"rov_se_trenta_purpleraincd_name": "Pioggia viola",
|
||||
"rov_se_trenta_purpleraincd_tooltip": "Il polline deve posarsi prima che tu possa richiamare la pioggia.",
|
||||
"rov_se_trenta_stats_name": "Durame",
|
||||
"rov_se_trenta_stats_tooltip": "Radicato, paziente e difficile da abbattere.",
|
||||
"rov_se_trol_throwcd_name": "Ricarica lancio di massi",
|
||||
"rov_se_trol_throwcd_tooltip": "Devi aspettare prima di lanciare un altro masso.",
|
||||
"rov_se_trol_trueform_name": "Vera forma",
|
||||
"rov_se_trol_trueform_tooltip": "Hai scatenato il troll che è in te!",
|
||||
"rov_se_trol_trueformcd_name": "Ricarica vera forma",
|
||||
"rov_se_trol_trueformcd_tooltip": "Sei esausto dopo la tua vera forma."
|
||||
}
|
||||
|
|
@ -16,8 +16,8 @@ namespace RacesOfValheim
|
|||
{
|
||||
base.Setup(character);
|
||||
name = TrentaConfig.StatsSE;
|
||||
m_name = "Heartwood";
|
||||
m_tooltip = "Rooted, patient, and hard to fell.";
|
||||
m_name = "$rov_se_trenta_stats_name";
|
||||
m_tooltip = "$rov_se_trenta_stats_tooltip";
|
||||
|
||||
// Resistant/Weak are exactly ±50% damage taken (0.5x / 1.5x) - verified against
|
||||
// HitData.ApplyModifier's own IL rather than assumed, since the enum names alone
|
||||
|
|
@ -83,7 +83,7 @@ namespace RacesOfValheim
|
|||
{
|
||||
var stats = ScriptableObject.CreateInstance<SE_TrentaStats>();
|
||||
stats.name = TrentaConfig.StatsSE;
|
||||
stats.m_name = "Heartwood";
|
||||
stats.m_name = "$rov_se_trenta_stats_name";
|
||||
stats.m_icon = GetItemIcon("Wood"); // TODO: pick the icon the race should carry
|
||||
|
||||
CustomStatusEffect customStats = new CustomStatusEffect(stats, fixReference: false);
|
||||
|
|
@ -92,15 +92,15 @@ namespace RacesOfValheim
|
|||
|
||||
var purpleRainCd = ScriptableObject.CreateInstance<SE_TrentaAbilityCooldown>();
|
||||
purpleRainCd.name = TrentaConfig.PurpleRainCdSE;
|
||||
purpleRainCd.m_name = "Purple Rain";
|
||||
purpleRainCd.m_tooltip = "The pollen must settle before you may call the rain again.";
|
||||
purpleRainCd.m_name = "$rov_se_trenta_purpleraincd_name";
|
||||
purpleRainCd.m_tooltip = "$rov_se_trenta_purpleraincd_tooltip";
|
||||
purpleRainCd.m_icon = GetItemIcon("TrophyGreydwarfShaman") ?? GetItemIcon("Wood");
|
||||
ItemManager.Instance.AddStatusEffect(new CustomStatusEffect(purpleRainCd, fixReference: false));
|
||||
|
||||
var portalCd = ScriptableObject.CreateInstance<SE_TrentaAbilityCooldown>();
|
||||
portalCd.name = TrentaConfig.PortalCdSE;
|
||||
portalCd.m_name = "Homecoming Portal";
|
||||
portalCd.m_tooltip = "The way home has not yet settled enough to open again.";
|
||||
portalCd.m_name = "$rov_se_trenta_portalcd_name";
|
||||
portalCd.m_tooltip = "$rov_se_trenta_portalcd_tooltip";
|
||||
portalCd.m_icon = GetItemIcon("Wood");
|
||||
ItemManager.Instance.AddStatusEffect(new CustomStatusEffect(portalCd, fixReference: false));
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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