Skip to content

Commit

Permalink
Merge pull request #193 from DiplomacyTeam/dev
Browse files Browse the repository at this point in the history
v1.2.1 release
  • Loading branch information
artifixer authored Feb 4, 2023
2 parents 01e8008 + 7169af7 commit a3ab980
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion build/common.props
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<!--Module Version-->
<PropertyGroup>
<Version>1.2.0</Version>
<Version>1.2.1</Version>
<GameVersion>1.0.0</GameVersion>
</PropertyGroup>

Expand Down
4 changes: 4 additions & 0 deletions changelog.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
---------------------------------------------------------------------------------------------------
Version: 1.2.1
Game Versions: v1.0.0,v1.0.1,v1.0.2,v1.0.3,v1.1.0
* Fixed rare crash that happened when War Exhaustion event precedes the war.
---------------------------------------------------------------------------------------------------
Version: 1.2.0
Game Versions: v1.0.0,v1.0.1,v1.0.2,v1.0.3,v1.1.0
* Adapted for v1.1.0
Expand Down
2 changes: 1 addition & 1 deletion crowdin.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
files:
- source: /src/Bannerlord.Diplomacy/_Module/ModuleData/Languages/*.xml
translation: /src/Bannerlord.Diplomacy/_Module/ModuleData/Languages/%two_letters_code%/%original_file_name%
translation: /src/Bannerlord.Diplomacy/_Module/ModuleData/Languages/%two_letters_code%/%two_letters_code%_%original_file_name%
content_segmentation: 0
translatable_elements:
- '/base/tags/tag[@language],/base/strings/string[@text]'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -376,7 +376,7 @@ private WarExhaustionRecord GetDivineWarExhaustionDelta(Kingdoms kingdoms, int t
}

private float GetDiminishingReturnsFactor<TObj, TRec>(Kingdoms kingdoms, TObj eventRelatedObject, out bool yieldsDiminishingReturns) where TObj : MBObjectBase where TRec : WarExhaustionEventRecord =>
GetDiminishingReturnsFactor<TObj, TRec>(eventRelatedObject, _warExhaustionEventRecords[kingdoms.Key!], out yieldsDiminishingReturns);
GetDiminishingReturnsFactor<TObj, TRec>(eventRelatedObject, _warExhaustionEventRecords.TryGetValue(kingdoms.Key!, out var currentRecords) ? currentRecords : new(), out yieldsDiminishingReturns);

private static float GetDiminishingReturnsFactor<TObj, TRec>(TObj eventRelatedObject, List<WarExhaustionEventRecord> warExhaustionEventRecords, out bool yieldsDiminishingReturns) where TObj : MBObjectBase where TRec : WarExhaustionEventRecord
{
Expand Down

0 comments on commit a3ab980

Please sign in to comment.