From 0c0bc8dfd2e8b07a41d44d078070432f6de37f46 Mon Sep 17 00:00:00 2001 From: ashakoor <60638768+ashakoor@users.noreply.github.com> Date: Sun, 14 Jun 2020 16:41:09 -0400 Subject: [PATCH] cleanup, update MCM to 3.1.8 --- Overrides/OverridesClan.cs | 8 +++----- SubModule.xml | 2 +- UnlimitLord.csproj | 2 +- UnlimitLord.sln.DotSettings | 3 +++ 4 files changed, 8 insertions(+), 7 deletions(-) create mode 100644 UnlimitLord.sln.DotSettings diff --git a/Overrides/OverridesClan.cs b/Overrides/OverridesClan.cs index 554fe2e..6de735e 100644 --- a/Overrides/OverridesClan.cs +++ b/Overrides/OverridesClan.cs @@ -2,7 +2,6 @@ using TaleWorlds.CampaignSystem; using TaleWorlds.CampaignSystem.SandBox.GameComponents; using TaleWorlds.CampaignSystem.SandBox.GameComponents.Party; -using TaleWorlds.Localization; using UnlimitLord.Settings; namespace UnlimitLord.Overrides @@ -31,14 +30,13 @@ public static int Postfix(int result, PartyBase party, StatExplainer explanation if (!party.IsGarrison() || !party.IsPlayerOwnedParty()) return result; - else if (party.PartyBelongsToCastle()) + if (party.PartyBelongsToCastle()) return (int)Helpers.ClampAndExplain((int)(result * settings.CastleGarrisonSizeMult), explanation, settings.MinCastleGarrisonSize, settings.MaxCastleGarrisonSize); - else if (party.PartyBelongsToTown()) + if (party.PartyBelongsToTown()) return (int)Helpers.ClampAndExplain((int)(result * settings.TownGarrisonSizeMult), explanation, settings.MinTownGarrisonSize, settings.MaxTownGarrisonSize); - else - return result; + return result; } } diff --git a/SubModule.xml b/SubModule.xml index b773702..200b449 100644 --- a/SubModule.xml +++ b/SubModule.xml @@ -1,7 +1,7 @@ - + diff --git a/UnlimitLord.csproj b/UnlimitLord.csproj index 9aa4d47..e38370d 100644 --- a/UnlimitLord.csproj +++ b/UnlimitLord.csproj @@ -31,7 +31,7 @@ - + diff --git a/UnlimitLord.sln.DotSettings b/UnlimitLord.sln.DotSettings new file mode 100644 index 0000000..ae94eef --- /dev/null +++ b/UnlimitLord.sln.DotSettings @@ -0,0 +1,3 @@ + + True + True \ No newline at end of file