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
|
|
@ -99,7 +99,7 @@ namespace RacesOfValheim
|
|||
{
|
||||
new Troop
|
||||
{
|
||||
Id = "escort", Display = "Escort", Price = 400, NeedsUpgrade = false, Icon = "TrophyDvergr",
|
||||
Id = "escort", Display = "$rov_troop_dvergar_escort", Price = 400, NeedsUpgrade = false, Icon = "TrophyDvergr",
|
||||
Members = new[]
|
||||
{
|
||||
new KeyValuePair<string, int>("Dverger", 1),
|
||||
|
|
@ -108,7 +108,7 @@ namespace RacesOfValheim
|
|||
},
|
||||
new Troop
|
||||
{
|
||||
Id = "yard_patrol", Display = "Yard Patrol", Price = 700, NeedsUpgrade = false, Icon = "TrophyDvergr",
|
||||
Id = "yard_patrol", Display = "$rov_troop_dvergar_yard_patrol", Price = 700, NeedsUpgrade = false, Icon = "TrophyDvergr",
|
||||
Members = new[]
|
||||
{
|
||||
new KeyValuePair<string, int>("Dverger", 2),
|
||||
|
|
@ -117,7 +117,7 @@ namespace RacesOfValheim
|
|||
},
|
||||
new Troop
|
||||
{
|
||||
Id = "fire_crew", Display = "Fire Crew", Price = 1000, NeedsUpgrade = false, Icon = "TrophyDvergr",
|
||||
Id = "fire_crew", Display = "$rov_troop_dvergar_fire_crew", Price = 1000, NeedsUpgrade = false, Icon = "TrophyDvergr",
|
||||
Members = new[]
|
||||
{
|
||||
new KeyValuePair<string, int>("Dverger", 1),
|
||||
|
|
@ -127,7 +127,7 @@ namespace RacesOfValheim
|
|||
},
|
||||
new Troop
|
||||
{
|
||||
Id = "runic_crew", Display = "Runic Crew", Price = 1500, NeedsUpgrade = true, Icon = "TrophyDvergr",
|
||||
Id = "runic_crew", Display = "$rov_troop_dvergar_runic_crew", Price = 1500, NeedsUpgrade = true, Icon = "TrophyDvergr",
|
||||
Members = new[]
|
||||
{
|
||||
new KeyValuePair<string, int>("Dverger", 2),
|
||||
|
|
@ -137,7 +137,7 @@ namespace RacesOfValheim
|
|||
},
|
||||
new Troop
|
||||
{
|
||||
Id = "ash_guard", Display = "Ash Guard", Price = 2000, NeedsUpgrade = true, Icon = "TrophySeekerBrute",
|
||||
Id = "ash_guard", Display = "$rov_troop_dvergar_ash_guard", Price = 2000, NeedsUpgrade = true, Icon = "TrophySeekerBrute",
|
||||
Members = new[]
|
||||
{
|
||||
new KeyValuePair<string, int>("DvergerAshlands", 2),
|
||||
|
|
|
|||
|
|
@ -123,14 +123,14 @@ namespace RacesOfValheim
|
|||
else Jotunn.Logger.LogWarning($"[Dvergar] No icon on '{troop.Icon}' for {troop.Display}; the row " +
|
||||
"keeps whatever the cloned element was showing.");
|
||||
|
||||
element.transform.Find("name").GetComponent<TMP_Text>().text = troop.Display;
|
||||
element.transform.Find("name").GetComponent<TMP_Text>().text = Localization.instance.Localize(troop.Display);
|
||||
|
||||
// The DISCOUNTED price, because that is what will actually leave the player's pocket.
|
||||
TMP_Text price = FindDescendant<TMP_Text>(element.transform, "price");
|
||||
if (price != null) price.text = DvergarBanco.PriceFor(troop).ToString();
|
||||
|
||||
UITooltip tooltip = element.GetComponent<UITooltip>();
|
||||
if (tooltip != null) tooltip.Set(troop.Display, Composition(troop), gui.m_tooltipAnchor, default(Vector2));
|
||||
if (tooltip != null) tooltip.Set(Localization.instance.Localize(troop.Display), Composition(troop), gui.m_tooltipAnchor, default(Vector2));
|
||||
|
||||
string id = troop.Id;
|
||||
element.GetComponent<Button>().onClick.AddListener(() =>
|
||||
|
|
@ -154,10 +154,9 @@ namespace RacesOfValheim
|
|||
|
||||
int full = troop.Price;
|
||||
int paid = DvergarBanco.PriceFor(troop);
|
||||
if (paid < full) text.Append("\n\nList price ").Append(full).Append(" - your seal takes it to ").Append(paid).Append('.');
|
||||
if (paid < full) text.Append("\n\n").Append(ModText.Get("rov_troop_dvergar_seal_price", full, paid));
|
||||
|
||||
text.Append("\n\nThey answer the follow command, knit their own wounds shut, keep your truce with " +
|
||||
"the mountain's dvergr, drop nothing, and do not come back. A dead crew is money spent.");
|
||||
text.Append("\n\n").Append(ModText.Get("rov_troop_dvergar_terms"));
|
||||
return text.ToString();
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
{
|
||||
|
|
|
|||
|
|
@ -11,120 +11,120 @@ namespace RacesOfValheim
|
|||
{
|
||||
[FactionMerchantCatalog.JokeScheletro] = new[]
|
||||
{
|
||||
"What do you call a skeleton who never does his chores? Lazy bones.",
|
||||
"Why did the skeleton quit his job? His heart wasn't in it.",
|
||||
"What skeleton was the first emperor of France? Napoleon Bone-aparte.",
|
||||
"Who is the world's most famous skeleton detective? Sherlock Bones.",
|
||||
"What did the French skeletons say before eating their dinner? Bone appetit!",
|
||||
"What do skeletons always order when they go to a restaurant? Spare ribs.",
|
||||
"How do skeletons call each other? On their tele-bone.",
|
||||
"What's a skeleton's favorite fruit? Bone-ana!",
|
||||
"Why are skeletons bad at lying? You can see right through them!",
|
||||
"Why don't skeletons fight each other? They don't have the guts.",
|
||||
"$rov_joke_scheletro_01",
|
||||
"$rov_joke_scheletro_02",
|
||||
"$rov_joke_scheletro_03",
|
||||
"$rov_joke_scheletro_04",
|
||||
"$rov_joke_scheletro_05",
|
||||
"$rov_joke_scheletro_06",
|
||||
"$rov_joke_scheletro_07",
|
||||
"$rov_joke_scheletro_08",
|
||||
"$rov_joke_scheletro_09",
|
||||
"$rov_joke_scheletro_10",
|
||||
},
|
||||
[FactionMerchantCatalog.JokeNonMortoZombie] = new[]
|
||||
{
|
||||
"When do zombies go to sleep? When they are dead tired.",
|
||||
"What streets do zombies live on? Dead ends.",
|
||||
"Where do zombies go sailing? Lake Eerie.",
|
||||
"What do you call a zombie in pajamas? The sleepwalking dead.",
|
||||
"How are zombies like computers? They use mega-bites!",
|
||||
"Why did the zombie lose his lawsuit? He had no leg to stand on!",
|
||||
"Why did the zombie eat a light bulb? Because he wanted a light snack.",
|
||||
"Why don't zombies eat clowns? Because they taste funny!",
|
||||
"Why did the zombie go to school? To improve his brainpower.",
|
||||
"Zombies are hopeless romantics, seeking their ghoul-mate.",
|
||||
"$rov_joke_nonmortozombie_01",
|
||||
"$rov_joke_nonmortozombie_02",
|
||||
"$rov_joke_nonmortozombie_03",
|
||||
"$rov_joke_nonmortozombie_04",
|
||||
"$rov_joke_nonmortozombie_05",
|
||||
"$rov_joke_nonmortozombie_06",
|
||||
"$rov_joke_nonmortozombie_07",
|
||||
"$rov_joke_nonmortozombie_08",
|
||||
"$rov_joke_nonmortozombie_09",
|
||||
"$rov_joke_nonmortozombie_10",
|
||||
},
|
||||
[FactionMerchantCatalog.JokeFantasma] = new[]
|
||||
{
|
||||
"Why was the ghost lonely? It had no-body.",
|
||||
"What's the most useless room in a house for a ghost? A living room.",
|
||||
"What's a ghost's favourite cheese? Ghoul-da cheese.",
|
||||
"What's a ghost's favourite food? Boo-rritos.",
|
||||
"What's a ghost's favourite dessert? I-scream.",
|
||||
"What's a ghost's favourite game? Hide and Shriek.",
|
||||
"What do you call a ghost with a broken leg? A hoblin goblin.",
|
||||
"What happens when a ghost gets lost in the fog? He is mist.",
|
||||
"Ghosts love elevators because it lifts their spirits.",
|
||||
"Why did the ghost cross the road? Because it was a poultry-geist.",
|
||||
"$rov_joke_fantasma_01",
|
||||
"$rov_joke_fantasma_02",
|
||||
"$rov_joke_fantasma_03",
|
||||
"$rov_joke_fantasma_04",
|
||||
"$rov_joke_fantasma_05",
|
||||
"$rov_joke_fantasma_06",
|
||||
"$rov_joke_fantasma_07",
|
||||
"$rov_joke_fantasma_08",
|
||||
"$rov_joke_fantasma_09",
|
||||
"$rov_joke_fantasma_10",
|
||||
},
|
||||
[FactionMerchantCatalog.JokeTroll] = new[]
|
||||
{
|
||||
"Why do trolls love bridges? They're always crossing into new territory.",
|
||||
"Why did the troll get a bad grade? He was always under the bridge of understanding.",
|
||||
"Trolls don't watch TV - they stream mischief.",
|
||||
"Trolls love parties - they bring the bridge snacks.",
|
||||
"Trolls hate Mondays - they bridge the gap to Friday.",
|
||||
"Where do trolls keep their money? Under the bridge, of course.",
|
||||
"What's a troll's favorite candy? Bridge bars.",
|
||||
"Why did the troll go to school? To bridge the knowledge gap.",
|
||||
"What's a troll's favorite movie? The Bridge Runner.",
|
||||
"What makes a troll laugh? Someone taking it seriously.",
|
||||
"$rov_joke_troll_01",
|
||||
"$rov_joke_troll_02",
|
||||
"$rov_joke_troll_03",
|
||||
"$rov_joke_troll_04",
|
||||
"$rov_joke_troll_05",
|
||||
"$rov_joke_troll_06",
|
||||
"$rov_joke_troll_07",
|
||||
"$rov_joke_troll_08",
|
||||
"$rov_joke_troll_09",
|
||||
"$rov_joke_troll_10",
|
||||
},
|
||||
[FactionMerchantCatalog.JokeNano] = new[]
|
||||
{
|
||||
"A dwarf who loved gardening had a real green thumbelina.",
|
||||
"Dwarves make excellent bakers; their scone courses are always the shortest.",
|
||||
"Why do dwarfs make great secret agents? They can really keep things low-key.",
|
||||
"A dwarf walks into a bar and hits his head - the bar was set too low.",
|
||||
"Why are dwarfs so good at math? Because it's the little things that count.",
|
||||
"I saw a dwarf climbing down a prison wall - it was a little condescending.",
|
||||
"What do dwarfs use to fight trolls? Short swords.",
|
||||
"What's a dwarf warrior's motto? Small but deadly.",
|
||||
"A dwarf opened a bakery because he kneaded dough at his level.",
|
||||
"What do you call a dwarf who can be invisible? A short circuit!",
|
||||
"$rov_joke_nano_01",
|
||||
"$rov_joke_nano_02",
|
||||
"$rov_joke_nano_03",
|
||||
"$rov_joke_nano_04",
|
||||
"$rov_joke_nano_05",
|
||||
"$rov_joke_nano_06",
|
||||
"$rov_joke_nano_07",
|
||||
"$rov_joke_nano_08",
|
||||
"$rov_joke_nano_09",
|
||||
"$rov_joke_nano_10",
|
||||
},
|
||||
[FactionMerchantCatalog.JokeLupoLicantropo] = new[]
|
||||
{
|
||||
"Why did the werewolf laugh while chewing on the skeleton? He got to the funny bone.",
|
||||
"Why did the werewolf need to talk with the skeleton? He had a bone to pick with him.",
|
||||
"A what-to-wear-wolf.",
|
||||
"My werewolf skills are claw-some.",
|
||||
"'Howl'-oween, hands down - a werewolf's favorite holiday.",
|
||||
"Why don't werewolves use cell phones? Because they prefer to roam.",
|
||||
"Why did the werewolf sit in the corner? He didn't want to be spotted.",
|
||||
"Why don't werewolves gossip? They can't keep a straight paw.",
|
||||
"You're fur-ociously awesome.",
|
||||
"Howl you doin' tonight?",
|
||||
"$rov_joke_lupolicantropo_01",
|
||||
"$rov_joke_lupolicantropo_02",
|
||||
"$rov_joke_lupolicantropo_03",
|
||||
"$rov_joke_lupolicantropo_04",
|
||||
"$rov_joke_lupolicantropo_05",
|
||||
"$rov_joke_lupolicantropo_06",
|
||||
"$rov_joke_lupolicantropo_07",
|
||||
"$rov_joke_lupolicantropo_08",
|
||||
"$rov_joke_lupolicantropo_09",
|
||||
"$rov_joke_lupolicantropo_10",
|
||||
},
|
||||
[FactionMerchantCatalog.JokeStrega] = new[]
|
||||
{
|
||||
"Resting witch face.",
|
||||
"Hag a nice day.",
|
||||
"What do you call a mage in the desert? A sand-witch.",
|
||||
"What happens to witches who break the rules at school? They get ex-spelled.",
|
||||
"What do witches put in their hair? Scare spray.",
|
||||
"Why did three witches call in the plumber? Hubble, bubble, toilet trouble.",
|
||||
"Why couldn't the little witch read her spellbook? It was written in curse-ive.",
|
||||
"Why did the witch become a lawyer? She wanted to practice witchcraft.",
|
||||
"Witches don't fart. They cast smells.",
|
||||
"A witch tells the time by looking at her witch watch.",
|
||||
"$rov_joke_strega_01",
|
||||
"$rov_joke_strega_02",
|
||||
"$rov_joke_strega_03",
|
||||
"$rov_joke_strega_04",
|
||||
"$rov_joke_strega_05",
|
||||
"$rov_joke_strega_06",
|
||||
"$rov_joke_strega_07",
|
||||
"$rov_joke_strega_08",
|
||||
"$rov_joke_strega_09",
|
||||
"$rov_joke_strega_10",
|
||||
},
|
||||
[FactionMerchantCatalog.JokeLegnoFalegname] = new[]
|
||||
{
|
||||
"Carpenters nail it every time: that's their true calling.",
|
||||
"I told my saw a joke: it couldn't handle the cut.",
|
||||
"I dated a carpenter once: it was a solid relationship.",
|
||||
"Carpenters have great timing: they always measure up.",
|
||||
"My friend builds furniture: he really wood make you laugh.",
|
||||
"A good carpenter never quits: he just saws what he started.",
|
||||
"I asked the wood if it was okay: it said, 'I'm board.'",
|
||||
"I made a joke about a piece of wood, but it was too plane.",
|
||||
"How do trees access the internet? They just log on!",
|
||||
"Why did the plank cross the road? To get to the other siding!",
|
||||
"$rov_joke_legnofalegname_01",
|
||||
"$rov_joke_legnofalegname_02",
|
||||
"$rov_joke_legnofalegname_03",
|
||||
"$rov_joke_legnofalegname_04",
|
||||
"$rov_joke_legnofalegname_05",
|
||||
"$rov_joke_legnofalegname_06",
|
||||
"$rov_joke_legnofalegname_07",
|
||||
"$rov_joke_legnofalegname_08",
|
||||
"$rov_joke_legnofalegname_09",
|
||||
"$rov_joke_legnofalegname_10",
|
||||
},
|
||||
[FactionMerchantCatalog.JokeGoblin] = new[]
|
||||
{
|
||||
"Those goblin fingers are dexter-gnome-us.",
|
||||
"Why did the goblin break the vase? He wanted to smash expectations.",
|
||||
"That goblin really gnome-napped my sandwich.",
|
||||
"Just goblin around.",
|
||||
"They love orc-strating trouble.",
|
||||
"If a goblin smiles at you, check your pockets.",
|
||||
"Why don't goblins shower? They prefer natural grime.",
|
||||
"What's a goblin's favorite sport? Lootball.",
|
||||
"How do goblins shop? Five-finger discount only.",
|
||||
"What's a goblin's password? 'MineMineMine!'",
|
||||
"$rov_joke_goblin_01",
|
||||
"$rov_joke_goblin_02",
|
||||
"$rov_joke_goblin_03",
|
||||
"$rov_joke_goblin_04",
|
||||
"$rov_joke_goblin_05",
|
||||
"$rov_joke_goblin_06",
|
||||
"$rov_joke_goblin_07",
|
||||
"$rov_joke_goblin_08",
|
||||
"$rov_joke_goblin_09",
|
||||
"$rov_joke_goblin_10",
|
||||
},
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -16,9 +16,9 @@ namespace RacesOfValheim
|
|||
|
||||
private static readonly string[] GenericGreets = { "..." };
|
||||
private static readonly string[] GenericGoodbye = { "..." };
|
||||
private static readonly string[] GenericStartTrade = { "What do you need?" };
|
||||
private static readonly string[] GenericBuy = { "Deal." };
|
||||
private static readonly string[] GenericSell = { "Thanks." };
|
||||
private static readonly string[] GenericStartTrade = { "$rov_merchant_start_trade" };
|
||||
private static readonly string[] GenericBuy = { "$rov_merchant_buy" };
|
||||
private static readonly string[] GenericSell = { "$rov_merchant_sell" };
|
||||
|
||||
public static void Postfix(Character __instance)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -51,10 +51,10 @@ namespace RacesOfValheim
|
|||
/// </summary>
|
||||
public static readonly List<Kind> Roster = new List<Kind>
|
||||
{
|
||||
new Kind { Id = "brood", Display = "Brood", Source = "SeekerBrood", Icon = "TrophySeeker", Price = 100f, Stage = 1, Cooldown = 60f },
|
||||
new Kind { Id = "seeker", Display = "Seeker", Source = "Seeker", Icon = "TrophySeeker", Price = 250f, Stage = 2, Cooldown = 150f },
|
||||
new Kind { Id = "soldier", Display = "Soldier", Source = "SeekerBrute", Icon = "TrophySeekerBrute", Price = 500f, Stage = 3, Cooldown = 300f },
|
||||
new Kind { Id = "gjall", Display = "Gjall", Source = "Gjall", Icon = "TrophyGjall", Price = 1000f, Stage = 4, Cooldown = 600f, SpawnHeight = 10f },
|
||||
new Kind { Id = "brood", Display = "$rov_troop_sverm_brood", Source = "SeekerBrood", Icon = "TrophySeeker", Price = 100f, Stage = 1, Cooldown = 60f },
|
||||
new Kind { Id = "seeker", Display = "$rov_troop_sverm_seeker", Source = "Seeker", Icon = "TrophySeeker", Price = 250f, Stage = 2, Cooldown = 150f },
|
||||
new Kind { Id = "soldier", Display = "$rov_troop_sverm_soldier", Source = "SeekerBrute", Icon = "TrophySeekerBrute", Price = 500f, Stage = 3, Cooldown = 300f },
|
||||
new Kind { Id = "gjall", Display = "$rov_troop_sverm_gjall", Source = "Gjall", Icon = "TrophyGjall", Price = 1000f, Stage = 4, Cooldown = 600f, SpawnHeight = 10f },
|
||||
};
|
||||
|
||||
private static int CapOf(string id)
|
||||
|
|
|
|||
|
|
@ -468,7 +468,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() => SvermHiveStage.NameOf(SvermHiveStage.Of(transform));
|
||||
public string GetHoverName() => Localization.instance.Localize(SvermHiveStage.NameOf(SvermHiveStage.Of(transform)));
|
||||
|
||||
private ZNetView nview;
|
||||
private float nextSweep;
|
||||
|
|
|
|||
|
|
@ -68,13 +68,11 @@ namespace RacesOfValheim
|
|||
StageUpgrade(3, "TrophySeekerBrute"),
|
||||
StageUpgrade(4, "TrophySeekerQueen"),
|
||||
|
||||
Star(1, "Surrenal Glands", 800f, "TrophySeeker",
|
||||
"Every troop hatched from now on is born with one star.\n\n" +
|
||||
"It does nothing for the ones already walking around: what is born is born."),
|
||||
Star(1, ModText.Get("rov_sverm_good_glands_name"), 800f, "TrophySeeker",
|
||||
ModText.Get("rov_sverm_good_glands_desc")),
|
||||
|
||||
Star(2, "Hyperplasia", 1600f, "TrophySeekerQueen",
|
||||
"Every troop hatched from now on is born with two stars.\n\n" +
|
||||
"The colony has to have grown the glands first."),
|
||||
Star(2, ModText.Get("rov_sverm_good_hyperplasia_name"), 1600f, "TrophySeekerQueen",
|
||||
ModText.Get("rov_sverm_good_hyperplasia_desc")),
|
||||
};
|
||||
|
||||
foreach (SvermBrood.Kind kind in SvermBrood.Roster) shelf.Add(Troop(kind));
|
||||
|
|
@ -94,23 +92,20 @@ namespace RacesOfValheim
|
|||
return new Good
|
||||
{
|
||||
Id = "blistertick",
|
||||
Name = SvermBlisterTick.DisplayName,
|
||||
Name = Localization.instance.Localize(SvermBlisterTick.DisplayName),
|
||||
Price = SvermConfig.TickPrice,
|
||||
Icon = "TrophyTick",
|
||||
Description = "Buys a PERMANENT slot in the colony. What stands in it runs at whatever " +
|
||||
"the colony is fighting and bursts, and thirty seconds later the nest " +
|
||||
"grows another one - no egg, no biomass, forever.\n\n" +
|
||||
"The blast spares you, your tames and the rest of the colony.",
|
||||
Description = ModText.Get("rov_sverm_good_tick_desc"),
|
||||
|
||||
Refusal = hive =>
|
||||
{
|
||||
int slots = SvermBlisterTick.SlotsOf(hive.transform);
|
||||
if (slots >= SvermConfigManagement.BlisterTick)
|
||||
{
|
||||
return $"The colony already keeps {slots} of them.";
|
||||
return ModText.Get("rov_sverm_refusal_keeps", slots);
|
||||
}
|
||||
|
||||
if (SvermBroodEggs.Count(hive.transform) < 1) return "No brood egg ready.";
|
||||
if (SvermBroodEggs.Count(hive.transform) < 1) return ModText.Get("rov_sverm_refusal_no_egg");
|
||||
|
||||
return null;
|
||||
},
|
||||
|
|
@ -143,20 +138,17 @@ namespace RacesOfValheim
|
|||
return new Good
|
||||
{
|
||||
Id = "stage" + target,
|
||||
Name = SvermHiveStage.NameOf(target),
|
||||
Name = Localization.instance.Localize(SvermHiveStage.NameOf(target)),
|
||||
Price = SvermHiveStage.PriceToLeave(from),
|
||||
Icon = icon,
|
||||
Description = $"Grows the nest into a {SvermHiveStage.NameOf(target)}: it holds " +
|
||||
$"{SvermHiveStage.Capacity(target):0} biomass instead of " +
|
||||
$"{SvermHiveStage.Capacity(from):0}, and stands half again as tall.\n\n" +
|
||||
"It costs this stage's whole tankful, so it leaves the hive all but " +
|
||||
"empty. Grow or field an army - never both in the same breath.",
|
||||
Description = ModText.Get("rov_sverm_good_stage_desc", SvermHiveStage.NameOf(target),
|
||||
SvermHiveStage.Capacity(target).ToString("0"), SvermHiveStage.Capacity(from).ToString("0")),
|
||||
|
||||
Refusal = hive =>
|
||||
{
|
||||
int stage = SvermHiveStage.Of(hive.transform);
|
||||
if (stage > from) return "Already grown past this.";
|
||||
if (stage < from) return $"The nest has to be a {SvermHiveStage.NameOf(from)} first.";
|
||||
if (stage > from) return ModText.Get("rov_sverm_refusal_grown_past");
|
||||
if (stage < from) return ModText.Get("rov_sverm_refusal_stage_first", SvermHiveStage.NameOf(from));
|
||||
return null;
|
||||
},
|
||||
|
||||
|
|
@ -187,8 +179,8 @@ namespace RacesOfValheim
|
|||
Refusal = hive =>
|
||||
{
|
||||
int have = SvermBroodStars.Of(hive.transform);
|
||||
if (have >= stars) return "The colony already breeds like this.";
|
||||
if (have < stars - 1) return "One star at a time.";
|
||||
if (have >= stars) return ModText.Get("rov_sverm_refusal_already_breeds");
|
||||
if (have < stars - 1) return ModText.Get("rov_sverm_refusal_one_star");
|
||||
return null;
|
||||
},
|
||||
|
||||
|
|
@ -208,25 +200,23 @@ namespace RacesOfValheim
|
|||
return new Good
|
||||
{
|
||||
Id = "troop_" + kind.Id,
|
||||
Name = kind.Display,
|
||||
Name = Localization.instance.Localize(kind.Display),
|
||||
Price = kind.Price,
|
||||
Icon = kind.Icon,
|
||||
Description = $"Hatches a {kind.Display}, bound to this nest: it follows when you ask, " +
|
||||
$"walks home when you let it go, and mends itself.\n\n" +
|
||||
$"Costs one brood egg as well as the biomass. At most {kind.Cap} of them alive at once.",
|
||||
Description = ModText.Get("rov_sverm_good_troop_desc", kind.Display, kind.Cap),
|
||||
|
||||
Refusal = hive =>
|
||||
{
|
||||
int stage = SvermHiveStage.Of(hive.transform);
|
||||
if (stage < kind.Stage)
|
||||
{
|
||||
return $"The nest has to be a {SvermHiveStage.NameOf(kind.Stage)} first.";
|
||||
return ModText.Get("rov_sverm_refusal_stage_first", SvermHiveStage.NameOf(kind.Stage));
|
||||
}
|
||||
|
||||
int alive = SvermBrood.CountAlive(hive, kind);
|
||||
if (alive >= kind.Cap) return $"The colony is already keeping {alive} of them.";
|
||||
if (alive >= kind.Cap) return ModText.Get("rov_sverm_refusal_keeping", alive);
|
||||
|
||||
if (SvermBroodEggs.Count(hive.transform) < 1) return "No brood egg ready.";
|
||||
if (SvermBroodEggs.Count(hive.transform) < 1) return ModText.Get("rov_sverm_refusal_no_egg");
|
||||
|
||||
return null;
|
||||
},
|
||||
|
|
@ -265,7 +255,7 @@ namespace RacesOfValheim
|
|||
/// </summary>
|
||||
public static string RefusalFor(Good good, SvermHiveBehaviour hive)
|
||||
{
|
||||
if (good == null || hive == null) return "No hive.";
|
||||
if (good == null || hive == null) return ModText.Get("rov_sverm_refusal_no_hive");
|
||||
|
||||
string ownRefusal = good.Refusal != null ? good.Refusal(hive) : null;
|
||||
if (ownRefusal != null) return ownRefusal;
|
||||
|
|
@ -274,11 +264,11 @@ namespace RacesOfValheim
|
|||
if (waitingSeconds > 0L)
|
||||
{
|
||||
return waitingSeconds >= 60L
|
||||
? $"The hive is still working on the last one ({waitingSeconds / 60}m)."
|
||||
: $"The hive is still working on the last one ({waitingSeconds}s).";
|
||||
? ModText.Get("rov_sverm_refusal_working_m", waitingSeconds / 60)
|
||||
: ModText.Get("rov_sverm_refusal_working_s", waitingSeconds);
|
||||
}
|
||||
|
||||
if (SvermBiomass.Bank(hive.transform) < good.Price) return "Not enough biomass in the bank.";
|
||||
if (SvermBiomass.Bank(hive.transform) < good.Price) return ModText.Get("rov_msg_sverm_not_enough_biomass_bank");
|
||||
|
||||
return null;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -27,12 +27,13 @@ namespace RacesOfValheim
|
|||
public const int Last = 4;
|
||||
|
||||
/// <summary>The four names from section 2. The piece is registered under the first one.</summary>
|
||||
/// Translation tokens, not text: localize them wherever they are shown.
|
||||
public static readonly string[] Names =
|
||||
{
|
||||
"Brood Mound",
|
||||
"Gorged Hive",
|
||||
"Nesting Spire",
|
||||
"Hive Citadel",
|
||||
"$rov_piece_sverm_broodmound_name",
|
||||
"$rov_sverm_stage_gorgedhive",
|
||||
"$rov_sverm_stage_nestingspire",
|
||||
"$rov_sverm_stage_hivecitadel",
|
||||
};
|
||||
|
||||
public static int Of(Transform nest)
|
||||
|
|
|
|||
133
JotunnModStub/Translations/English/merchants.json
Normal file
133
JotunnModStub/Translations/English/merchants.json
Normal file
|
|
@ -0,0 +1,133 @@
|
|||
{
|
||||
"rov_joke_fantasma_01": "Why was the ghost lonely? It had no-body.",
|
||||
"rov_joke_fantasma_02": "What's the most useless room in a house for a ghost? A living room.",
|
||||
"rov_joke_fantasma_03": "What's a ghost's favourite cheese? Ghoul-da cheese.",
|
||||
"rov_joke_fantasma_04": "What's a ghost's favourite food? Boo-rritos.",
|
||||
"rov_joke_fantasma_05": "What's a ghost's favourite dessert? I-scream.",
|
||||
"rov_joke_fantasma_06": "What's a ghost's favourite game? Hide and Shriek.",
|
||||
"rov_joke_fantasma_07": "What do you call a ghost with a broken leg? A hoblin goblin.",
|
||||
"rov_joke_fantasma_08": "What happens when a ghost gets lost in the fog? He is mist.",
|
||||
"rov_joke_fantasma_09": "Ghosts love elevators because it lifts their spirits.",
|
||||
"rov_joke_fantasma_10": "Why did the ghost cross the road? Because it was a poultry-geist.",
|
||||
"rov_joke_goblin_01": "Those goblin fingers are dexter-gnome-us.",
|
||||
"rov_joke_goblin_02": "Why did the goblin break the vase? He wanted to smash expectations.",
|
||||
"rov_joke_goblin_03": "That goblin really gnome-napped my sandwich.",
|
||||
"rov_joke_goblin_04": "Just goblin around.",
|
||||
"rov_joke_goblin_05": "They love orc-strating trouble.",
|
||||
"rov_joke_goblin_06": "If a goblin smiles at you, check your pockets.",
|
||||
"rov_joke_goblin_07": "Why don't goblins shower? They prefer natural grime.",
|
||||
"rov_joke_goblin_08": "What's a goblin's favorite sport? Lootball.",
|
||||
"rov_joke_goblin_09": "How do goblins shop? Five-finger discount only.",
|
||||
"rov_joke_goblin_10": "What's a goblin's password? 'MineMineMine!'",
|
||||
"rov_joke_legnofalegname_01": "Carpenters nail it every time: that's their true calling.",
|
||||
"rov_joke_legnofalegname_02": "I told my saw a joke: it couldn't handle the cut.",
|
||||
"rov_joke_legnofalegname_03": "I dated a carpenter once: it was a solid relationship.",
|
||||
"rov_joke_legnofalegname_04": "Carpenters have great timing: they always measure up.",
|
||||
"rov_joke_legnofalegname_05": "My friend builds furniture: he really wood make you laugh.",
|
||||
"rov_joke_legnofalegname_06": "A good carpenter never quits: he just saws what he started.",
|
||||
"rov_joke_legnofalegname_07": "I asked the wood if it was okay: it said, 'I'm board.'",
|
||||
"rov_joke_legnofalegname_08": "I made a joke about a piece of wood, but it was too plane.",
|
||||
"rov_joke_legnofalegname_09": "How do trees access the internet? They just log on!",
|
||||
"rov_joke_legnofalegname_10": "Why did the plank cross the road? To get to the other siding!",
|
||||
"rov_joke_lupolicantropo_01": "Why did the werewolf laugh while chewing on the skeleton? He got to the funny bone.",
|
||||
"rov_joke_lupolicantropo_02": "Why did the werewolf need to talk with the skeleton? He had a bone to pick with him.",
|
||||
"rov_joke_lupolicantropo_03": "A what-to-wear-wolf.",
|
||||
"rov_joke_lupolicantropo_04": "My werewolf skills are claw-some.",
|
||||
"rov_joke_lupolicantropo_05": "'Howl'-oween, hands down - a werewolf's favorite holiday.",
|
||||
"rov_joke_lupolicantropo_06": "Why don't werewolves use cell phones? Because they prefer to roam.",
|
||||
"rov_joke_lupolicantropo_07": "Why did the werewolf sit in the corner? He didn't want to be spotted.",
|
||||
"rov_joke_lupolicantropo_08": "Why don't werewolves gossip? They can't keep a straight paw.",
|
||||
"rov_joke_lupolicantropo_09": "You're fur-ociously awesome.",
|
||||
"rov_joke_lupolicantropo_10": "Howl you doin' tonight?",
|
||||
"rov_joke_nano_01": "A dwarf who loved gardening had a real green thumbelina.",
|
||||
"rov_joke_nano_02": "Dwarves make excellent bakers; their scone courses are always the shortest.",
|
||||
"rov_joke_nano_03": "Why do dwarfs make great secret agents? They can really keep things low-key.",
|
||||
"rov_joke_nano_04": "A dwarf walks into a bar and hits his head - the bar was set too low.",
|
||||
"rov_joke_nano_05": "Why are dwarfs so good at math? Because it's the little things that count.",
|
||||
"rov_joke_nano_06": "I saw a dwarf climbing down a prison wall - it was a little condescending.",
|
||||
"rov_joke_nano_07": "What do dwarfs use to fight trolls? Short swords.",
|
||||
"rov_joke_nano_08": "What's a dwarf warrior's motto? Small but deadly.",
|
||||
"rov_joke_nano_09": "A dwarf opened a bakery because he kneaded dough at his level.",
|
||||
"rov_joke_nano_10": "What do you call a dwarf who can be invisible? A short circuit!",
|
||||
"rov_joke_nonmortozombie_01": "When do zombies go to sleep? When they are dead tired.",
|
||||
"rov_joke_nonmortozombie_02": "What streets do zombies live on? Dead ends.",
|
||||
"rov_joke_nonmortozombie_03": "Where do zombies go sailing? Lake Eerie.",
|
||||
"rov_joke_nonmortozombie_04": "What do you call a zombie in pajamas? The sleepwalking dead.",
|
||||
"rov_joke_nonmortozombie_05": "How are zombies like computers? They use mega-bites!",
|
||||
"rov_joke_nonmortozombie_06": "Why did the zombie lose his lawsuit? He had no leg to stand on!",
|
||||
"rov_joke_nonmortozombie_07": "Why did the zombie eat a light bulb? Because he wanted a light snack.",
|
||||
"rov_joke_nonmortozombie_08": "Why don't zombies eat clowns? Because they taste funny!",
|
||||
"rov_joke_nonmortozombie_09": "Why did the zombie go to school? To improve his brainpower.",
|
||||
"rov_joke_nonmortozombie_10": "Zombies are hopeless romantics, seeking their ghoul-mate.",
|
||||
"rov_joke_scheletro_01": "What do you call a skeleton who never does his chores? Lazy bones.",
|
||||
"rov_joke_scheletro_02": "Why did the skeleton quit his job? His heart wasn't in it.",
|
||||
"rov_joke_scheletro_03": "What skeleton was the first emperor of France? Napoleon Bone-aparte.",
|
||||
"rov_joke_scheletro_04": "Who is the world's most famous skeleton detective? Sherlock Bones.",
|
||||
"rov_joke_scheletro_05": "What did the French skeletons say before eating their dinner? Bone appetit!",
|
||||
"rov_joke_scheletro_06": "What do skeletons always order when they go to a restaurant? Spare ribs.",
|
||||
"rov_joke_scheletro_07": "How do skeletons call each other? On their tele-bone.",
|
||||
"rov_joke_scheletro_08": "What's a skeleton's favorite fruit? Bone-ana!",
|
||||
"rov_joke_scheletro_09": "Why are skeletons bad at lying? You can see right through them!",
|
||||
"rov_joke_scheletro_10": "Why don't skeletons fight each other? They don't have the guts.",
|
||||
"rov_joke_strega_01": "Resting witch face.",
|
||||
"rov_joke_strega_02": "Hag a nice day.",
|
||||
"rov_joke_strega_03": "What do you call a mage in the desert? A sand-witch.",
|
||||
"rov_joke_strega_04": "What happens to witches who break the rules at school? They get ex-spelled.",
|
||||
"rov_joke_strega_05": "What do witches put in their hair? Scare spray.",
|
||||
"rov_joke_strega_06": "Why did three witches call in the plumber? Hubble, bubble, toilet trouble.",
|
||||
"rov_joke_strega_07": "Why couldn't the little witch read her spellbook? It was written in curse-ive.",
|
||||
"rov_joke_strega_08": "Why did the witch become a lawyer? She wanted to practice witchcraft.",
|
||||
"rov_joke_strega_09": "Witches don't fart. They cast smells.",
|
||||
"rov_joke_strega_10": "A witch tells the time by looking at her witch watch.",
|
||||
"rov_joke_troll_01": "Why do trolls love bridges? They're always crossing into new territory.",
|
||||
"rov_joke_troll_02": "Why did the troll get a bad grade? He was always under the bridge of understanding.",
|
||||
"rov_joke_troll_03": "Trolls don't watch TV - they stream mischief.",
|
||||
"rov_joke_troll_04": "Trolls love parties - they bring the bridge snacks.",
|
||||
"rov_joke_troll_05": "Trolls hate Mondays - they bridge the gap to Friday.",
|
||||
"rov_joke_troll_06": "Where do trolls keep their money? Under the bridge, of course.",
|
||||
"rov_joke_troll_07": "What's a troll's favorite candy? Bridge bars.",
|
||||
"rov_joke_troll_08": "Why did the troll go to school? To bridge the knowledge gap.",
|
||||
"rov_joke_troll_09": "What's a troll's favorite movie? The Bridge Runner.",
|
||||
"rov_joke_troll_10": "What makes a troll laugh? Someone taking it seriously.",
|
||||
"rov_merchant_buy": "Deal.",
|
||||
"rov_merchant_dverg_name": "Dverg",
|
||||
"rov_merchant_sell": "Thanks.",
|
||||
"rov_merchant_start_trade": "What do you need?",
|
||||
"rov_sverm_good_glands_desc": "Every troop hatched from now on is born with one star.\n\nIt does nothing for the ones already walking around: what is born is born.",
|
||||
"rov_sverm_good_glands_name": "Surrenal Glands",
|
||||
"rov_sverm_good_hyperplasia_desc": "Every troop hatched from now on is born with two stars.\n\nThe colony has to have grown the glands first.",
|
||||
"rov_sverm_good_hyperplasia_name": "Hyperplasia",
|
||||
"rov_sverm_good_stage_desc": "Grows the nest into a $1: it holds $2 biomass instead of $3, and stands half again as tall.\n\nIt costs this stage's whole tankful, so it leaves the hive all but empty. Grow or field an army - never both in the same breath.",
|
||||
"rov_sverm_good_tick_desc": "Buys a PERMANENT slot in the colony. What stands in it runs at whatever the colony is fighting and bursts, and thirty seconds later the nest grows another one - no egg, no biomass, forever.\n\nThe blast spares you, your tames and the rest of the colony.",
|
||||
"rov_sverm_good_troop_desc": "Hatches a $1, bound to this nest: it follows when you ask, walks home when you let it go, and mends itself.\n\nCosts one brood egg as well as the biomass. At most $2 of them alive at once.",
|
||||
"rov_sverm_refusal_already_breeds": "The colony already breeds like this.",
|
||||
"rov_sverm_refusal_grown_past": "Already grown past this.",
|
||||
"rov_sverm_refusal_keeping": "The colony is already keeping $1 of them.",
|
||||
"rov_sverm_refusal_keeps": "The colony already keeps $1 of them.",
|
||||
"rov_sverm_refusal_no_egg": "No brood egg ready.",
|
||||
"rov_sverm_refusal_no_hive": "No hive.",
|
||||
"rov_sverm_refusal_one_star": "One star at a time.",
|
||||
"rov_sverm_refusal_stage_first": "The nest has to be a $1 first.",
|
||||
"rov_sverm_refusal_working_m": "The hive is still working on the last one ($1m).",
|
||||
"rov_sverm_refusal_working_s": "The hive is still working on the last one ($1s).",
|
||||
"rov_sverm_stage_gorgedhive": "Gorged Hive",
|
||||
"rov_sverm_stage_hivecitadel": "Hive Citadel",
|
||||
"rov_sverm_stage_nestingspire": "Nesting Spire",
|
||||
"rov_troop_dvergar_ash_guard": "Ash Guard",
|
||||
"rov_troop_dvergar_escort": "Escort",
|
||||
"rov_troop_dvergar_fire_crew": "Fire Crew",
|
||||
"rov_troop_dvergar_runic_crew": "Runic Crew",
|
||||
"rov_troop_dvergar_seal_price": "List price $1 - your seal takes it to $2.",
|
||||
"rov_troop_dvergar_terms": "They answer the follow command, knit their own wounds shut, keep your truce with the mountain's dvergr, drop nothing, and do not come back. A dead crew is money spent.",
|
||||
"rov_troop_dvergar_yard_patrol": "Yard Patrol",
|
||||
"rov_troop_sverm_brood": "Brood",
|
||||
"rov_troop_sverm_gjall": "Gjall",
|
||||
"rov_troop_sverm_seeker": "Seeker",
|
||||
"rov_troop_sverm_soldier": "Soldier",
|
||||
"rov_troop_trol_goblin_band": "Fuling War Band",
|
||||
"rov_troop_trol_goblin_patrol": "Fuling Patrol",
|
||||
"rov_troop_trol_greydwarf_patrol": "Greydwarf Patrol",
|
||||
"rov_troop_trol_terms": "They answer the follow command, knit their own wounds shut, drop nothing, and do not come back. A dead warband is money spent.",
|
||||
"rov_troop_trol_troll": "Troll",
|
||||
"rov_troop_trol_troll_summoned": "Staff Troll"
|
||||
}
|
||||
43
JotunnModStub/Translations/Italian/merchants.json
Normal file
43
JotunnModStub/Translations/Italian/merchants.json
Normal file
|
|
@ -0,0 +1,43 @@
|
|||
{
|
||||
"rov_merchant_buy": "Affare fatto.",
|
||||
"rov_merchant_dverg_name": "Dverg",
|
||||
"rov_merchant_sell": "Grazie.",
|
||||
"rov_merchant_start_trade": "Di cosa hai bisogno?",
|
||||
"rov_sverm_good_glands_desc": "Da ora ogni truppa che si schiude nasce con una stella.\n\nNon cambia niente per quelle che già camminano: ciò che è nato è nato.",
|
||||
"rov_sverm_good_glands_name": "Ghiandole surrenali",
|
||||
"rov_sverm_good_hyperplasia_desc": "Da ora ogni truppa che si schiude nasce con due stelle.\n\nPrima la colonia deve aver sviluppato le ghiandole.",
|
||||
"rov_sverm_good_hyperplasia_name": "Iperplasia",
|
||||
"rov_sverm_good_stage_desc": "Fa crescere il nido fino a $1: contiene $2 di biomassa invece di $3, ed è alto una volta e mezza.\n\nCosta l'intera riserva di questo stadio, quindi lascia l'alveare quasi vuoto. Cresci o schiera un esercito: mai entrambe le cose insieme.",
|
||||
"rov_sverm_good_tick_desc": "Compra un posto PERMANENTE nella colonia. Ciò che lo occupa corre contro chiunque la colonia stia combattendo ed esplode, e trenta secondi dopo il nido ne fa crescere un altro: niente uovo, niente biomassa, per sempre.\n\nL'esplosione risparmia te, le tue creature addomesticate e il resto della colonia.",
|
||||
"rov_sverm_good_troop_desc": "Fa schiudere: $1, legato a questo nido. Ti segue quando glielo chiedi, torna a casa quando lo lasci andare e si ripara da solo.\n\nCosta un uovo della covata oltre alla biomassa. Al massimo $2 vivi alla volta.",
|
||||
"rov_sverm_refusal_already_breeds": "La colonia si riproduce già così.",
|
||||
"rov_sverm_refusal_grown_past": "Già cresciuto oltre questo stadio.",
|
||||
"rov_sverm_refusal_keeping": "La colonia ne sta già tenendo $1.",
|
||||
"rov_sverm_refusal_keeps": "La colonia ne tiene già $1.",
|
||||
"rov_sverm_refusal_no_egg": "Nessun uovo della covata pronto.",
|
||||
"rov_sverm_refusal_no_hive": "Nessun alveare.",
|
||||
"rov_sverm_refusal_one_star": "Una stella alla volta.",
|
||||
"rov_sverm_refusal_stage_first": "Prima il nido deve diventare: $1.",
|
||||
"rov_sverm_refusal_working_m": "L'alveare sta ancora lavorando all'ultimo ($1m).",
|
||||
"rov_sverm_refusal_working_s": "L'alveare sta ancora lavorando all'ultimo ($1s).",
|
||||
"rov_sverm_stage_gorgedhive": "Alveare rigonfio",
|
||||
"rov_sverm_stage_hivecitadel": "Cittadella dell'alveare",
|
||||
"rov_sverm_stage_nestingspire": "Guglia del nido",
|
||||
"rov_troop_dvergar_ash_guard": "Guardia di cenere",
|
||||
"rov_troop_dvergar_escort": "Scorta",
|
||||
"rov_troop_dvergar_fire_crew": "Squadra del fuoco",
|
||||
"rov_troop_dvergar_runic_crew": "Squadra runica",
|
||||
"rov_troop_dvergar_seal_price": "Prezzo di listino $1: il tuo sigillo lo porta a $2.",
|
||||
"rov_troop_dvergar_terms": "Rispondono al comando di seguirti, si ricuciono da soli le ferite, rispettano la tua tregua con i dvergr della montagna, non lasciano bottino e non tornano. Una squadra morta è denaro speso.",
|
||||
"rov_troop_dvergar_yard_patrol": "Ronda del cortile",
|
||||
"rov_troop_sverm_brood": "Covata",
|
||||
"rov_troop_sverm_gjall": "Gjall",
|
||||
"rov_troop_sverm_seeker": "Cercatore",
|
||||
"rov_troop_sverm_soldier": "Soldato",
|
||||
"rov_troop_trol_goblin_band": "Banda da guerra Fuling",
|
||||
"rov_troop_trol_goblin_patrol": "Pattuglia Fuling",
|
||||
"rov_troop_trol_greydwarf_patrol": "Pattuglia di nani grigi",
|
||||
"rov_troop_trol_terms": "Rispondono al comando di seguirti, si ricuciono da soli le ferite, non lasciano bottino e non tornano. Una banda morta è denaro speso.",
|
||||
"rov_troop_trol_troll": "Troll",
|
||||
"rov_troop_trol_troll_summoned": "Troll del bastone"
|
||||
}
|
||||
|
|
@ -93,7 +93,7 @@ namespace RacesOfValheim
|
|||
{
|
||||
new Troop
|
||||
{
|
||||
Id = "greydwarf_patrol", Display = "Greydwarf Patrol", Price = 400, NeedsUpgrade = false, Icon = "TrophyGreydwarfBrute",
|
||||
Id = "greydwarf_patrol", Display = "$rov_troop_trol_greydwarf_patrol", Price = 400, NeedsUpgrade = false, Icon = "TrophyGreydwarfBrute",
|
||||
Members = new[]
|
||||
{
|
||||
new KeyValuePair<string, int>("Greydwarf", 4),
|
||||
|
|
@ -103,17 +103,17 @@ namespace RacesOfValheim
|
|||
},
|
||||
new Troop
|
||||
{
|
||||
Id = "troll", Display = "Troll", Price = 700, NeedsUpgrade = false, Icon = "TrophyForestTroll",
|
||||
Id = "troll", Display = "$rov_troop_trol_troll", Price = 700, NeedsUpgrade = false, Icon = "TrophyForestTroll",
|
||||
Members = new[] { new KeyValuePair<string, int>("Troll", 1) }
|
||||
},
|
||||
new Troop
|
||||
{
|
||||
Id = "troll_summoned", Display = "Staff Troll", Price = 900, NeedsUpgrade = false, Icon = "TrophyForestTroll",
|
||||
Id = "troll_summoned", Display = "$rov_troop_trol_troll_summoned", Price = 900, NeedsUpgrade = false, Icon = "TrophyForestTroll",
|
||||
Members = new[] { new KeyValuePair<string, int>("Troll_Summoned", 1) }
|
||||
},
|
||||
new Troop
|
||||
{
|
||||
Id = "goblin_patrol", Display = "Fuling Patrol", Price = 1400, NeedsUpgrade = true, Icon = "TrophyGoblinBrute",
|
||||
Id = "goblin_patrol", Display = "$rov_troop_trol_goblin_patrol", Price = 1400, NeedsUpgrade = true, Icon = "TrophyGoblinBrute",
|
||||
Members = new[]
|
||||
{
|
||||
new KeyValuePair<string, int>("Goblin", 4),
|
||||
|
|
@ -123,7 +123,7 @@ namespace RacesOfValheim
|
|||
},
|
||||
new Troop
|
||||
{
|
||||
Id = "goblin_band", Display = "Fuling War Band", Price = 2000, NeedsUpgrade = true, Icon = "TrophyGoblin",
|
||||
Id = "goblin_band", Display = "$rov_troop_trol_goblin_band", Price = 2000, NeedsUpgrade = true, Icon = "TrophyGoblin",
|
||||
Members = new[]
|
||||
{
|
||||
new KeyValuePair<string, int>("Goblin", 4),
|
||||
|
|
|
|||
|
|
@ -128,13 +128,13 @@ namespace RacesOfValheim
|
|||
else Jotunn.Logger.LogWarning($"[Trol] No icon on '{troop.Icon}' for {troop.Display}; the row keeps " +
|
||||
"whatever the cloned element was showing.");
|
||||
|
||||
element.transform.Find("name").GetComponent<TMP_Text>().text = troop.Display;
|
||||
element.transform.Find("name").GetComponent<TMP_Text>().text = Localization.instance.Localize(troop.Display);
|
||||
|
||||
TMP_Text price = FindDescendant<TMP_Text>(element.transform, "price");
|
||||
if (price != null) price.text = troop.Price.ToString();
|
||||
|
||||
UITooltip tooltip = element.GetComponent<UITooltip>();
|
||||
if (tooltip != null) tooltip.Set(troop.Display, Composition(troop), gui.m_tooltipAnchor, default(Vector2));
|
||||
if (tooltip != null) tooltip.Set(Localization.instance.Localize(troop.Display), Composition(troop), gui.m_tooltipAnchor, default(Vector2));
|
||||
|
||||
string id = troop.Id;
|
||||
element.GetComponent<Button>().onClick.AddListener(() =>
|
||||
|
|
@ -155,8 +155,7 @@ namespace RacesOfValheim
|
|||
if (text.Length > 0) text.Append('\n');
|
||||
text.Append(member.Value).Append(" x ").Append(CreatureName(member.Key));
|
||||
}
|
||||
text.Append("\n\nThey answer the follow command, knit their own wounds shut, drop nothing, and do " +
|
||||
"not come back. A dead warband is money spent.");
|
||||
text.Append("\n\n").Append(ModText.Get("rov_troop_trol_terms"));
|
||||
return text.ToString();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue