mirror of
https://gitgud.io/c0ffeeeeeeee/rjw-toys-and-masturbation.git
synced 2024-08-15 00:43:44 +00:00
updates for 1.3
This commit is contained in:
parent
da8939c4b8
commit
00e8d5cf4e
8 changed files with 58 additions and 19 deletions
43
Source/Patches/HarmonyPatch_JobDriver_Masturbate.cs
Normal file
43
Source/Patches/HarmonyPatch_JobDriver_Masturbate.cs
Normal file
|
@ -0,0 +1,43 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using RimWorld;
|
||||
using rjw;
|
||||
using Verse;
|
||||
using HarmonyLib;
|
||||
|
||||
namespace RJW_ToysAndMasturbation
|
||||
{
|
||||
//Nerfs masturbate satisfaction
|
||||
[HarmonyPatch(typeof(JobDriver_Masturbate), "CalculateSatisfactionPerTick")]
|
||||
public class HarmonyPatch_JobDriver_Masturbate
|
||||
{
|
||||
|
||||
public static void Postfix(ref JobDriver_Masturbate __instance)
|
||||
{
|
||||
Log.Message("regular masturbation");
|
||||
__instance.satisfaction *= 0.6f;
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
[HarmonyPatch(typeof(JobDriver_MasturbateWithToy), "CalculateSatisfactionPerTick")]
|
||||
public class HarmonyPatch_JobDriver_MasturbateWithToy
|
||||
{
|
||||
|
||||
public static void Postfix(ref JobDriver_MasturbateWithToy __instance)
|
||||
{
|
||||
Log.Message("Sextoy satisfaction modifier: " + __instance.dildo.TryGetComp<CompSexToy>().Props.satisfactionModifier);
|
||||
__instance.satisfaction *= 0.6f * __instance.dildo.TryGetComp<CompSexToy>().Props.satisfactionModifier;
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue