27 lines
676 B
C#
27 lines
676 B
C#
using HarmonyLib;
|
|
using rjw;
|
|
using rjwquirks.Modules.Quirks;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Reflection.Emit;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
using Verse;
|
|
|
|
namespace rjwquirks.HarmonyPatches
|
|
{
|
|
[HarmonyPatch(typeof(PregnancyHelper), nameof(PregnancyHelper.MaxLitterSize))]
|
|
public class Patch_PregnancyHelper
|
|
{
|
|
[HarmonyPostfix]
|
|
public static void AdjustMaxLitterSize(Pawn mother, ref float __result)
|
|
{
|
|
if (mother.HasQuirk(QuirkDefOf.Breeder) || mother.HasQuirk(QuirkDefOf.Incubator))
|
|
{
|
|
__result *= 2f;
|
|
}
|
|
}
|
|
}
|
|
}
|