mirror of
https://github.com/amevarashi/RJW-Sexperience.git
synced 2024-08-14 23:54:08 +00:00
Fix RJW_Patch_ThinkNode_ChancePerHour_Fappin
This commit is contained in:
parent
4fc6777446
commit
c6874f626e
1 changed files with 5 additions and 2 deletions
|
@ -41,9 +41,12 @@ namespace RJWSexperience.Ideology.Patches
|
||||||
[HarmonyPatch(typeof(ThinkNode_ChancePerHour_Fappin), "MtbHours")]
|
[HarmonyPatch(typeof(ThinkNode_ChancePerHour_Fappin), "MtbHours")]
|
||||||
public static class RJW_Patch_ThinkNode_ChancePerHour_Fappin
|
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
|
if (ideo != null) // ideo is null if don't have dlc
|
||||||
__result *= IdeoUtility.GetPreceptsMtbMultiplier<DefExtension_ModifyFappinMtb>(ideo);
|
__result *= IdeoUtility.GetPreceptsMtbMultiplier<DefExtension_ModifyFappinMtb>(ideo);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue