mirror of
https://github.com/amevarashi/RJW-Sexperience.git
synced 2024-08-14 23:54:08 +00:00
Add patch to change fappin mtb
This commit is contained in:
parent
9c44a7b7ba
commit
ff82d90163
2 changed files with 17 additions and 0 deletions
|
@ -0,0 +1,6 @@
|
||||||
|
namespace RJWSexperience.Ideology.Precepts
|
||||||
|
{
|
||||||
|
public class DefExtension_ModifyFappinMtb : DefExtension_ModifyMtb
|
||||||
|
{
|
||||||
|
}
|
||||||
|
}
|
|
@ -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")]
|
[HarmonyPatch(typeof(xxx), "is_rapist")]
|
||||||
public static class RJW_Patch_is_rapist
|
public static class RJW_Patch_is_rapist
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue