Skip to content

Commit

Permalink
IL update for v1.2.7
Browse files Browse the repository at this point in the history
  • Loading branch information
Designer225 committed Dec 20, 2023
1 parent 750b8cb commit bf3bed8
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 7 deletions.
6 changes: 4 additions & 2 deletions FixedBanditSpawning/EncyclopediaEntryFixPatches.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,15 @@ static bool Prepare()
static IEnumerable<MethodBase> TargetMethods()
{
// TaleWorlds.Core.ViewModelCollection
yield return AccessTools.Method(typeof(CharacterViewModel), nameof(CharacterViewModel.FillFrom));
yield return AccessTools.Method(typeof(CharacterViewModel), nameof(CharacterViewModel.FillFrom),
new Type[] {typeof(BasicCharacterObject), typeof(int)});
// TaleWorlds.CampaignSystem
//yield return AccessTools.Method(typeof(PartyScreenLogic), nameof(PartyScreenLogic.IsExecutable));
// TaleWorlds.CampaignSystem.ViewModelCollection
yield return AccessTools.Method(typeof(ClanLordItemVM), nameof(ClanLordItemVM.UpdateProperties));
yield return AccessTools.Constructor(typeof(HeroVM), new Type[] { typeof(Hero), typeof(bool) });
yield return AccessTools.Method(typeof(HeroViewModel), nameof(HeroViewModel.FillFrom), new Type[] { typeof(Hero), typeof(int), typeof(bool), typeof(bool) });
yield return AccessTools.Method(typeof(HeroViewModel), nameof(HeroViewModel.FillFrom),
new Type[] { typeof(Hero), typeof(int), typeof(bool), typeof(bool) });
//yield return AccessTools.Method(typeof(PartyCharacterVM), nameof(PartyCharacterVM.ExecuteExecuteTroop));
// TaleWorlds.MountAndBlade.GauntletUI
yield return AccessTools.Method(typeof(ImageIdentifierTextureProvider), nameof(ImageIdentifierTextureProvider.CreateImageWithId));
Expand Down
6 changes: 3 additions & 3 deletions FixedBanditSpawning/FixedBanditSpawning.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@
<Copyright>Copyright © Designer225 2023</Copyright>
<AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>
<AppendRuntimeIdentifierToOutputPath>false</AppendRuntimeIdentifierToOutputPath>
<Version>1.1.18.100</Version>
<Version>1.1.19.105</Version>
<DebugType>full</DebugType>
<PackageOutputPath>$(OutputPath)</PackageOutputPath>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Bannerlord.MCM" Version="5.7.1" />
<PackageReference Include="Bannerlord.ReferenceAssemblies" Version="1.1.4.17949" />
<PackageReference Include="Bannerlord.MCM" Version="5.9.1" />
<PackageReference Include="Bannerlord.ReferenceAssemblies" Version="1.2.7.31207" />
</ItemGroup>
<ItemGroup>
<Compile Remove="obj\x64\Debug\.NETFramework,Version=v4.8.AssemblyAttributes.cs" />
Expand Down
2 changes: 1 addition & 1 deletion FixedBanditSpawning/SubModule.cs
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ public static IEnumerable<CodeInstruction> Transpiler(IEnumerable<CodeInstructio
yield return new CodeInstruction(OpCodes.Ldarg_1);
yield return list[i];
}
else if (list[i].Matches(OpCodes.Stloc_S) && list[i].operand is LocalBuilder lb && lb.LocalIndex == 5)
else if (list[i].Matches(OpCodes.Stloc_S) && list[i].operand is LocalBuilder lb && lb.LocalIndex == 6)
{
yield return list[i];
yield return new CodeInstruction(OpCodes.Ldarg_1);
Expand Down
2 changes: 1 addition & 1 deletion SubModule.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Module>
<Name value="Designer225's Miscellaneous Fixes"/>
<Id value="FixedBanditSpawning"/>
<Version value="v1.1.18.100"/>
<Version value="v1.1.19.105"/>
<SingleplayerModule value="true"/>
<MultiplayerModule value="false"/>
<Official value="false"/>
Expand Down

0 comments on commit bf3bed8

Please sign in to comment.