mirror of
https://github.com/Shabakur/RJW_More_.git
synced 2024-08-14 23:57:04 +00:00
25 lines
554 B
C#
25 lines
554 B
C#
|
using System;
|
|||
|
using System.Collections.Generic;
|
|||
|
using System.Linq;
|
|||
|
using System.Text;
|
|||
|
using System.Threading.Tasks;
|
|||
|
using HarmonyLib;
|
|||
|
using rjw;
|
|||
|
using Verse;
|
|||
|
using RimWorld;
|
|||
|
namespace shabe_genesaddons
|
|||
|
{
|
|||
|
[HarmonyPatch(typeof(PawnExtensions), "RaceImplantEggs")]
|
|||
|
public static class PatchPawnExtensions
|
|||
|
{
|
|||
|
[HarmonyPostfix]
|
|||
|
public static void Postfix(Pawn pawn, ref bool __result)
|
|||
|
{
|
|||
|
if (!__result)
|
|||
|
{
|
|||
|
__result = GeneUtility.isInsectBreeder(pawn);
|
|||
|
}
|
|||
|
}
|
|||
|
}
|
|||
|
}
|