From bf3bed87b27806f935c0f47f2bb7cacf69c349b7 Mon Sep 17 00:00:00 2001 From: Designer225 Date: Tue, 19 Dec 2023 23:16:06 -0800 Subject: [PATCH] IL update for v1.2.7 --- FixedBanditSpawning/EncyclopediaEntryFixPatches.cs | 6 ++++-- FixedBanditSpawning/FixedBanditSpawning.csproj | 6 +++--- FixedBanditSpawning/SubModule.cs | 2 +- SubModule.xml | 2 +- 4 files changed, 9 insertions(+), 7 deletions(-) diff --git a/FixedBanditSpawning/EncyclopediaEntryFixPatches.cs b/FixedBanditSpawning/EncyclopediaEntryFixPatches.cs index 299e856..4c44e1b 100644 --- a/FixedBanditSpawning/EncyclopediaEntryFixPatches.cs +++ b/FixedBanditSpawning/EncyclopediaEntryFixPatches.cs @@ -31,13 +31,15 @@ static bool Prepare() static IEnumerable 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)); diff --git a/FixedBanditSpawning/FixedBanditSpawning.csproj b/FixedBanditSpawning/FixedBanditSpawning.csproj index c91b21e..fb6415b 100644 --- a/FixedBanditSpawning/FixedBanditSpawning.csproj +++ b/FixedBanditSpawning/FixedBanditSpawning.csproj @@ -8,13 +8,13 @@ Copyright © Designer225 2023 false false - 1.1.18.100 + 1.1.19.105 full $(OutputPath) - - + + diff --git a/FixedBanditSpawning/SubModule.cs b/FixedBanditSpawning/SubModule.cs index 0a13b42..3eca387 100644 --- a/FixedBanditSpawning/SubModule.cs +++ b/FixedBanditSpawning/SubModule.cs @@ -180,7 +180,7 @@ public static IEnumerable Transpiler(IEnumerable - +