feat(text): merchants, troops and the hive's shelf come from translation files
The faction merchants' 90 jokes, their generic lines and their names now read from merchants.json. Merchant names use the game's own creature tokens where one matches, so they arrive translated in every language Valheim ships; the Dverg keeps a key of its own, since vanilla's token reads "Dvergr Rogue". The Dvergar and Trol troop names and terms, and the Sverm hive's goods, refusals, stage names and brood kinds, follow. Their panels fill TMP texts themselves, so they localize the names where they draw them. The jokes have English text only for now. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
594b333f68
commit
1bd09ed31d
13 changed files with 332 additions and 167 deletions
|
|
@ -69,7 +69,7 @@ namespace RacesOfValheim
|
|||
|
||||
private static readonly ShopDefinition GreydwarfShop = new ShopDefinition
|
||||
{
|
||||
DisplayName = "Greydwarf",
|
||||
DisplayName = "$enemy_greydwarf",
|
||||
JokeCategory = JokeLegnoFalegname,
|
||||
Items = WithDefaults(new List<CatalogEntry>
|
||||
{
|
||||
|
|
@ -92,7 +92,7 @@ namespace RacesOfValheim
|
|||
|
||||
private static readonly ShopDefinition TrollShop = new ShopDefinition
|
||||
{
|
||||
DisplayName = "Troll",
|
||||
DisplayName = "$enemy_troll",
|
||||
JokeCategory = JokeTroll,
|
||||
Items = WithDefaults(new List<CatalogEntry>
|
||||
{
|
||||
|
|
@ -111,7 +111,7 @@ namespace RacesOfValheim
|
|||
|
||||
private static readonly ShopDefinition FulingShop = new ShopDefinition
|
||||
{
|
||||
DisplayName = "Fuling",
|
||||
DisplayName = "$enemy_goblin",
|
||||
JokeCategory = JokeGoblin,
|
||||
Items = WithDefaults(new List<CatalogEntry>
|
||||
{
|
||||
|
|
@ -152,7 +152,7 @@ namespace RacesOfValheim
|
|||
// in declaration order.
|
||||
private static readonly ShopDefinition GoblinShamanShop = new ShopDefinition
|
||||
{
|
||||
DisplayName = "Fuling Shaman",
|
||||
DisplayName = "$enemy_goblinshaman",
|
||||
JokeCategory = JokeGoblin,
|
||||
Items = new List<CatalogEntry>(FulingShop.Items)
|
||||
{
|
||||
|
|
@ -185,7 +185,7 @@ namespace RacesOfValheim
|
|||
/// </summary>
|
||||
private static readonly ShopDefinition UlvShop = new ShopDefinition
|
||||
{
|
||||
DisplayName = "Ulv",
|
||||
DisplayName = "$enemy_ulv",
|
||||
JokeCategory = JokeLupoLicantropo,
|
||||
Items = WithDefaults(new List<CatalogEntry>
|
||||
{
|
||||
|
|
@ -203,7 +203,7 @@ namespace RacesOfValheim
|
|||
|
||||
private static readonly ShopDefinition FenringShop = new ShopDefinition
|
||||
{
|
||||
DisplayName = "Fenring",
|
||||
DisplayName = "$enemy_fenring",
|
||||
JokeCategory = JokeLupoLicantropo,
|
||||
Items = WithDefaults(new List<CatalogEntry>
|
||||
{
|
||||
|
|
@ -216,7 +216,7 @@ namespace RacesOfValheim
|
|||
|
||||
private static readonly ShopDefinition CultistShop = new ShopDefinition
|
||||
{
|
||||
DisplayName = "Cultist",
|
||||
DisplayName = "$enemy_fenringcultist",
|
||||
JokeCategory = JokeStrega,
|
||||
Items = WithDefaults(new List<CatalogEntry>
|
||||
{
|
||||
|
|
@ -228,7 +228,7 @@ namespace RacesOfValheim
|
|||
|
||||
private static readonly ShopDefinition DvergShop = new ShopDefinition
|
||||
{
|
||||
DisplayName = "Dverg",
|
||||
DisplayName = "$rov_merchant_dverg_name",
|
||||
JokeCategory = JokeNano,
|
||||
Items = WithDefaults(new List<CatalogEntry>
|
||||
{
|
||||
|
|
@ -241,7 +241,7 @@ namespace RacesOfValheim
|
|||
|
||||
private static readonly ShopDefinition DraugrShop = new ShopDefinition
|
||||
{
|
||||
DisplayName = "Draugr",
|
||||
DisplayName = "$enemy_draugr",
|
||||
JokeCategory = JokeNonMortoZombie,
|
||||
Items = WithDefaults(new List<CatalogEntry>
|
||||
{
|
||||
|
|
@ -266,7 +266,7 @@ namespace RacesOfValheim
|
|||
|
||||
private static readonly ShopDefinition SkeletonShop = new ShopDefinition
|
||||
{
|
||||
DisplayName = "Skeleton",
|
||||
DisplayName = "$enemy_skeleton",
|
||||
JokeCategory = JokeScheletro,
|
||||
Items = WithDefaults(new List<CatalogEntry>
|
||||
{
|
||||
|
|
@ -284,7 +284,7 @@ namespace RacesOfValheim
|
|||
|
||||
private static readonly ShopDefinition GhostShop = new ShopDefinition
|
||||
{
|
||||
DisplayName = "Ghost",
|
||||
DisplayName = "$enemy_ghost",
|
||||
JokeCategory = JokeFantasma,
|
||||
Items = WithDefaults(new List<CatalogEntry>
|
||||
{
|
||||
|
|
@ -295,7 +295,7 @@ namespace RacesOfValheim
|
|||
|
||||
private static readonly ShopDefinition WraithShop = new ShopDefinition
|
||||
{
|
||||
DisplayName = "Wraith",
|
||||
DisplayName = "$enemy_wraith",
|
||||
JokeCategory = JokeFantasma,
|
||||
Items = WithDefaults(new List<CatalogEntry>
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue