Remove unnecessary parameters from Harmony patches.

This commit is contained in:
lutepickle 2022-04-28 09:52:51 -07:00
parent 00ad2e94d4
commit 7b5f0880ed
8 changed files with 6 additions and 6 deletions

Binary file not shown.

View File

@ -24,7 +24,7 @@ namespace MilkModule
[HarmonyPatch(typeof(HumanCompHasGatherableBodyResource), "Gathered")]
public static class Milk_Patch
{
public static void Postfix(Pawn doer, HumanCompHasGatherableBodyResource __instance)
public static void Postfix(HumanCompHasGatherableBodyResource __instance)
{
HediffComp_Breast comp = null;
if (__instance.parent is Pawn pawn) comp = pawn.GetBreastComp();

View File

@ -13,7 +13,7 @@ namespace RJW_Menstruation
[HarmonyPatch(typeof(Pawn), nameof(Pawn.SpawnSetup))]
public class Pawn_Patch
{
public static void Postfix(Map map, bool respawningAfterLoad, Pawn __instance)
public static void Postfix(Pawn __instance)
{
//Log.Message("Initialize on spawnsetup");
HediffComp_Menstruation comp = __instance.GetMenstruationComp();

View File

@ -104,7 +104,7 @@ namespace RJW_Menstruation
[HarmonyPatch(typeof(Hediff_BasePregnancy), nameof(Hediff_BasePregnancy.PostBirth))]
public static class RJW_Patch_PostBirth
{
public static void Postfix(Pawn mother, Pawn father, Pawn baby)
public static void Postfix(Pawn mother, Pawn baby)
{
if (Configurations.EnableBirthVaginaMorph)
{

View File

@ -16,7 +16,7 @@ namespace RJW_Menstruation.Sexperience
[HarmonyPatch(typeof(Pawn_GetGizmos), nameof(Pawn_GetGizmos.GetMenstruationGizmos))]
public static class GetGizmos_Patch
{
public static void Postfix(Pawn pawn, HediffComp_Menstruation comp, ref List<Gizmo> __result)
public static void Postfix(HediffComp_Menstruation comp, ref List<Gizmo> __result)
{
if (Configurations.EnableGatherCumGizmo)
__result.Add(CreateGizmo_GatherCum(comp));

View File

@ -18,7 +18,7 @@ namespace RJW_Menstruation.Sexperience
{
[HarmonyPrefix]
[HarmonyPatch("HasJobOnThing")]
public static bool HasJobOnThing(Pawn pawn, Thing t, bool forced, ref bool __result)
public static bool HasJobOnThing(Pawn pawn, ref bool __result)
{
HediffComp_Menstruation comp = pawn.GetMenstruationComp();
if (comp != null && comp.DoCleanWomb && comp.TotalCumPercent > 0.001f && pawn.Map.listerBuildings.ColonistsHaveBuilding(VariousDefOf.CumBucket))
@ -31,7 +31,7 @@ namespace RJW_Menstruation.Sexperience
[HarmonyPostfix]
[HarmonyPatch("JobOnThing")]
public static void JobOnThing(Pawn pawn, Thing t, bool forced, ref Job __result)
public static void JobOnThing(Pawn pawn, ref Job __result)
{
HediffComp_Menstruation comp = pawn.GetMenstruationComp();
if (comp != null && comp.DoCleanWomb && comp.TotalCumPercent > 0.001f)