Merge branch 'feat/translations-status-items'

This commit is contained in:
kanym 2026-09-26 20:24:28 +02:00
commit b3641e5bf4
49 changed files with 608 additions and 208 deletions

View file

@ -27,8 +27,8 @@ namespace RacesOfValheim
public const string SuperiorBaseName = "MeadBaseSuperiorBloodPotion";
public const string SuperiorPotionName = "MeadSuperiorBloodPotion";
private const string PotionDisplayName = "Blood Potion";
private const string SuperiorPotionDisplayName = "Superior Blood Potion";
private const string PotionDisplayName = "$rov_item_aswid_bloodpotion_name";
private const string SuperiorPotionDisplayName = "$rov_item_aswid_superiorbloodpotion_name";
private const float HealDuration = 8f;
private const float HealFraction = 0.05f;
@ -54,15 +54,14 @@ namespace RacesOfValheim
SE_BloodPotion superiorDrink = CreateEffect("SE_SuperiorBloodPotion", SuperiorPotionDisplayName,
SuperiorHealFraction, AswidBloodRefinery.SuperiorEssenceName, "MoltenCore");
GameObject meadBase = CloneItem(BaseName, "MeadBaseHealthMinor", "Blood Potion Mead Base",
"Blood, berries and crypt light, waiting on a barrel.");
GameObject meadBase = CloneItem(BaseName, "MeadBaseHealthMinor", "$rov_item_aswid_bloodpotionbase_name",
"$rov_item_aswid_bloodpotionbase_desc");
GameObject potion = CloneItem(PotionName, "MeadHealthMinor", PotionDisplayName,
"Drink and the hunger stops mattering for a while. Fills every stomach with blood essence, " +
"full or not, and knits the flesh back together.");
GameObject superiorBase = CloneItem(SuperiorBaseName, "MeadBaseHealthMedium", "Superior Blood Potion Mead Base",
"The twice-rendered draught, still raw.");
"$rov_item_aswid_bloodpotion_desc");
GameObject superiorBase = CloneItem(SuperiorBaseName, "MeadBaseHealthMedium", "$rov_item_aswid_superiorbloodpotionbase_name",
"$rov_item_aswid_superiorbloodpotionbase_desc");
GameObject superiorPotion = CloneItem(SuperiorPotionName, "MeadHealthMedium", SuperiorPotionDisplayName,
"The same mercy, twice as deep.");
"$rov_item_aswid_superiorbloodpotion_desc");
AttachEffect(potion, drink);
AttachEffect(superiorPotion, superiorDrink);
@ -176,7 +175,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 +286,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

View file

