2022-06-20 04:34:46 +00:00
|
|
|
|
using HarmonyLib;
|
|
|
|
|
using rjw;
|
|
|
|
|
using RJWSexperience.Ideology.Precepts;
|
|
|
|
|
using Verse;
|
|
|
|
|
|
2022-06-20 04:51:35 +00:00
|
|
|
|
namespace RJWSexperience.Ideology.Patches
|
2022-06-20 04:34:46 +00:00
|
|
|
|
{
|
|
|
|
|
[HarmonyPatch(typeof(ThinkNode_ChancePerHour_Bestiality), "MtbHours")]
|
2022-06-23 16:47:39 +00:00
|
|
|
|
public static class RJW_Patch_ThinkNode_ChancePerHour_Bestiality
|
2022-06-20 04:34:46 +00:00
|
|
|
|
{
|
|
|
|
|
public static void Postfix(Pawn pawn, ref float __result)
|
|
|
|
|
{
|
2022-06-23 16:47:39 +00:00
|
|
|
|
if (__result > 0f && pawn.Ideo != null) // ideo is null if don't have dlc
|
|
|
|
|
__result *= IdeoUtility.GetPreceptsMtbMultiplier<DefExtension_ModifyBestialityMtb>(pawn.Ideo);
|
2022-06-20 04:34:46 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
[HarmonyPatch(typeof(ThinkNode_ChancePerHour_RapeCP), "MtbHours")]
|
2022-06-23 16:47:39 +00:00
|
|
|
|
public static class RJW_Patch_ThinkNode_ChancePerHour_RapeCP
|
2022-06-20 04:34:46 +00:00
|
|
|
|
{
|
|
|
|
|
public static void Postfix(Pawn pawn, ref float __result)
|
|
|
|
|
{
|
2022-06-23 16:47:39 +00:00
|
|
|
|
if (__result > 0f && pawn.Ideo != null) // ideo is null if don't have dlc
|
|
|
|
|
__result *= IdeoUtility.GetPreceptsMtbMultiplier<DefExtension_ModifyRapeCPMtb>(pawn.Ideo);
|
2022-06-20 04:34:46 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
[HarmonyPatch(typeof(ThinkNode_ChancePerHour_Necro), "MtbHours")]
|
|
|
|
|
public static class RJW_Patch_ThinkNode_ChancePerHour_Necro
|
|
|
|
|
{
|
|
|
|
|
public static void Postfix(Pawn pawn, ref float __result)
|
|
|
|
|
{
|
2022-06-23 16:47:39 +00:00
|
|
|
|
if (__result > 0f && pawn.Ideo != null) // ideo is null if don't have dlc
|
|
|
|
|
__result *= IdeoUtility.GetPreceptsMtbMultiplier<DefExtension_ModifyNecroMtb>(pawn.Ideo);
|
2022-06-20 04:34:46 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
[HarmonyPatch(typeof(ThinkNode_ChancePerHour_Fappin), "MtbHours")]
|
|
|
|
|
public static class RJW_Patch_ThinkNode_ChancePerHour_Fappin
|
|
|
|
|
{
|
2022-06-20 04:56:14 +00:00
|
|
|
|
public static void Postfix(Pawn p, ref float __result)
|
2022-06-20 04:34:46 +00:00
|
|
|
|
{
|
2022-06-23 16:47:39 +00:00
|
|
|
|
if (__result > 0f && p.Ideo != null) // ideo is null if don't have dlc
|
|
|
|
|
__result *= IdeoUtility.GetPreceptsMtbMultiplier<DefExtension_ModifyFappinMtb>(p.Ideo);
|
2022-06-20 04:34:46 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|