mirror of
https://gitgud.io/LonelyRain/rjw-quirks.git
synced 2024-08-15 00:03:31 +00:00
26 lines
676 B
C#
26 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;
|
|
}
|
|
}
|
|
}
|
|
}
|