Marek15
Veteran
I'm completely new to harmony and C# so i apologize if this is a silly issue.
While i have somehow managed patch a couple of methods, there is one i can't figure out inside TaleWorlds.CampaignSystem.CharacterDevelopment.Managers.SkillLevelingManager:
All examples for how to use harmony show a original method with a return value or variable, but this method seems to have neither.
My goal is to alter the formula within MathF.Round() but i have no clue how to do so. I would be very grateful if someone could point me in the right direction.
While i have somehow managed patch a couple of methods, there is one i can't figure out inside TaleWorlds.CampaignSystem.CharacterDevelopment.Managers.SkillLevelingManager:
C#:
internal static void OnHighMorale(MobileParty party) => SkillLevelingManager.OnLeaderSkillExercised(party.Party, DefaultSkills.Leadership, (float) MathF.Round((float) (0.00999999977648258 * (double) party.MemberRoster.TotalManCount * ((double) party.Morale - 70.0))));
My goal is to alter the formula within MathF.Round() but i have no clue how to do so. I would be very grateful if someone could point me in the right direction.