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
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue