From 0c9149e5b72dd5fb905df4989d14e0d184c8054a Mon Sep 17 00:00:00 2001 From: Mark Date: Fri, 5 Sep 2025 21:56:43 +0200 Subject: [PATCH] Add missing factory description in instructions (fixes #1974) (#2005) ## Description: Added missing factory description to instructions and improved some instruction texts. Fixes #1974. ![Screenshot 2025-09-04 222654](https://github.com/user-attachments/assets/8a33dee6-86d4-4ffe-b5f6-695be28d580f) ## Please complete the following: - [x] I have added screenshots for all UI updates - [x] I process any text displayed to the user through translateText() and I've added it to the en.json file - [x] I have added relevant tests to the test directory - [x] I confirm I have thoroughly tested these changes and take full responsibility for any bugs introduced ## Please put your Discord username so you can be contacted if a bug or regression is found: dutchster_ --------- Co-authored-by: izub <3972940+izub@users.noreply.github.com> --- resources/lang/en.json | 4 ++-- src/client/HelpModal.ts | 5 +++++ 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/resources/lang/en.json b/resources/lang/en.json index 28481e669..d61250b2b 100644 --- a/resources/lang/en.json +++ b/resources/lang/en.json @@ -94,11 +94,11 @@ "build_city": "City", "build_city_desc": "Increases your max population. Useful when you can't expand your territory or you're about to hit your population limit.", "build_factory": "Factory", - "build_factory_desc": "Creates railroads automatically with nearby structures, and spawns trains sporadically.", + "build_factory_desc": "Automatically builds railroads to nearby cities, ports and other factories, and can also link up with friendly neighbors. Trains spawn regularly and give you a fixed amount of gold for each building they visit along the route, with extra gold for visiting your neighbors' buildings.", "build_defense": "Defense Post", "build_defense_desc": "Increases defenses around nearby borders, which show a checkered pattern. Attacks from enemies are slower and have more casualties.", "build_port": "Port", - "build_port_desc": "Can only be built near water. Allows building Warships. Automatically sends trade ships between ports of your country and other countries (except when trade is stopped), giving gold to both sides. Trade stops automatically when you attack or are attacked by a player. It resumes after 5 minutes or if you become allies. You can manually toggle trading with \"Stop trading\" or \"Start trading\".", + "build_port_desc": "Can only be built near water. Allows building Warships. Automatically sends trade ships between ports of your country and other countries (except when trade is stopped), giving gold to both sides. Trade with a player stops automatically when you attack or are attacked by a player. It resumes after 5 minutes or if you become allies. You can manually toggle trading with \"Stop trading\" or \"Start trading\".", "build_warship": "Warship", "build_warship_desc": "Patrols in an area, capturing enemy trade ships and destroying their Boats (transport ships) and Warships. Spawns from the nearest Port and patrols the area you first clicked to build it. You can control Warships by attack-clicking on them (see action Attack under Hotkeys) and then attack-clicking the new area you want them to move to.", "build_silo": "Missile Silo", diff --git a/src/client/HelpModal.ts b/src/client/HelpModal.ts index 2c9e33cbb..1b840c27b 100644 --- a/src/client/HelpModal.ts +++ b/src/client/HelpModal.ts @@ -459,6 +459,11 @@ export class HelpModal extends LitElement {
${translateText("help_modal.build_port_desc")} + + ${translateText("help_modal.build_factory")} +
+ ${translateText("help_modal.build_factory_desc")} + ${translateText("help_modal.build_warship")}