public static void GetCraftingPartDifficulty(CraftingPiece craftingPiece, ref int __result)
{
try
{
if (BannerlordCheatsSettings.Instance?.SmithingDifficultyPercentage < 100f)
{
var factor = BannerlordCheatsSettings.Instance.SmithingDifficultyPercentage / 100f;
var newValue = (int)Math.Round(factor * __result);
__result = newValue;
}
}
catch (Exception e)
{
SubModule.LogError(e, typeof(SmithingDifficultyPercentage));
}
}
}