Skip to content

Commit c15f7f3

Browse files
authored
Merge pull request #249 from DiplomacyTeam/dev
Release 1.2.9
2 parents 0b038f7 + 92e3e31 commit c15f7f3

8 files changed

Lines changed: 22 additions & 9 deletions

File tree

build/common.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
<!--Module Version-->
44
<PropertyGroup>
5-
<Version>1.2.8</Version>
5+
<Version>1.2.9</Version>
66
<GameVersion>1.0.0</GameVersion>
77
</PropertyGroup>
88

changelog.txt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
---------------------------------------------------------------------------------------------------
2+
Version: 1.2.9
3+
Game Versions: v1.0.0,v1.0.1,v1.0.2,v1.0.3,v1.1.0,v1.1.1,v1.1.2,v1.1.3,v1.1.4,v1.1.5,v1.1.6,v1.2.0,v1.2.1,v1.2.2,v1.2.3,v1.2.4,v1.2.5
4+
* Add support for v1.2.5
5+
---------------------------------------------------------------------------------------------------
26
Version: 1.2.8
3-
Game Versions: v1.0.0,v1.0.1,v1.0.2,v1.0.3,v1.1.0,v1.1.1,v1.1.2,v1.1.3,v1.1.4,v1.1.5,v1.1.6,v1.2.0,v1.2.1,v1.2.2,v1.2.3.v1.2.4
7+
Game Versions: v1.0.0,v1.0.1,v1.0.2,v1.0.3,v1.1.0,v1.1.1,v1.1.2,v1.1.3,v1.1.4,v1.1.5,v1.1.6,v1.2.0,v1.2.1,v1.2.2,v1.2.3,v1.2.4
48
* Add support for v1.2.4
59
---------------------------------------------------------------------------------------------------
610
Version: 1.2.7

src/Bannerlord.Diplomacy/SubModule.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
using TaleWorlds.Core;
2121
using TaleWorlds.Library;
2222
using TaleWorlds.MountAndBlade;
23+
using TaleWorlds.Localization;
2324

2425
namespace Diplomacy
2526
{
@@ -28,7 +29,7 @@ public sealed class SubModule : MBSubModuleBase
2829
public static readonly string Version = $"v{typeof(SubModule).Assembly.GetName().Version.ToString(3)}";
2930

3031
public static readonly string Name = typeof(SubModule).Namespace;
31-
public static readonly string DisplayName = Name;
32+
public static readonly string DisplayName = new TextObject($"{{=MYz8nKqq}}{Name}").ToString();
3233
public static readonly string MainHarmonyDomain = "bannerlord." + Name.ToLower();
3334
public static readonly string CampaignHarmonyDomain = MainHarmonyDomain + ".campaign";
3435
public static readonly string WidgetHarmonyDomain = MainHarmonyDomain + ".widgets";
@@ -74,7 +75,7 @@ protected override void OnBeforeInitialModuleScreenSetAsRoot()
7475
_hasLoaded = true;
7576
Log.LogInformation($"Loaded {Name} {Version}!");
7677

77-
InformationManager.DisplayMessage(new InformationMessage($"Loaded {DisplayName}", StdTextColor));
78+
InformationManager.DisplayMessage(new InformationMessage(new TextObject($"{{=hPERH3u4}}Loaded {{NAME}}").SetTextVariable("NAME", DisplayName).ToString(), StdTextColor));
7879
}
7980
}
8081

src/Bannerlord.Diplomacy/ViewModel/RebelFactionsVM.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ public void OnCreateFaction()
139139
inquiryElements,
140140
true,
141141
1,
142-
#if v120 || v121 || v122 || v123 || v124
142+
#if v120 || v121 || v122 || v123 || v124 || v125
143143
1,
144144
#endif
145145
GameTexts.FindText("str_ok").ToString(),

src/Bannerlord.Diplomacy/_Module/ModuleData/Languages/civil_war_strings_xml.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@
9797
<string id="6kNmdLxZ" text="Faction Creation Influence Cost" />
9898
<string id="EwbXg3va" text="The influence cost of starting a faction. Default value is 100." />
9999
<string id="7wK0mmw1" text="Faction Tendency" />
100-
<string id="7wK0mmw1" text="Score modifier affecting the tendency of clans to create or join factions. Increasing the modifier increases faction participation. Default value is 0." />
100+
<string id="aqvIdG7w" text="Score modifier affecting the tendency of clans to create or join factions. Increasing the modifier increases faction participation. Default value is 0." />
101101

102102
</strings>
103103
</base>
Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,8 @@
11
<?xml version="1.0" encoding="utf-8"?>
2-
<LanguageData id="English" />
2+
<LanguageData id="English">
3+
<LanguageFile xml_path="civil_war_strings_xml.xml" />
4+
<LanguageFile xml_path="faction_names_xml.xml" />
5+
<LanguageFile xml_path="help_strings_xml.xml" />
6+
<LanguageFile xml_path="std_module_strings_xml.xml" />
7+
<LanguageFile xml_path="war_exhaustion_strings.xml" />
8+
</LanguageData>

src/Bannerlord.Diplomacy/_Module/ModuleData/Languages/std_module_strings_xml.xml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@
6262
<string id="DrnXprup" text="You have been at war too recently to consider an alliance. It has only been {ELAPSED_DAYS} days out of a required {REQUIRED_DAYS} days." />
6363
<string id="KHJyWj9H" text="Cannot be in an alliance." />
6464
<string id="UQZmdLzc" text="Cannot be at war." />
65-
<string id="PdN5g5ub" text="Alliance Formed" />
65+
<string id="qIa19an4" text="Alliance Formed" />
6666
<string id="3pbwc8sh" text="Alliance Proposal"/>
6767
<string id="QbOqatd7" text="{KINGDOM} is proposing an alliance with {PLAYER_KINGDOM}." />
6868

@@ -101,7 +101,7 @@
101101
<string id="gyLjlpJB" text="{KINGDOM} is proposing a non-aggression pact with {PLAYER_KINGDOM}."/>
102102

103103
<string id="9pY0NQrk" text="Form Pact"/>
104-
<string id="9zlQNtlX" text="Form a non-aggression pact lasting {PACT_DURATION_DAYS} days."/>
104+
<string id="9zlQNtlX" text="Form a non-aggression pact lasting {DAYS} days."/>
105105

106106
<string id="1occw3EF" text="Stats"/>
107107
<string id="OvbY5qxL" text="Overview"/>
@@ -136,6 +136,7 @@
136136
<string id="qbLPBlIv" text="Calradia grows wary of the inexorable expansion of the {EXPANSIONIST_KINGDOM}. A coalition led by the {COALITION_KINGDOM} has been formed to fight them!"/>
137137

138138
<string id="vB3RrMNf" text="The {KINGDOM} has formed a non-aggression pact with the {OTHER_KINGDOM}." />
139+
<string id="PdN5g5ub" text="{KINGDOM} has formed an alliance with {OTHER_KINGDOM}!">
139140
<string id="5r6fsHgm" text="Current Score"/>
140141
<string id="XIBUWDlT" text="Required Score"/>
141142

supported-game-versions.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
v1.2.5
12
v1.2.4
23
v1.2.3
34
v1.2.2

0 commit comments

Comments
 (0)