Add patch to change fappin mtb

This commit is contained in:
amevarashi 2022-06-20 08:39:53 +05:00
parent 9c44a7b7ba
commit ff82d90163
2 changed files with 17 additions and 0 deletions

View file

@ -0,0 +1,6 @@
namespace RJWSexperience.Ideology.Precepts
{
public class DefExtension_ModifyFappinMtb : DefExtension_ModifyMtb
{
}
}

View file

@ -74,6 +74,17 @@ namespace RJWSexperience.Ideology
}
}
[HarmonyPatch(typeof(ThinkNode_ChancePerHour_Fappin), "MtbHours")]
public static class RJW_Patch_ThinkNode_ChancePerHour_Fappin
{
public static void Postfix(Pawn pawn, ref float __result)
{
Ideo ideo = pawn.Ideo;
if (ideo != null) // ideo is null if don't have dlc
__result *= IdeoUtility.GetPreceptsMtbMultiplier<DefExtension_ModifyFappinMtb>(ideo);
}
}
[HarmonyPatch(typeof(xxx), "is_rapist")]
public static class RJW_Patch_is_rapist
{