Fix RJW_Patch_ThinkNode_ChancePerHour_Fappin

This commit is contained in:
amevarashi 2022-06-20 09:56:14 +05:00
parent 4fc6777446
commit c6874f626e

View file

@ -41,9 +41,12 @@ namespace RJWSexperience.Ideology.Patches
[HarmonyPatch(typeof(ThinkNode_ChancePerHour_Fappin), "MtbHours")]
public static class RJW_Patch_ThinkNode_ChancePerHour_Fappin
{
public static void Postfix(Pawn pawn, ref float __result)
public static void Postfix(Pawn p, ref float __result)
{
Ideo ideo = pawn.Ideo;
if (__result < 0f)
return;
Ideo ideo = p.Ideo;
if (ideo != null) // ideo is null if don't have dlc
__result *= IdeoUtility.GetPreceptsMtbMultiplier<DefExtension_ModifyFappinMtb>(ideo);
}