Fixed mistake in hediffinsecteggpregnancy patch

This commit is contained in:
Shabakur 2022-12-01 07:12:03 +01:00
parent a36bdb7e9a
commit 5000d918fe
7 changed files with 4 additions and 2 deletions

View file

@ -27,5 +27,6 @@
<li>brrainz.harmony</li>
<li>ludeon.rimworld.biotech</li>
<li>rim.job.world</li>
<li>ASMR.RJW.RaceSupport</li>
</loadAfter>
</ModMetaData>

Binary file not shown.

Binary file not shown.

View file

@ -24,6 +24,7 @@ namespace RJW_BGS
foreach (CodeInstruction instruction in instructions)
{
yield return instruction;
if (instruction.opcode == OpCodes.Call && instruction.operand.ToString() == "Void BabyPostBirth(Verse.Pawn, Verse.Pawn, Verse.Pawn)")
{
yield return new CodeInstruction(OpCodes.Ldloc_0, null);
@ -33,7 +34,7 @@ namespace RJW_BGS
yield return new CodeInstruction(OpCodes.Ldloc_1, null);
yield return new CodeInstruction(OpCodes.Call, newgenes);
}
yield return instruction;
}
}
}

Binary file not shown.