@ -30,10 +30,10 @@ namespace RacesOfValheim
// The Aswid food patches recognise a meal by its display name, so these strings are part
// of the contract with AswidPatches - see IsAswidMeal.
public const string EssenceDisplayName = "Blood Essence";
public const string SuperiorEssenceDisplayName = "Superior Blood Essence";
public const string CoreDisplayName = "Blood Core";
public const string PieceDisplayName = "Blood Refinery";
public const string EssenceDisplayName = "$rov_item_aswid_bloodessence_name";
public const string SuperiorEssenceDisplayName = "$rov_item_aswid_superiorbloodessence_name";
public const string CoreDisplayName = "$rov_item_aswid_bloodcore_name";
public const string PieceDisplayName = "$rov_piece_aswid_bloodrefinery_name";
// Regeneration is tied to the health value rather than set per tier, so 60 hp gives 5 and
// 80 hp gives 6.67 without a second number to keep in sync.
@ -94,7 +94,7 @@ namespace RacesOfValheim
public static bool IsAswidMeal(ItemDrop.ItemData item)
{
if (item == null || item.m_shared == null || item.m_shared.m_name == null) return false;
return item.m_shared.m_name.StartsWith("Aswid Food:")
return item.m_shared.m_name.StartsWith(AswidRace.AswidFoodNamePrefix)
|| item.m_shared.m_name == EssenceDisplayName
|| IsEssence(item);
}
@ -122,8 +122,7 @@ namespace RacesOfValheim
ItemDrop.ItemData.SharedData shared = drop.m_itemData.m_shared;
shared.m_name = CoreDisplayName;
shared.m_description = "A knot of clotted blood kept beating by something that is not a heart. " +
"The dead trade them; only the dead know how they are made.";
shared.m_description = "$rov_item_aswid_bloodcore_desc";
shared.m_itemType = ItemDrop.ItemData.ItemType.Material;
shared.m_food = 0f;
shared.m_foodStamina = 0f;
@ -142,8 +141,7 @@ namespace RacesOfValheim
EssencePrefab = BuildEssence(
EssenceName,
EssenceDisplayName,
"Blood rendered down to what it actually is. The only real food an Aswid can " +
"still chew, and the base of every draught worth brewing.",
"$rov_item_aswid_bloodessence_desc",
food: 60f,
tint: EssenceTint,
iconSource: "GemstoneRed");
@ -151,7 +149,7 @@ namespace RacesOfValheim
SuperiorEssencePrefab = BuildEssence(
SuperiorEssenceName,
SuperiorEssenceDisplayName,
"The same blood, rendered twice. Darker, thicker, and worth five of the first pass.",
"$rov_item_aswid_superiorbloodessence_desc",
food: 80f,
tint: SuperiorEssenceTint,
iconSource: "MoltenCore");
@ -267,7 +265,7 @@ namespace RacesOfValheim
PieceConfig config = new PieceConfig
{
Name = PieceDisplayName,
Description = "Flesh goes in, bone goes in, and what is left of both comes out red.",
Description = "$rov_piece_aswid_bloodrefinery_desc",
PieceTable = PieceTables.Hammer,
Category = PieceCategories.Crafting,
Requirements = new[]

View file

@ -20,8 +20,8 @@ namespace RacesOfValheim
public override string RaceId => "Aswid";
public override string ItemName => "AswidBeastClaws";
public override string DisplayName => "Claws of the Beast";
public override string Description => "Grown in the dark, and darker for it. They do not come off.";
public override string DisplayName => "$rov_item_aswid_claws_name";
public override string Description => "$rov_item_aswid_claws_desc";
// The Bjorn claw first, by name, because that is the one this race is meant to wear. The
// rest are the near-identical ids the manifest also carries - see SvermConfig's own

View file

@ -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)
{

View file

@ -7,6 +7,9 @@ namespace RacesOfValheim
{
public class AswidRace : MonoBehaviour
{
/// <summary>The start of every Aswid food's name, and how those items are told apart.</summary>
public const string AswidFoodNamePrefix = "$rov_item_aswid_food_name";
public static AswidRace Instance { get; private set; }
private static Dictionary<string, string> mobToTrophyMap = new Dictionary<string, string>
@ -117,8 +120,12 @@ namespace RacesOfValheim
string foodName = "AswidFood_" + mobName;
Jotunn.Configs.ItemConfig config = new Jotunn.Configs.ItemConfig();
config.Name = "Aswid Food: " + mobName;
config.Description = "The life force of the conquered.";
// The prefix token and the creature's own vanilla token ("$enemy_boar"), which the
// game translates too. The prefix is also how the refinery recognises these items -
// see AswidBloodRefinery.IsAswidMeal - so the two must stay the same string.
string mobDisplay = Jotunn.Managers.PrefabManager.Cache.GetPrefab<Character>(mobName)?.m_name;
config.Name = AswidFoodNamePrefix + " " + (string.IsNullOrEmpty(mobDisplay) ? mobName : mobDisplay);
config.Description = "$rov_item_aswid_food_desc";
Jotunn.Entities.CustomItem customItem = null;

View file

@ -156,8 +156,8 @@ namespace RacesOfValheim
ItemDrop itemDrop = clone.GetComponent<ItemDrop>();
if (itemDrop == null) return false;
itemDrop.m_itemData.m_shared.m_name = "Spectral Claw";
itemDrop.m_itemData.m_shared.m_description = "A claw of pure shadow, bound to your rage rather than your grip.";
itemDrop.m_itemData.m_shared.m_name = "$rov_item_aswid_spectralclaw_name";
itemDrop.m_itemData.m_shared.m_description = "$rov_item_aswid_spectralclaw_desc";
itemDrop.m_itemData.m_shared.m_weight = 0f;
itemDrop.m_itemData.m_shared.m_useDurability = false;
itemDrop.m_itemData.m_shared.m_questItem = true; // undroppable, unsellable

View file

@ -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));

View file

@ -42,13 +42,13 @@ namespace RacesOfValheim
// The smith inherits the names the single servant had, so nothing already built is orphaned.
public const string SmithName = "BoneServant";
public const string SmithTableName = "ServantTable";
public const string SmithDisplay = "Bone Smith";
public const string SmithTableDisplay = "Smith's Table";
public const string SmithDisplay = "$rov_creature_bonesmith_name";
public const string SmithTableDisplay = "$rov_piece_smithtable_name";
public const string CookName = "BoneCook";
public const string CookTableName = "CookTable";
public const string CookDisplay = "Bone Cook";
public const string CookTableDisplay = "Cook's Table";
public const string CookDisplay = "$rov_creature_bonecook_name";
public const string CookTableDisplay = "$rov_piece_cooktable_name";
/// <summary>Vanilla's guaranteed-melee skeleton: the plain one rolls its own weapon, and the
/// point here is to have none at all.</summary>
@ -90,7 +90,7 @@ namespace RacesOfValheim
if (RegisterServant(SmithName, SmithDisplay, ButlerFamily.Forge))
{
RegisterTable(SmithTableName, SmithTableDisplay, SmithName, ButlerFamily.Forge,
"A slab of bone and slate, dusted with ore. Something patient waits by the fires.",
"$rov_piece_smithtable_desc",
"Coal");
PieceDensityLimit.Register(SmithTableName, TableSpacing, 1,
@ -114,7 +114,7 @@ namespace RacesOfValheim
if (RegisterServant(CookName, CookDisplay, ButlerFamily.Kitchen))
{
RegisterTable(CookTableName, CookTableDisplay, CookName, ButlerFamily.Kitchen,
"A slab of bone and slate, worn smooth. Something patient waits by the hearth.",
"$rov_piece_cooktable_desc",
"CookedMeat");
PieceDensityLimit.Register(CookTableName, TableSpacing, 1,

View file

@ -72,8 +72,8 @@ namespace RacesOfValheim
ItemDrop.ItemData.SharedData shared = item.ItemDrop.m_itemData.m_shared;
ItemDrop.ItemData.SharedData source = nourishment.m_itemData.m_shared;
shared.m_name = "Human Meat";
shared.m_description = "A piece of somebody. The living gag on it; you do not.";
shared.m_name = "$rov_item_draugh_humanmeat_name";
shared.m_description = "$rov_item_draugh_humanmeat_desc";
// Raw meat is a Material in vanilla, so none of the food fields below would be read
// without this.

View file

@ -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";
}
}
}

View file

@ -25,17 +25,17 @@ namespace RacesOfValheim
{
// ─── Names ───────────────────────────────────────────────────────────
public const string PieceName = "DraughBodyPile";
public const string PieceDisplayName = "Cursed Body Pile";
public const string PieceDisplayName = "$rov_piece_draugh_bodypile_name";
public const string BoneName = "CursedBone";
public const string BoneDisplayName = "Cursed Bone";
public const string BoneDisplayName = "$rov_item_draugh_cursedbone_name";
public const string GreaterBoneName = "GreaterCursedBone";
public const string GreaterBoneDisplayName = "Greater Cursed Bone";
public const string GreaterBoneDisplayName = "$rov_item_draugh_greatercursedbone_name";
public const string ThrallName = "DraughThrall_Draugr";
public const string ThrallEliteName = "DraughThrall_DraugrElite";
public const string ThrallDisplayName = "Draugr Thrall";
public const string ThrallEliteDisplayName = "Draugr Elite Thrall";
public const string ThrallDisplayName = "$rov_creature_draugh_thrall_name";
public const string ThrallEliteDisplayName = "$rov_creature_draugh_thrallelite_name";
// RaisedThrall groups by kind for follower caps and for the roster, so these are the strings
// that decide "is this one an officer" - no longer a display-name comparison.
@ -118,9 +118,9 @@ namespace RacesOfValheim
public static void Register()
{
RegisterBone(BoneName, BoneDisplayName, BoneTint,
"A bone that will not stay quiet. The dead sell them; the dead do not say why.");
"$rov_item_draugh_cursedbone_desc");
RegisterBone(GreaterBoneName, GreaterBoneDisplayName, GreaterBoneTint,
"The same bone, older, and louder. A pile fed one of these starts keeping officers.");
"$rov_item_draugh_greatercursedbone_desc");
RegisterThrall(ThrallName, "Draugr", ThrallDisplayName, KindNormal, MaxFollowers);
RegisterThrall(ThrallEliteName, "Draugr_Elite", ThrallEliteDisplayName, KindElite, MaxEliteFollowers);
@ -263,7 +263,7 @@ namespace RacesOfValheim
PieceManager.Instance.AddPiece(new CustomPiece(prefab, fixReference: false, new PieceConfig
{
Name = PieceDisplayName,
Description = "Feed it and it answers. The dead here are yours, if you are dead enough to ask.",
Description = "$rov_piece_draugh_bodypile_desc",
PieceTable = PieceTables.Hammer,
Category = PieceCategories.Crafting,
Icon = BorrowIcon(TrophyDraugr),

View file

@ -36,7 +36,7 @@ namespace RacesOfValheim
public static class DvergarBanco
{
public const string PieceName = "DvergarContractBank";
public const string PieceDisplayName = "Contract Bank";
public const string PieceDisplayName = "$rov_piece_dvergar_contractbank_name";
public const string RaceId = DvergarConfig.RaceId;
/// <summary>The Queen's drop, mapped to state 7 in BossProgressionManager. Mistlands money for
@ -348,7 +348,7 @@ namespace RacesOfValheim
PieceManager.Instance.AddPiece(new CustomPiece(prefab, fixReference: false, new PieceConfig
{
Name = PieceDisplayName,
Description = "A ledger, a seal and a heap of coin. Sign here and someone else does the dying.",
Description = "$rov_piece_dvergar_contractbank_desc",
PieceTable = PieceTables.Hammer,
Category = PieceCategories.Crafting,
Icon = BorrowIcon("TrophyDvergr"),

View file

@ -33,7 +33,7 @@ namespace RacesOfValheim
public static class DvergarBotte
{
public const string PieceName = "DvergarRuneBarrel";
public const string PieceDisplayName = "Rune Barrel";
public const string PieceDisplayName = "$rov_piece_dvergar_runebarrel_name";
public const string RaceId = DvergarConfig.RaceId;
/// <summary>How many drinks it holds. One dose is one mercenary served, so twenty is four
@ -101,8 +101,7 @@ namespace RacesOfValheim
PieceManager.Instance.AddPiece(new CustomPiece(prefab, fixReference: false, new PieceConfig
{
Name = PieceDisplayName,
Description = "Pour a brew in and the crew drinks. What it does to them is whatever it " +
"would have done to you - if they have the parts for it.",
Description = "$rov_piece_dvergar_runebarrel_desc",
PieceTable = PieceTables.Hammer,
Category = PieceCategories.Crafting,
Icon = BorrowIcon("MeadHealthMinor") ?? BorrowIcon("TrophyDvergr"),

View file

@ -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));
}

View file

@ -19,8 +19,8 @@ namespace RacesOfValheim
public override string RaceId => "Fenrir";
public override string ItemName => "FenrirCursedClaws";
public override string DisplayName => "Cursed Claws";
public override string Description => "The wolf's hands, kept on in the man's shape. They do not come off.";
public override string DisplayName => "$rov_item_fenrir_claws_name";
public override string Description => "$rov_item_fenrir_claws_desc";
public override string[] ModelPrefabs => new[]
{

View file

@ -35,12 +35,12 @@ namespace RacesOfValheim
{
// ─── Names ───────────────────────────────────────────────────────────
public const string PieceName = "FenrirPackTrough";
public const string PieceDisplayName = "Pack Trough";
public const string PieceDisplayName = "$rov_piece_fenrir_packtrough_name";
public const string UlvsblodName = "Ulvsblod";
public const string UlvsblodDisplayName = "Ulvsblod";
public const string UlvsblodDisplayName = "$rov_item_fenrir_ulvsblod_name";
public const string GreaterUlvsblodName = "GreaterUlvsblod";
public const string GreaterUlvsblodDisplayName = "Greater Ulvsblod";
public const string GreaterUlvsblodDisplayName = "$rov_item_fenrir_greaterulvsblod_name";
public const int UlvsblodPrice = 500;
public const int GreaterUlvsblodPrice = 1500;
@ -49,9 +49,9 @@ namespace RacesOfValheim
public const string UlvName = "FenrirPack_Ulv";
public const string FenrirName = "FenrirPack_Fenrir";
public const string WolfDisplayName = "Pack Wolf";
public const string UlvDisplayName = "Ulv";
public const string FenrirDisplayName = "Fenrir";
public const string WolfDisplayName = "$rov_creature_fenrir_packwolf_name";
public const string UlvDisplayName = "$rov_creature_fenrir_packulv_name";
public const string FenrirDisplayName = "$rov_creature_fenrir_packfenrir_name";
public const string KindWolf = "FenrirPackWolf";
public const string KindUlv = "FenrirPackUlv";
@ -140,18 +140,16 @@ namespace RacesOfValheim
public static void Register()
{
RegisterUlvsblod(UlvsblodName, UlvsblodDisplayName, UlvsblodTint,
"Wolf blood, kept warm by something that should not be able to keep anything warm. " +
"The Fenring sell it and do not explain it.");
"$rov_item_fenrir_ulvsblod_desc");
RegisterUlvsblod(GreaterUlvsblodName, GreaterUlvsblodDisplayName, GreaterUlvsblodTint,
"Older blood, and further down the line. A trough given one of these starts raising " +
"something worse than ulv.");
"$rov_item_fenrir_greaterulvsblod_desc");
RegisterPackAnimal(WolfName, "Wolf", WolfDisplayName, KindWolf,
"It answers to the blood of the wolf, not to you.", 1f);
"$rov_creature_fenrir_pack_desc", 1f);
RegisterPackAnimal(UlvName, "Ulv", UlvDisplayName, KindUlv,
"It answers to the blood of the wolf, not to you.", 1f);
"$rov_creature_fenrir_pack_desc", 1f);
RegisterPackAnimal(FenrirName, "Fenring", FenrirDisplayName, KindFenrir,
"Only the blood of the wolf commands this one.", FenrirScale);
"$rov_creature_fenrir_packfenrir_desc", FenrirScale);
RegisterPiece();
@ -338,7 +336,7 @@ namespace RacesOfValheim
PieceManager.Instance.AddPiece(new CustomPiece(prefab, fixReference: false, new PieceConfig
{
Name = PieceDisplayName,
Description = "Fill it with meat and the pack comes. One at a time, and it remembers its dead.",
Description = "$rov_piece_fenrir_packtrough_desc",
PieceTable = PieceTables.Hammer,
Category = PieceCategories.Crafting,
Icon = BorrowIcon("TrophyFenring"),

View file

@ -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;

View file

@ -65,27 +65,27 @@ namespace RacesOfValheim
{
new MetalCrop
{
Metal = "Copper", FlaxName = "CopperFlax", FlaxDisplay = "Copper Flax",
DustName = "CopperDust", DustDisplay = "Copper Dust",
Metal = "Copper", FlaxName = "CopperFlax", FlaxDisplay = "$rov_item_furling_copperflax_name",
DustName = "CopperDust", DustDisplay = "$rov_item_furling_copperdust_name",
PickableName = "Pickable_CopperFlax", SaplingName = "sapling_copperflax",
SaplingDisplay = "Copper Flax", OrePrefab = "CopperOre",
SaplingDisplay = "$rov_piece_furling_copperflaxsapling_name", OrePrefab = "CopperOre",
Tint = new Color(0.72f, 0.45f, 0.20f, 1f),
},
new MetalCrop
{
Metal = "Tin", FlaxName = "TinFlax", FlaxDisplay = "Tin Flax",
DustName = "TinDust", DustDisplay = "Tin Dust",
Metal = "Tin", FlaxName = "TinFlax", FlaxDisplay = "$rov_item_furling_tinflax_name",
DustName = "TinDust", DustDisplay = "$rov_item_furling_tindust_name",
PickableName = "Pickable_TinFlax", SaplingName = "sapling_tinflax",
SaplingDisplay = "Tin Flax", OrePrefab = "TinOre",
SaplingDisplay = "$rov_piece_furling_tinflaxsapling_name", OrePrefab = "TinOre",
Tint = new Color(0.80f, 0.82f, 0.85f, 1f),
},
new MetalCrop
{
Metal = "Iron", FlaxName = "IronFlax", FlaxDisplay = "Iron Flax",
DustName = "IronDust", DustDisplay = "Iron Dust",
Metal = "Iron", FlaxName = "IronFlax", FlaxDisplay = "$rov_item_furling_ironflax_name",
DustName = "IronDust", DustDisplay = "$rov_item_furling_irondust_name",
PickableName = "Pickable_IronFlax", SaplingName = "sapling_ironflax",
// Iron's raw form is IronScrap, not "IronOre" - there is no IronOre prefab.
SaplingDisplay = "Iron Flax", OrePrefab = "IronScrap",
SaplingDisplay = "$rov_piece_furling_ironflaxsapling_name", OrePrefab = "IronScrap",
Tint = new Color(0.35f, 0.36f, 0.38f, 1f),
},
};
@ -104,18 +104,29 @@ namespace RacesOfValheim
{
new RockBerry
{
BerryName = "Stoneberry", BerryDisplay = "Stoneberry",
BushName = "StoneberryBush", BushDisplay = "Stoneberry Bush",
BerryName = "Stoneberry", BerryDisplay = "$rov_item_furling_stoneberry_name",
BushName = "StoneberryBush", BushDisplay = "$rov_piece_furling_stoneberrybush_name",
YieldPrefab = "Stone", Tint = new Color(0.55f, 0.55f, 0.55f, 1f),
},
new RockBerry
{
BerryName = "Flintberry", BerryDisplay = "Flintberry",
BushName = "FlintberryBush", BushDisplay = "Flintberry Bush",
BerryName = "Flintberry", BerryDisplay = "$rov_item_furling_flintberry_name",
BushName = "FlintberryBush", BushDisplay = "$rov_piece_furling_flintberrybush_name",
YieldPrefab = "Flint", Tint = new Color(0.30f, 0.32f, 0.35f, 1f),
},
};
/// <summary>
/// The description token that goes with a name token: "$rov_item_furling_tinflax_name" gives
/// "$rov_item_furling_tinflax_desc". One whole sentence per crop in the translation files,
/// rather than one sentence with the metal dropped in, so a translator can decline the metal
/// or move it wherever their language wants it.
/// </summary>
private static string DescriptionFor(string nameToken)
{
return nameToken.EndsWith("_name") ? nameToken.Substring(0, nameToken.Length - 5) + "_desc" : nameToken;
}
public static void Register()
{
foreach (MetalCrop crop in Crops) RegisterCrop(crop);
@ -151,8 +162,7 @@ namespace RacesOfValheim
ItemDrop.ItemData.SharedData shared = drop.m_itemData.m_shared;
shared.m_name = crop.FlaxDisplay;
shared.m_description = $"Flax grown in {crop.Metal.ToLowerInvariant()}-poisoned soil, and it took. " +
"Useless as cloth. Grind it and see.";
shared.m_description = DescriptionFor(crop.FlaxDisplay);
// Teleportable is inherited from Flax and left alone on purpose: the flax travels, the
// dust does not. That asymmetry is the whole point of the chain.
@ -177,8 +187,7 @@ namespace RacesOfValheim
ItemDrop.ItemData.SharedData shared = drop.m_itemData.m_shared;
shared.m_name = crop.DustDisplay;
shared.m_description = $"A sack of {crop.Metal.ToLowerInvariant()} ground fine. " +
"A furnace cannot tell it from ore, and it will not go through a portal either.";
shared.m_description = DescriptionFor(crop.DustDisplay);
shared.m_itemType = ItemDrop.ItemData.ItemType.Material;
shared.m_food = 0f;
shared.m_foodStamina = 0f;
@ -280,7 +289,7 @@ namespace RacesOfValheim
PieceManager.Instance.AddPiece(new CustomPiece(prefab, fixReference: false, new PieceConfig
{
Name = crop.SaplingDisplay,
Description = $"Plant it and it grows more {crop.FlaxDisplay}.",
Description = DescriptionFor(crop.SaplingDisplay),
PieceTable = PieceTables.Cultivator,
Requirements = new[] { new RequirementConfig(crop.FlaxName, 1, 0, true) },
}));
@ -310,7 +319,7 @@ namespace RacesOfValheim
ItemDrop.ItemData.SharedData shared = drop.m_itemData.m_shared;
shared.m_name = berry.BerryDisplay;
shared.m_description = $"Not a berry, whatever it looks like. Bury one and a {berry.YieldPrefab.ToLowerInvariant()}-bearing bush comes up.";
shared.m_description = DescriptionFor(berry.BerryDisplay);
// Inedible, as designed. Material with every food value at zero also keeps it clear of
// the Trenta's vegan check and of the Aswid/Skeleton food gates, all three of which only
@ -385,7 +394,7 @@ namespace RacesOfValheim
PieceManager.Instance.AddPiece(new CustomPiece(prefab, fixReference: false, new PieceConfig
{
Name = berry.BushDisplay,
Description = $"Yields {berry.YieldPrefab.ToLowerInvariant()}, and keeps yielding it.",
Description = DescriptionFor(berry.BushDisplay),
PieceTable = PieceTables.Cultivator,
// The one thing that was actually missing the first time round.
Icon = BorrowIcon(berry.YieldPrefab),

View file

@ -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));

View file

@ -46,8 +46,8 @@ namespace RacesOfValheim
PieceConfig config = new PieceConfig
{
Name = "Race Menu Ward",
Description = "Commune with your heritage. Offer a fallen boss's relic to claim its power.",
Name = "$rov_piece_racemenuward_name",
Description = "$rov_piece_racemenuward_desc",
PieceTable = PieceTables.Hammer,
Category = PieceCategories.Misc,
// Deliberately trivial: this is a utility the player needs early, not a reward.
@ -167,7 +167,7 @@ namespace RacesOfValheim
// serialised m_hoverOffset, which is 0 unless the prefab sets one, so 0 is vanilla behaviour.
public float GetHoverOffset() => 0f;
public string GetHoverName() => "Race Menu Ward";
public string GetHoverName() => "$rov_piece_racemenuward_name";
public string GetHoverText()
{
@ -266,7 +266,7 @@ namespace RacesOfValheim
Image bg = panel.AddComponent<Image>();
bg.color = new Color(0f, 0f, 0f, 0.85f);
AddLabel("Title", "Race Menu Ward", 46, new Vector2(0, 230), new Vector2(700, 90));
AddLabel("Title", ModText.Get("rov_piece_racemenuward_name"), 46, new Vector2(0, 230), new Vector2(700, 90));
AddLabel("Status", BuildStatusText(), 24, new Vector2(0, 110), new Vector2(900, 160));

View file

@ -18,7 +18,7 @@ namespace RacesOfValheim
public static class SkadiFrostHeart
{
public const string PrefabName = "GreaterFrostHeart";
public const string DisplayName = "Greater Frost Heart";
public const string DisplayName = "$rov_item_skadi_greaterfrostheart_name";
public const int Price = 1500;
private const string SourcePrefab = "FreezeGland";
@ -43,7 +43,7 @@ namespace RacesOfValheim
ItemDrop.ItemData.SharedData shared = drop.m_itemData.m_shared;
shared.m_name = DisplayName;
shared.m_description = "Older cold than the mountain's. The cultists sell it and will not say where they dig.";
shared.m_description = "$rov_item_skadi_greaterfrostheart_desc";
shared.m_itemType = ItemDrop.ItemData.ItemType.Material;
shared.m_weight = 0.5f;
shared.m_maxStackSize = 10;

View file

@ -39,7 +39,7 @@ namespace RacesOfValheim
// ─── Names ───────────────────────────────────────────────────────────
public const string GolemName = "SkadiCrystalGolem";
public const string SeedPieceName = "SkadiCrystalGolemSeed";
public const string DisplayName = "Crystal Golem";
public const string DisplayName = "$rov_creature_skadi_crystalgolem_name";
private const string SourceGolem = "StoneGolem";
@ -271,8 +271,7 @@ namespace RacesOfValheim
PieceManager.Instance.AddPiece(new CustomPiece(prefab, fixReference: false, new PieceConfig
{
Name = DisplayName,
Description = "Cut at the stone and woken with a tear. It will not follow you, and it " +
"will not leave the stonecutter that shaped it.",
Description = "$rov_piece_skadi_crystalgolem_desc",
PieceTable = PieceTables.Hammer,
Category = PieceCategories.Crafting,
// The stonecutter is the station, so vanilla itself refuses to place one anywhere its

View file

@ -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));
}

View file

@ -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

View file

@ -33,29 +33,29 @@ namespace RacesOfValheim
{
// ─── Names ───────────────────────────────────────────────────────────
public const string PieceName = "SkeletonBonePile";
public const string PieceDisplayName = "Bound Bone Pile";
public const string PieceDisplayName = "$rov_piece_skeleton_bonepile_name";
// The Soul Stone: a green ruby, sold by the Skeleton bench, and the thing that binds a skull and
// ten fragments into a sentry that cannot walk. Cheap on purpose - 50 coins - because the real
// cost of a sentry is the skull, which has to be taken off a skeleton rather than bought.
public const string SoulStoneName = "SoulStone";
public const string SoulStoneDisplayName = "Soul Stone";
public const string SoulStoneDisplayName = "$rov_item_skeleton_soulstone_name";
public const int SoulStonePrice = 50;
private static readonly Color SoulStoneTint = new Color(0.15f, 0.85f, 0.35f, 1f);
public const string SkullName = "CursedSkull";
public const string SkullDisplayName = "Cursed Skull";
public const string SkullDisplayName = "$rov_item_skeleton_cursedskull_name";
public const string GreaterSkullName = "GreaterCursedSkull";
public const string GreaterSkullDisplayName = "Greater Cursed Skull";
public const string GreaterSkullDisplayName = "$rov_item_skeleton_greatercursedskull_name";
public const string ThrallMeleeName = "SkeletonThrall_Melee";
public const string ThrallRangedName = "SkeletonThrall_Ranged";
public const string ThrallRancidName = "SkeletonThrall_Rancid";
public const string ThrallMeleeDisplay = "Bound Skeleton";
public const string ThrallRangedDisplay = "Bound Archer";
public const string ThrallRancidDisplay = "Bound Rancid Remains";
public const string ThrallMeleeDisplay = "$rov_creature_skeleton_thrallmelee_name";
public const string ThrallRangedDisplay = "$rov_creature_skeleton_thrallranged_name";
public const string ThrallRancidDisplay = "$rov_creature_skeleton_thrallrancid_name";
public const string KindMelee = "SkeletonMelee";
public const string KindRanged = "SkeletonRanged";
@ -119,9 +119,9 @@ namespace RacesOfValheim
public static void Register()
{
RegisterSkull(SkullName, SkullDisplayName, SkullTint,
"A skull that keeps counting. Set it down and the ground starts answering.");
"$rov_item_skeleton_cursedskull_desc");
RegisterSkull(GreaterSkullName, GreaterSkullDisplayName, GreaterSkullTint,
"Older, and it counts higher. A pile given one of these raises the rotten too.");
"$rov_item_skeleton_greatercursedskull_desc");
RegisterSoulStone();
@ -191,8 +191,7 @@ namespace RacesOfValheim
ItemDrop.ItemData.SharedData shared = drop.m_itemData.m_shared;
shared.m_name = SoulStoneDisplayName;
shared.m_description = "Something is still in there, and it is still angry. Bind it to a skull " +
"and it will stand watch as long as the bones hold.";
shared.m_description = "$rov_item_skeleton_soulstone_desc";
shared.m_itemType = ItemDrop.ItemData.ItemType.Material;
shared.m_weight = 0.5f;
shared.m_maxStackSize = 20;
@ -339,7 +338,7 @@ namespace RacesOfValheim
PieceManager.Instance.AddPiece(new CustomPiece(prefab, fixReference: false, new PieceConfig
{
Name = PieceDisplayName,
Description = "Twenty fragments buy a place in the line. The one who fills it will keep standing up.",
Description = "$rov_piece_skeleton_bonepile_desc",
PieceTable = PieceTables.Hammer,
Category = PieceCategories.Crafting,
Icon = BorrowIcon("TrophySkeleton"),

View file

@ -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;

View file

@ -26,7 +26,7 @@ namespace RacesOfValheim
{
public const string SentryName = "SkeletonSentry";
public const string SeedPieceName = "SkeletonSentrySeed";
public const string DisplayName = "Bound Sentry";
public const string DisplayName = "$rov_creature_skeleton_sentry_name";
/// <summary>Seconds without being hit before it starts closing its wounds.</summary>
public const float RegenDelay = 10f;
@ -157,7 +157,7 @@ namespace RacesOfValheim
PieceManager.Instance.AddPiece(new CustomPiece(prefab, fixReference: false, new PieceConfig
{
Name = DisplayName,
Description = "A skull on a soul stone. It will not walk, and it will not stop watching.",
Description = "$rov_piece_skeleton_sentry_desc",
PieceTable = PieceTables.Hammer,
Category = PieceCategories.Crafting,
Icon = BorrowIcon("TrophySkeleton"),

View file

@ -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;

View file

@ -22,7 +22,7 @@ namespace RacesOfValheim
public static class SvermBlisterTick
{
public const string PrefabName = "SvermBlisterTick";
public const string DisplayName = "Blister Tick";
public const string DisplayName = "$rov_creature_sverm_blistertick_name";
private const string SourcePrefab = "Tick";
/// <summary>How many slots this nest has bought. Permanent, and the respawn reads it.</summary>

View file

@ -42,7 +42,7 @@ namespace RacesOfValheim
/// longer resolve. The display name below is the only half a player ever reads.
/// </summary>
public const string ItemName = "SvermMaulclaws";
public const string ItemDisplayName = "Chitin Claws";
public const string ItemDisplayName = "$rov_item_sverm_claws_name";
/// <summary>Row in the reserved column the claws sit on. The other three await the carapace.</summary>
private const int ClawRow = 0;
@ -80,7 +80,7 @@ namespace RacesOfValheim
{
ItemDrop.ItemData.SharedData shared = drop.m_itemData.m_shared;
shared.m_name = ItemDisplayName;
shared.m_description = "Grown, not forged. They do not come off.";
shared.m_description = "$rov_item_sverm_claws_desc";
// Quest item: Valheim refuses to drop, trade or stack these. It is the cheapest
// honest way to say "this is part of your body" without a patch per verb.

View file

@ -444,7 +444,7 @@ namespace RacesOfValheim
public static readonly float MarketSize = 1.6f; // metres, the borrowed model's largest side
// ─── Seeker Worker ───────────────────────────────────────────────────
public const string WorkerDisplayName = "Seeker Worker";
public const string WorkerDisplayName = "$rov_creature_sverm_worker_name";
public static readonly float WorkerScale = 0.5f;
public static readonly float WorkerHealthFraction = 0.5f;
public static readonly float WorkerDamageFraction = 0.5f;

View file

@ -95,7 +95,7 @@ namespace RacesOfValheim
// station ends up unplaceable with no error.
Piece piece = prefab.GetComponent<Piece>() ?? prefab.AddComponent<Piece>();
piece.m_name = DisplayName;
piece.m_description = "The colony begins here. Everything else grows out of it.";
piece.m_description = "$rov_piece_sverm_broodmound_desc";
piece.m_groundPiece = true;
piece.m_groundOnly = true;
piece.m_cultivatedGroundOnly = false;

View file

@ -258,7 +258,7 @@ namespace RacesOfValheim
public static class SvermHiveMarketPiece
{
public const string PieceName = "SvermHiveMarket";
public const string DisplayName = "Hive Market";
public const string DisplayName = "$rov_piece_sverm_hivemarket_name";
/// <summary>Scenery only, and checked rather than trusted - see SvermHive.MouthCandidates.</summary>
private static readonly string[] SourceCandidates =
@ -325,7 +325,7 @@ namespace RacesOfValheim
piece.m_craftingStation = null;
piece.m_resources = new Piece.Requirement[0];
piece.m_name = DisplayName;
piece.m_description = "Where the colony trades. It spends the tank of the nest it stands in.";
piece.m_description = "$rov_piece_sverm_hivemarket_desc";
piece.m_groundPiece = true;
piece.m_groundOnly = true;
piece.m_canBeRemoved = true;

View file

@ -101,6 +101,6 @@ namespace RacesOfValheim
public static class SvermHiveNames
{
public const string PieceName = "SvermBroodMound";
public const string PieceDisplayName = "Brood Mound";
public const string PieceDisplayName = "$rov_piece_sverm_broodmound_name";
}
}

View file

@ -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));
}

View file

@ -0,0 +1,131 @@
{
"rov_creature_bonecook_name": "Bone Cook",
"rov_creature_bonesmith_name": "Bone Smith",
"rov_creature_draugh_thrall_name": "Draugr Thrall",
"rov_creature_draugh_thrallelite_name": "Draugr Elite Thrall",
"rov_creature_fenrir_pack_desc": "It answers to the blood of the wolf, not to you.",
"rov_creature_fenrir_packfenrir_desc": "Only the blood of the wolf commands this one.",
"rov_creature_fenrir_packfenrir_name": "Fenrir",
"rov_creature_fenrir_packulv_name": "Ulv",
"rov_creature_fenrir_packwolf_name": "Pack Wolf",
"rov_creature_skadi_crystalgolem_name": "Crystal Golem",
"rov_creature_skeleton_sentry_name": "Bound Sentry",
"rov_creature_skeleton_thrallmelee_name": "Bound Skeleton",
"rov_creature_skeleton_thrallrancid_name": "Bound Rancid Remains",
"rov_creature_skeleton_thrallranged_name": "Bound Archer",
"rov_creature_sverm_blistertick_name": "Blister Tick",
"rov_creature_sverm_worker_name": "Seeker Worker",
"rov_item_aswid_bloodcore_desc": "A knot of clotted blood kept beating by something that is not a heart. The dead trade them; only the dead know how they are made.",
"rov_item_aswid_bloodcore_name": "Blood Core",
"rov_item_aswid_bloodessence_desc": "Blood rendered down to what it actually is. The only real food an Aswid can still chew, and the base of every draught worth brewing.",
"rov_item_aswid_bloodessence_name": "Blood Essence",
"rov_item_aswid_bloodpotion_desc": "Drink and the hunger stops mattering for a while. Fills every stomach with blood essence, full or not, and knits the flesh back together.",
"rov_item_aswid_bloodpotion_name": "Blood Potion",
"rov_item_aswid_bloodpotionbase_desc": "Blood, berries and crypt light, waiting on a barrel.",
"rov_item_aswid_bloodpotionbase_name": "Blood Potion Mead Base",
"rov_item_aswid_claws_desc": "Grown in the dark, and darker for it. They do not come off.",
"rov_item_aswid_claws_name": "Claws of the Beast",
"rov_item_aswid_food_desc": "The life force of the conquered.",
"rov_item_aswid_food_name": "Aswid Food:",
"rov_item_aswid_spectralclaw_desc": "A claw of pure shadow, bound to your rage rather than your grip.",
"rov_item_aswid_spectralclaw_name": "Spectral Claw",
"rov_item_aswid_superiorbloodessence_desc": "The same blood, rendered twice. Darker, thicker, and worth five of the first pass.",
"rov_item_aswid_superiorbloodessence_name": "Superior Blood Essence",
"rov_item_aswid_superiorbloodpotion_desc": "The same mercy, twice as deep.",
"rov_item_aswid_superiorbloodpotion_name": "Superior Blood Potion",
"rov_item_aswid_superiorbloodpotionbase_desc": "The twice-rendered draught, still raw.",
"rov_item_aswid_superiorbloodpotionbase_name": "Superior Blood Potion Mead Base",
"rov_item_draugh_cursedbone_desc": "A bone that will not stay quiet. The dead sell them; the dead do not say why.",
"rov_item_draugh_cursedbone_name": "Cursed Bone",
"rov_item_draugh_greatercursedbone_desc": "The same bone, older, and louder. A pile fed one of these starts keeping officers.",
"rov_item_draugh_greatercursedbone_name": "Greater Cursed Bone",
"rov_item_draugh_humanmeat_desc": "A piece of somebody. The living gag on it; you do not.",
"rov_item_draugh_humanmeat_name": "Human Meat",
"rov_item_fenrir_claws_desc": "The wolf's hands, kept on in the man's shape. They do not come off.",
"rov_item_fenrir_claws_name": "Cursed Claws",
"rov_item_fenrir_greaterulvsblod_desc": "Older blood, and further down the line. A trough given one of these starts raising something worse than ulv.",
"rov_item_fenrir_greaterulvsblod_name": "Greater Ulvsblod",
"rov_item_fenrir_ulvsblod_desc": "Wolf blood, kept warm by something that should not be able to keep anything warm. The Fenring sell it and do not explain it.",
"rov_item_fenrir_ulvsblod_name": "Ulvsblod",
"rov_item_furling_copperdust_desc": "A sack of copper ground fine. A furnace cannot tell it from ore, and it will not go through a portal either.",
"rov_item_furling_copperdust_name": "Copper Dust",
"rov_item_furling_copperflax_desc": "Flax grown in copper-poisoned soil, and it took. Useless as cloth. Grind it and see.",
"rov_item_furling_copperflax_name": "Copper Flax",
"rov_item_furling_flintberry_desc": "Not a berry, whatever it looks like. Bury one and a flint-bearing bush comes up.",
"rov_item_furling_flintberry_name": "Flintberry",
"rov_item_furling_irondust_desc": "A sack of iron ground fine. A furnace cannot tell it from ore, and it will not go through a portal either.",
"rov_item_furling_irondust_name": "Iron Dust",
"rov_item_furling_ironflax_desc": "Flax grown in iron-poisoned soil, and it took. Useless as cloth. Grind it and see.",
"rov_item_furling_ironflax_name": "Iron Flax",
"rov_item_furling_stoneberry_desc": "Not a berry, whatever it looks like. Bury one and a stone-bearing bush comes up.",
"rov_item_furling_stoneberry_name": "Stoneberry",
"rov_item_furling_tindust_desc": "A sack of tin ground fine. A furnace cannot tell it from ore, and it will not go through a portal either.",
"rov_item_furling_tindust_name": "Tin Dust",
"rov_item_furling_tinflax_desc": "Flax grown in tin-poisoned soil, and it took. Useless as cloth. Grind it and see.",
"rov_item_furling_tinflax_name": "Tin Flax",
"rov_item_skadi_greaterfrostheart_desc": "Older cold than the mountain's. The cultists sell it and will not say where they dig.",
"rov_item_skadi_greaterfrostheart_name": "Greater Frost Heart",
"rov_item_skeleton_cursedskull_desc": "A skull that keeps counting. Set it down and the ground starts answering.",
"rov_item_skeleton_cursedskull_name": "Cursed Skull",
"rov_item_skeleton_greatercursedskull_desc": "Older, and it counts higher. A pile given one of these raises the rotten too.",
"rov_item_skeleton_greatercursedskull_name": "Greater Cursed Skull",
"rov_item_skeleton_soulstone_desc": "Something is still in there, and it is still angry. Bind it to a skull and it will stand watch as long as the bones hold.",
"rov_item_skeleton_soulstone_name": "Soul Stone",
"rov_item_sverm_claws_desc": "Grown, not forged. They do not come off.",
"rov_item_sverm_claws_name": "Chitin Claws",
"rov_item_trenta_fertilizer_desc": "Everything that was meat, a month later. Press it into the soil and whatever is rooted there stops waiting.",
"rov_item_trenta_fertilizer_name": "Fertilizer",
"rov_item_trenta_heartwoodseed_desc": "A seed fed on a whole barrel of rot. Plant it and go away for a while.",
"rov_item_trenta_heartwoodseed_name": "Heartwood Seed",
"rov_item_trenta_rotseed_desc": "A seed that died before it could sprout, and did not stop. The forest folk sell them; only the forest knows what grows from one.",
"rov_item_trenta_rotseed_name": "Rot Seed",
"rov_item_trol_giantslog_desc": "A massive tree log wielded as a weapon.",
"rov_item_trol_giantslog_name": "Giant's Log",
"rov_item_trolshammer_desc": "A hammer swung by something that never had to duck through a doorway. It builds everything the ordinary one builds, out of the same materials, and simply builds it bigger.",
"rov_item_trolshammer_name": "Trol's Hammer",
"rov_item_warvulture_desc": "A vulture's head, kept. Raise it and the bird comes back under you, and it will carry you as long as you care to stay up - though it only has so much haste in it before it settles into a glide.",
"rov_item_warvulture_name": "War Vulture",
"rov_piece_aswid_bloodrefinery_desc": "Flesh goes in, bone goes in, and what is left of both comes out red.",
"rov_piece_aswid_bloodrefinery_name": "Blood Refinery",
"rov_piece_cooktable_desc": "A slab of bone and slate, worn smooth. Something patient waits by the hearth.",
"rov_piece_cooktable_name": "Cook's Table",
"rov_piece_draugh_bodypile_desc": "Feed it and it answers. The dead here are yours, if you are dead enough to ask.",
"rov_piece_draugh_bodypile_name": "Cursed Body Pile",
"rov_piece_dvergar_contractbank_desc": "A ledger, a seal and a heap of coin. Sign here and someone else does the dying.",
"rov_piece_dvergar_contractbank_name": "Contract Bank",
"rov_piece_dvergar_runebarrel_desc": "Pour a brew in and the crew drinks. What it does to them is whatever it would have done to you - if they have the parts for it.",
"rov_piece_dvergar_runebarrel_name": "Rune Barrel",
"rov_piece_fenrir_packtrough_desc": "Fill it with meat and the pack comes. One at a time, and it remembers its dead.",
"rov_piece_fenrir_packtrough_name": "Pack Trough",
"rov_piece_furling_copperflaxsapling_desc": "Plant it and it grows more Copper Flax.",
"rov_piece_furling_copperflaxsapling_name": "Copper Flax",
"rov_piece_furling_flintberrybush_desc": "Yields flint, and keeps yielding it.",
"rov_piece_furling_flintberrybush_name": "Flintberry Bush",
"rov_piece_furling_ironflaxsapling_desc": "Plant it and it grows more Iron Flax.",
"rov_piece_furling_ironflaxsapling_name": "Iron Flax",
"rov_piece_furling_stoneberrybush_desc": "Yields stone, and keeps yielding it.",
"rov_piece_furling_stoneberrybush_name": "Stoneberry Bush",
"rov_piece_furling_tinflaxsapling_desc": "Plant it and it grows more Tin Flax.",
"rov_piece_furling_tinflaxsapling_name": "Tin Flax",
"rov_piece_racemenuward_desc": "Commune with your heritage. Offer a fallen boss's relic to claim its power.",
"rov_piece_racemenuward_name": "Race Menu Ward",
"rov_piece_skadi_crystalgolem_desc": "Cut at the stone and woken with a tear. It will not follow you, and it will not leave the stonecutter that shaped it.",
"rov_piece_skeleton_bonepile_desc": "Twenty fragments buy a place in the line. The one who fills it will keep standing up.",
"rov_piece_skeleton_bonepile_name": "Bound Bone Pile",
"rov_piece_skeleton_sentry_desc": "A skull on a soul stone. It will not walk, and it will not stop watching.",
"rov_piece_smithtable_desc": "A slab of bone and slate, dusted with ore. Something patient waits by the fires.",
"rov_piece_smithtable_name": "Smith's Table",
"rov_piece_sverm_broodmound_desc": "The colony begins here. Everything else grows out of it.",
"rov_piece_sverm_broodmound_name": "Brood Mound",
"rov_piece_sverm_hivemarket_desc": "Where the colony trades. It spends the tank of the nest it stands in.",
"rov_piece_sverm_hivemarket_name": "Hive Market",
"rov_piece_trenta_composter_desc": "What rots is not lost. It feeds.",
"rov_piece_trenta_composter_name": "Composter",
"rov_piece_trenta_elderroot_desc": "What the Elder left behind, still growing. Mends itself, and everything a player built close enough to it.",
"rov_piece_trenta_elderroot_name": "Root of the Elder",
"rov_piece_trenta_heartwoodgrove_desc": "A crate of rot with something growing out of it. Give it time.",
"rov_piece_trenta_heartwoodgrove_name": "Heartwood Grove",
"rov_piece_trenta_heartwoodsapling_name": "Heartwood Sapling",
"rov_piece_trol_wartotem_desc": "A head that still remembers how to shout. Coin goes in, a warband walks out.",
"rov_piece_trol_wartotem_name": "War Totem"
}

View 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."
}

View file

@ -0,0 +1,131 @@
{
"rov_creature_bonecook_name": "Cuoco d'ossa",
"rov_creature_bonesmith_name": "Fabbro d'ossa",
"rov_creature_draugh_thrall_name": "Servo Draugr",
"rov_creature_draugh_thrallelite_name": "Servo Draugr d'élite",
"rov_creature_fenrir_pack_desc": "Risponde al sangue del lupo, non a te.",
"rov_creature_fenrir_packfenrir_desc": "Solo il sangue del lupo comanda questo.",
"rov_creature_fenrir_packfenrir_name": "Fenrir",
"rov_creature_fenrir_packulv_name": "Ulv",
"rov_creature_fenrir_packwolf_name": "Lupo del branco",
"rov_creature_skadi_crystalgolem_name": "Golem di cristallo",
"rov_creature_skeleton_sentry_name": "Sentinella vincolata",
"rov_creature_skeleton_thrallmelee_name": "Scheletro vincolato",
"rov_creature_skeleton_thrallrancid_name": "Resti rancidi vincolati",
"rov_creature_skeleton_thrallranged_name": "Arciere vincolato",
"rov_creature_sverm_blistertick_name": "Zecca vescicante",
"rov_creature_sverm_worker_name": "Operaio cercatore",
"rov_item_aswid_bloodcore_desc": "Un grumo di sangue rappreso che batte ancora, tenuto in vita da qualcosa che non è un cuore. I morti lo commerciano; solo i morti sanno come si fa.",
"rov_item_aswid_bloodcore_name": "Nucleo di sangue",
"rov_item_aswid_bloodessence_desc": "Sangue ridotto a ciò che è davvero. L'unico vero cibo che un Aswid riesce ancora a masticare, e la base di ogni pozione che valga la pena distillare.",
"rov_item_aswid_bloodessence_name": "Essenza di sangue",
"rov_item_aswid_bloodpotion_desc": "Bevi e la fame smette di contare per un po'. Riempie ogni stomaco di essenza di sangue, pieno o no, e ricuce la carne.",
"rov_item_aswid_bloodpotion_name": "Pozione di sangue",
"rov_item_aswid_bloodpotionbase_desc": "Sangue, bacche e luce di cripta, in attesa in un barile.",
"rov_item_aswid_bloodpotionbase_name": "Base per pozione di sangue",
"rov_item_aswid_claws_desc": "Cresciuti nel buio, e più scuri per questo. Non si staccano.",
"rov_item_aswid_claws_name": "Artigli della Bestia",
"rov_item_aswid_food_desc": "La forza vitale dei vinti.",
"rov_item_aswid_food_name": "Cibo Aswid:",
"rov_item_aswid_spectralclaw_desc": "Un artiglio di pura ombra, legato alla tua furia più che alla tua presa.",
"rov_item_aswid_spectralclaw_name": "Artiglio spettrale",
"rov_item_aswid_superiorbloodessence_desc": "Lo stesso sangue, ridotto due volte. Più scuro, più denso, e vale cinque volte il primo passaggio.",
"rov_item_aswid_superiorbloodessence_name": "Essenza di sangue superiore",
"rov_item_aswid_superiorbloodpotion_desc": "La stessa pietà, due volte più profonda.",
"rov_item_aswid_superiorbloodpotion_name": "Pozione di sangue superiore",
"rov_item_aswid_superiorbloodpotionbase_desc": "L'infuso ridotto due volte, ancora crudo.",
"rov_item_aswid_superiorbloodpotionbase_name": "Base per pozione di sangue superiore",
"rov_item_draugh_cursedbone_desc": "Un osso che non vuole stare zitto. I morti lo vendono; i morti non dicono perché.",
"rov_item_draugh_cursedbone_name": "Osso maledetto",
"rov_item_draugh_greatercursedbone_desc": "Lo stesso osso, più vecchio e più rumoroso. Un mucchio nutrito con uno di questi comincia a tenere ufficiali.",
"rov_item_draugh_greatercursedbone_name": "Osso maledetto superiore",
"rov_item_draugh_humanmeat_desc": "Un pezzo di qualcuno. Ai vivi viene il voltastomaco; a te no.",
"rov_item_draugh_humanmeat_name": "Carne umana",
"rov_item_fenrir_claws_desc": "Le mani del lupo, rimaste nella forma dell'uomo. Non si staccano.",
"rov_item_fenrir_claws_name": "Artigli maledetti",
"rov_item_fenrir_greaterulvsblod_desc": "Sangue più antico, più in basso nella discendenza. Una mangiatoia che ne riceve uno comincia a far nascere qualcosa di peggio di un ulv.",
"rov_item_fenrir_greaterulvsblod_name": "Ulvsblod superiore",
"rov_item_fenrir_ulvsblod_desc": "Sangue di lupo, tenuto caldo da qualcosa che non dovrebbe poter scaldare niente. I Fenring lo vendono e non lo spiegano.",
"rov_item_fenrir_ulvsblod_name": "Ulvsblod",
"rov_item_furling_copperdust_desc": "Un sacco di rame macinato fine. Una fornace non lo distingue dal minerale, e non passa nemmeno da un portale.",
"rov_item_furling_copperdust_name": "Polvere di rame",
"rov_item_furling_copperflax_desc": "Lino cresciuto in un terreno avvelenato dal rame, e ha attecchito. Inutile come stoffa. Macinalo e vedrai.",
"rov_item_furling_copperflax_name": "Lino di rame",
"rov_item_furling_flintberry_desc": "Non è una bacca, anche se ci somiglia. Seppelliscine una e spunta un cespuglio che dà selce.",
"rov_item_furling_flintberry_name": "Bacca di selce",
"rov_item_furling_irondust_desc": "Un sacco di ferro macinato fine. Una fornace non lo distingue dal minerale, e non passa nemmeno da un portale.",
"rov_item_furling_irondust_name": "Polvere di ferro",
"rov_item_furling_ironflax_desc": "Lino cresciuto in un terreno avvelenato dal ferro, e ha attecchito. Inutile come stoffa. Macinalo e vedrai.",
"rov_item_furling_ironflax_name": "Lino di ferro",
"rov_item_furling_stoneberry_desc": "Non è una bacca, anche se ci somiglia. Seppelliscine una e spunta un cespuglio che dà pietra.",
"rov_item_furling_stoneberry_name": "Bacca di pietra",
"rov_item_furling_tindust_desc": "Un sacco di stagno macinato fine. Una fornace non lo distingue dal minerale, e non passa nemmeno da un portale.",
"rov_item_furling_tindust_name": "Polvere di stagno",
"rov_item_furling_tinflax_desc": "Lino cresciuto in un terreno avvelenato dallo stagno, e ha attecchito. Inutile come stoffa. Macinalo e vedrai.",
"rov_item_furling_tinflax_name": "Lino di stagno",
"rov_item_skadi_greaterfrostheart_desc": "Un freddo più antico di quello della montagna. I cultisti lo vendono e non dicono dove scavano.",
"rov_item_skadi_greaterfrostheart_name": "Cuore di gelo superiore",
"rov_item_skeleton_cursedskull_desc": "Un teschio che continua a contare. Posalo e il terreno comincia a rispondere.",
"rov_item_skeleton_cursedskull_name": "Teschio maledetto",
"rov_item_skeleton_greatercursedskull_desc": "Più vecchio, e conta più in alto. Un mucchio che ne riceve uno fa risorgere anche i rancidi.",
"rov_item_skeleton_greatercursedskull_name": "Teschio maledetto superiore",
"rov_item_skeleton_soulstone_desc": "Là dentro c'è ancora qualcosa, ed è ancora arrabbiato. Legalo a un teschio e farà la guardia finché le ossa reggono.",
"rov_item_skeleton_soulstone_name": "Pietra dell'anima",
"rov_item_sverm_claws_desc": "Cresciuti, non forgiati. Non si staccano.",
"rov_item_sverm_claws_name": "Artigli di chitina",
"rov_item_trenta_fertilizer_desc": "Tutto ciò che era carne, un mese dopo. Premilo nel terreno e ciò che vi è radicato smette di aspettare.",
"rov_item_trenta_fertilizer_name": "Fertilizzante",
"rov_item_trenta_heartwoodseed_desc": "Un seme nutrito con un intero barile di marciume. Piantalo e vattene per un po'.",
"rov_item_trenta_heartwoodseed_name": "Seme di durame",
"rov_item_trenta_rotseed_desc": "Un seme morto prima di germogliare, che non si è fermato. Il popolo della foresta li vende; solo la foresta sa cosa ne cresce.",
"rov_item_trenta_rotseed_name": "Seme marcio",
"rov_item_trol_giantslog_desc": "Un enorme tronco d'albero brandito come arma.",
"rov_item_trol_giantslog_name": "Tronco del gigante",
"rov_item_trolshammer_desc": "Un martello brandito da qualcosa che non ha mai dovuto chinarsi sotto una porta. Costruisce tutto ciò che costruisce quello normale, con gli stessi materiali, e lo fa semplicemente più grande.",
"rov_item_trolshammer_name": "Martello del Trol",
"rov_item_warvulture_desc": "La testa di un avvoltoio, conservata. Sollevala e l'uccello torna sotto di te, e ti porterà finché vorrai restare in aria, anche se ha solo un po' di slancio prima di mettersi a planare.",
"rov_item_warvulture_name": "Avvoltoio da guerra",
"rov_piece_aswid_bloodrefinery_desc": "Entra carne, entra osso, e quel che resta di entrambi esce rosso.",
"rov_piece_aswid_bloodrefinery_name": "Raffineria di sangue",
"rov_piece_cooktable_desc": "Una lastra di osso e ardesia, consumata dall'uso. Qualcosa di paziente aspetta accanto al focolare.",
"rov_piece_cooktable_name": "Tavolo del cuoco",
"rov_piece_draugh_bodypile_desc": "Nutrilo e risponde. I morti qui sono tuoi, se sei abbastanza morto da chiederlo.",
"rov_piece_draugh_bodypile_name": "Mucchio di corpi maledetto",
"rov_piece_dvergar_contractbank_desc": "Un registro, un sigillo e un mucchio di monete. Firma qui e a morire ci pensa qualcun altro.",
"rov_piece_dvergar_contractbank_name": "Banca dei contratti",
"rov_piece_dvergar_runebarrel_desc": "Versaci una bevanda e la squadra beve. Quello che fa a loro è quello che avrebbe fatto a te, se hanno i pezzi giusti.",
"rov_piece_dvergar_runebarrel_name": "Barile runico",
"rov_piece_fenrir_packtrough_desc": "Riempila di carne e il branco arriva. Uno alla volta, e ricorda i suoi morti.",
"rov_piece_fenrir_packtrough_name": "Mangiatoia del branco",
"rov_piece_furling_copperflaxsapling_desc": "Piantalo e crescerà altro lino di rame.",
"rov_piece_furling_copperflaxsapling_name": "Lino di rame",
"rov_piece_furling_flintberrybush_desc": "Dà selce, e continua a darla.",
"rov_piece_furling_flintberrybush_name": "Cespuglio di bacche di selce",
"rov_piece_furling_ironflaxsapling_desc": "Piantalo e crescerà altro lino di ferro.",
"rov_piece_furling_ironflaxsapling_name": "Lino di ferro",
"rov_piece_furling_stoneberrybush_desc": "Dà pietra, e continua a darla.",
"rov_piece_furling_stoneberrybush_name": "Cespuglio di bacche di pietra",
"rov_piece_furling_tinflaxsapling_desc": "Piantalo e crescerà altro lino di stagno.",
"rov_piece_furling_tinflaxsapling_name": "Lino di stagno",
"rov_piece_racemenuward_desc": "Entra in comunione con la tua stirpe. Offri la reliquia di un boss caduto per reclamarne il potere.",
"rov_piece_racemenuward_name": "Sigillo della razza",
"rov_piece_skadi_crystalgolem_desc": "Tagliato dalla pietra e risvegliato con una lacrima. Non ti seguirà, e non lascerà lo scalpellino che l'ha plasmato.",
"rov_piece_skeleton_bonepile_desc": "Venti frammenti comprano un posto nella fila. Chi lo occupa continuerà a rialzarsi.",
"rov_piece_skeleton_bonepile_name": "Mucchio d'ossa vincolato",
"rov_piece_skeleton_sentry_desc": "Un teschio su una pietra dell'anima. Non camminerà, e non smetterà di guardare.",
"rov_piece_smithtable_desc": "Una lastra di osso e ardesia, spolverata di minerale. Qualcosa di paziente aspetta accanto ai fuochi.",
"rov_piece_smithtable_name": "Tavolo del fabbro",
"rov_piece_sverm_broodmound_desc": "La colonia comincia qui. Tutto il resto cresce da questo.",
"rov_piece_sverm_broodmound_name": "Cumulo della covata",
"rov_piece_sverm_hivemarket_desc": "Dove la colonia commercia. Spende la riserva del nido in cui si trova.",
"rov_piece_sverm_hivemarket_name": "Mercato dell'alveare",
"rov_piece_trenta_composter_desc": "Ciò che marcisce non è perduto. Nutre.",
"rov_piece_trenta_composter_name": "Compostiera",
"rov_piece_trenta_elderroot_desc": "Ciò che l'Antico si è lasciato dietro, ancora in crescita. Si ripara da sé, e ripara tutto ciò che un giocatore ha costruito abbastanza vicino.",
"rov_piece_trenta_elderroot_name": "Radice dell'Antico",
"rov_piece_trenta_heartwoodgrove_desc": "Una cassa di marciume con qualcosa che ci cresce dentro. Dagli tempo.",
"rov_piece_trenta_heartwoodgrove_name": "Boschetto di durame",
"rov_piece_trenta_heartwoodsapling_name": "Germoglio di durame",
"rov_piece_trol_wartotem_desc": "Una testa che ricorda ancora come si urla. Entrano monete, esce una banda da guerra.",
"rov_piece_trol_wartotem_name": "Totem di guerra"
}

View 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."
}

View file

@ -100,8 +100,7 @@ namespace RacesOfValheim
ItemDrop.ItemData.SharedData shared = drop.m_itemData.m_shared;
shared.m_name = TrentaConfig.RotSeedDisplayName;
shared.m_description = "A seed that died before it could sprout, and did not stop. " +
"The forest folk sell them; only the forest knows what grows from one.";
shared.m_description = "$rov_item_trenta_rotseed_desc";
shared.m_itemType = ItemDrop.ItemData.ItemType.Material;
shared.m_weight = 0.5f;
shared.m_maxStackSize = 20;
@ -125,8 +124,7 @@ namespace RacesOfValheim
ItemDrop.ItemData.SharedData shared = drop.m_itemData.m_shared;
shared.m_name = TrentaConfig.FertilizerDisplayName;
shared.m_description = "Everything that was meat, a month later. Press it into the soil and " +
"whatever is rooted there stops waiting.";
shared.m_description = "$rov_item_trenta_fertilizer_desc";
// Consumable, not Material, and this is the only reason: a Material never reaches
// Humanoid.UseItem - vanilla refuses it before that - while a Consumable does, which is
@ -223,7 +221,7 @@ namespace RacesOfValheim
PieceConfig config = new PieceConfig
{
Name = TrentaConfig.ComposterDisplayName,
Description = "What rots is not lost. It feeds.",
Description = "$rov_piece_trenta_composter_desc",
PieceTable = PieceTables.Hammer,
Category = PieceCategories.Crafting,
Requirements = new[]

View file

@ -405,13 +405,13 @@ namespace RacesOfValheim
// The chain: a Rot Seed bought from the Greydwarf faction bench gates the Composter, the
// Composter rots raw flesh into Fertilizer, and Fertilizer grows any plant on the spot.
public const string ComposterPieceName = "TrentaComposter";
public const string ComposterDisplayName = "Composter";
public const string ComposterDisplayName = "$rov_piece_trenta_composter_name";
public const string FertilizerName = "Fertilizer";
public const string FertilizerDisplayName = "Fertilizer";
public const string FertilizerDisplayName = "$rov_item_trenta_fertilizer_name";
public const string RotSeedName = "RotSeed";
public const string RotSeedDisplayName = "Rot Seed";
public const string RotSeedDisplayName = "$rov_item_trenta_rotseed_name";
// Same band as the Aswid's Blood Core, which does the same job for the same reason.
public const int RotSeedPrice = 500;
@ -452,7 +452,7 @@ namespace RacesOfValheim
// point would need if it had one: this is a race identity piece, not a purchase from
// someone else's bench (see the War Totem's own note on the same choice).
public const string ElderRootPieceName = "TrentaElderRoot";
public const string ElderRootDisplayName = "Root of the Elder";
public const string ElderRootDisplayName = "$rov_piece_trenta_elderroot_name";
public const int ElderRootUnlockState = 3; // The Elder dead
@ -507,11 +507,11 @@ namespace RacesOfValheim
// Plant a seed, wait, and the tree that comes up fertilises what surrounds it, stings what
// approaches it, and fills a chest with honey. Three independent functions on one piece.
public const string GroveSeedName = "HeartwoodSeed";
public const string GroveSeedDisplayName = "Heartwood Seed";
public const string GroveSeedDisplayName = "$rov_item_trenta_heartwoodseed_name";
public const string GroveSaplingPieceName = "TrentaHeartwoodSapling";
public const string GroveSaplingDisplayName = "Heartwood Sapling";
public const string GroveSaplingDisplayName = "$rov_piece_trenta_heartwoodsapling_name";
public const string GrovePieceName = "TrentaHeartwoodGrove";
public const string GroveDisplayName = "Heartwood Grove";
public const string GroveDisplayName = "$rov_piece_trenta_heartwoodgrove_name";
// A grove costs exactly one full Composter batch. That is the whole balance argument.
public const int GroveSeedFertilizerCost = ComposterYield;

View file

@ -93,8 +93,7 @@ namespace RacesOfValheim
PieceManager.Instance.AddPiece(new CustomPiece(prefab, fixReference: false, new PieceConfig
{
Name = TrentaConfig.ElderRootDisplayName,
Description = "What the Elder left behind, still growing. Mends itself, and " +
"everything a player built close enough to it.",
Description = "$rov_piece_trenta_elderroot_desc",
PieceTable = PieceTables.Hammer,
Category = PieceCategories.Crafting,
Icon = icon,

View file

@ -58,7 +58,7 @@ namespace RacesOfValheim
ItemDrop.ItemData.SharedData shared = drop.m_itemData.m_shared;
shared.m_name = TrentaConfig.GroveSeedDisplayName;
shared.m_description = "A seed fed on a whole barrel of rot. Plant it and go away for a while.";
shared.m_description = "$rov_item_trenta_heartwoodseed_desc";
shared.m_itemType = ItemDrop.ItemData.ItemType.Material;
shared.m_weight = 1f;
shared.m_maxStackSize = 10;
@ -129,7 +129,7 @@ namespace RacesOfValheim
PieceConfig config = new PieceConfig
{
Name = TrentaConfig.GroveDisplayName,
Description = "A crate of rot with something growing out of it. Give it time.",
Description = "$rov_piece_trenta_heartwoodgrove_desc",
PieceTable = PieceTables.Hammer,
Category = PieceCategories.Misc,
Requirements = new[]

View file

@ -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));
}

View file

@ -77,8 +77,8 @@ namespace RacesOfValheim
if (logPrefab != null)
{
Jotunn.Configs.ItemConfig config = new Jotunn.Configs.ItemConfig();
config.Name = "Giant's Log";
config.Description = "A massive tree log wielded as a weapon.";
config.Name = "$rov_item_trol_giantslog_name";
config.Description = "$rov_item_trol_giantslog_desc";
CustomItem customWep = new CustomItem("TrolWeapon_" + logName, "MaceIron", config);
if (customWep != null && customWep.ItemPrefab != null)

View file

@ -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");

View file

@ -26,7 +26,7 @@ namespace RacesOfValheim
public static class TrolTotem
{
public const string PieceName = "TrolWarTotem";
public const string PieceDisplayName = "War Totem";
public const string PieceDisplayName = "$rov_piece_trol_wartotem_name";
public const string RaceId = "Trol";
/// <summary>Core wood. The item is RoundLog - another display name that does not predict the id.</summary>
@ -313,7 +313,7 @@ namespace RacesOfValheim
PieceManager.Instance.AddPiece(new CustomPiece(prefab, fixReference: false, new PieceConfig
{
Name = PieceDisplayName,
Description = "A head that still remembers how to shout. Coin goes in, a warband walks out.",
Description = "$rov_piece_trol_wartotem_desc",
PieceTable = PieceTables.Hammer,
Category = PieceCategories.Crafting,
Icon = BorrowIcon(TrollHead),

View file

@ -24,7 +24,7 @@ namespace RacesOfValheim
public static class TrolsHammerItem
{
public const string PrefabName = "TrolsHammer";
public const string DisplayName = "Trol's Hammer";
public const string DisplayName = "$rov_item_trolshammer_name";
private const string SourcePrefab = "Hammer";
private const string Label = "TrolsHammer";
@ -51,9 +51,7 @@ namespace RacesOfValheim
ItemDrop.ItemData.SharedData shared = drop.m_itemData.m_shared;
shared.m_name = DisplayName;
shared.m_description = "A hammer swung by something that never had to duck through a " +
"doorway. It builds everything the ordinary one builds, out of the " +
"same materials, and simply builds it bigger.";
shared.m_description = "$rov_item_trolshammer_desc";
if (shared.m_buildPieces == null)
{

View file

@ -32,7 +32,7 @@ namespace RacesOfValheim
public static class WarVultureItem
{
public const string PrefabName = "WarVulture";
public const string DisplayName = "War Vulture";
public const string DisplayName = "$rov_item_warvulture_name";
private const string SourcePrefab = "StaffSkeleton";
private const string TrophyPrefab = "TrophyVolture";
@ -62,9 +62,7 @@ namespace RacesOfValheim
ItemDrop.ItemData.SharedData shared = drop.m_itemData.m_shared;
shared.m_name = DisplayName;
shared.m_description = "A vulture's head, kept. Raise it and the bird comes back under you, " +
"and it will carry you as long as you care to stay up - though it only " +
"has so much haste in it before it settles into a glide.";
shared.m_description = "$rov_item_warvulture_desc";
shared.m_useDurability = false;
// ItemType is left exactly as the vanilla staff has it: it decides the equip slot and