feat(text): item, piece and creature names come from translation files
The mod's own items, build pieces and summoned creatures now carry $rov_item_, $rov_piece_ and $rov_creature_ tokens for their names and descriptions, and items.json holds the texts in English and Italian. Valheim localizes these fields wherever it shows them: tooltips, hover texts, messages, the build menu. Where a name doubles as an identifier, both sides use the same constant, so the comparisons still hold. The Aswid foods keep their prefix as a constant for the refinery's check and now name the creature with its vanilla token, so "Boar" translates too. The Furling crops get one whole description per crop instead of an English sentence with the metal dropped in. The Race Menu Ward's panel title is a mod UI Text, so it reads the translation directly. Saves are unaffected: items and eaten foods are stored by prefab name. The Sverm hive's goods stay for the merchant step. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
9bf144aedc
commit
b177c89c71
34 changed files with 405 additions and 142 deletions
|
|
@ -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[]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue