Download as txt, pdf, or txt
Download as txt, pdf, or txt
You are on page 1of 50

### Patch: static Verse.

GraphicMeshSet
Verse.HumanlikeMeshPoolUtility::GetHumanlikeBodySetForPawn(Verse.Pawn pawn)
### Replacement: static Verse.GraphicMeshSet
Verse.HumanlikeMeshPoolUtility::Verse.HumanlikeMeshPoolUtility.GetHumanlikeBodySetF
orPawn_Patch0(Verse.Pawn pawn)
IL_0000: // start original
IL_0000: call static System.Boolean Verse.ModsConfig::get_BiotechActive()
IL_0005: brfalse => Label0
IL_000A: ldarg.0
IL_000B: ldfld Verse.Pawn_AgeTracker Verse.Pawn::ageTracker
IL_0010: callvirt RimWorld.LifeStageDef Verse.Pawn_AgeTracker::get_CurLifeStage()
IL_0015: ldflda System.Nullable`1<System.Single>
RimWorld.LifeStageDef::bodyWidth
IL_001A: call System.Boolean System.Nullable`1<System.Single>::get_HasValue()
IL_001F: brfalse => Label1
IL_0024: ldarg.0
IL_0025: ldfld Verse.Pawn_AgeTracker Verse.Pawn::ageTracker
IL_002A: callvirt RimWorld.LifeStageDef Verse.Pawn_AgeTracker::get_CurLifeStage()
IL_002F: ldflda System.Nullable`1<System.Single>
RimWorld.LifeStageDef::bodyWidth
IL_0034: call System.Single System.Nullable`1<System.Single>::get_Value()
IL_0039: box System.Single
IL_003E: ldarg.0
IL_003F: call static Verse.GraphicMeshSet
AlienRace.HarmonyPatches::GetHumanlikeBodySetForPawnHelper(System.Object
lifestageFactor, Verse.Pawn pawn)
IL_0044: br => Label2
IL_0049: Label0
IL_0049: Label1
IL_0049: ldc.r4 1.5
IL_004E: box System.Single
IL_0053: ldarg.0
IL_0054: call static Verse.GraphicMeshSet
AlienRace.HarmonyPatches::GetHumanlikeBodySetForPawnHelper(System.Object
lifestageFactor, Verse.Pawn pawn)
IL_0059: // end original
IL_0059: Label2
IL_0059: ret
DONE

### Patch: static Verse.GraphicMeshSet


Verse.HumanlikeMeshPoolUtility::GetHumanlikeHeadSetForPawn(Verse.Pawn pawn)
### Replacement: static Verse.GraphicMeshSet
Verse.HumanlikeMeshPoolUtility::Verse.HumanlikeMeshPoolUtility.GetHumanlikeHeadSetF
orPawn_Patch0(Verse.Pawn pawn)
IL_0000: // start original
IL_0000: call static System.Boolean Verse.ModsConfig::get_BiotechActive()
IL_0005: brfalse => Label0
IL_000A: ldarg.0
IL_000B: ldfld Verse.Pawn_AgeTracker Verse.Pawn::ageTracker
IL_0010: callvirt RimWorld.LifeStageDef Verse.Pawn_AgeTracker::get_CurLifeStage()
IL_0015: ldflda System.Nullable`1<System.Single>
RimWorld.LifeStageDef::bodyWidth
IL_001A: call System.Boolean System.Nullable`1<System.Single>::get_HasValue()
IL_001F: brfalse => Label1
IL_0024: ldarg.0
IL_0025: ldfld Verse.Pawn_AgeTracker Verse.Pawn::ageTracker
IL_002A: callvirt RimWorld.LifeStageDef Verse.Pawn_AgeTracker::get_CurLifeStage()
IL_002F: ldflda System.Nullable`1<System.Single>
RimWorld.LifeStageDef::bodyWidth
IL_0034: call System.Single System.Nullable`1<System.Single>::get_Value()
IL_0039: box System.Single
IL_003E: ldarg.0
IL_003F: call static Verse.GraphicMeshSet
AlienRace.HarmonyPatches::GetHumanlikeHeadSetForPawnHelper(System.Object
lifestageFactor, Verse.Pawn pawn)
IL_0044: br => Label2
IL_0049: Label0
IL_0049: Label1
IL_0049: ldc.r4 1.5
IL_004E: box System.Single
IL_0053: ldarg.0
IL_0054: call static Verse.GraphicMeshSet
AlienRace.HarmonyPatches::GetHumanlikeHeadSetForPawnHelper(System.Object
lifestageFactor, Verse.Pawn pawn)
IL_0059: // end original
IL_0059: Label2
IL_0059: ret
DONE

### Patch: static Verse.GraphicMeshSet


Verse.HumanlikeMeshPoolUtility::GetHumanlikeHairSetForPawn(Verse.Pawn pawn)
### Replacement: static Verse.GraphicMeshSet
Verse.HumanlikeMeshPoolUtility::Verse.HumanlikeMeshPoolUtility.GetHumanlikeHairSetF
orPawn_Patch0(Verse.Pawn pawn)
IL_0000: Local var 0: UnityEngine.Vector2
IL_0000: // start original
IL_0000: ldarg.0
IL_0001: ldfld RimWorld.Pawn_StoryTracker Verse.Pawn::story
IL_0006: ldfld Verse.HeadTypeDef RimWorld.Pawn_StoryTracker::headType
IL_000B: ldfld UnityEngine.Vector2 Verse.HeadTypeDef::hairMeshSize
IL_0010: stloc.0
IL_0011: call static System.Boolean Verse.ModsConfig::get_BiotechActive()
IL_0016: brfalse => Label0
IL_001B: ldarg.0
IL_001C: ldfld Verse.Pawn_AgeTracker Verse.Pawn::ageTracker
IL_0021: callvirt RimWorld.LifeStageDef Verse.Pawn_AgeTracker::get_CurLifeStage()
IL_0026: ldflda System.Nullable`1<System.Single>
RimWorld.LifeStageDef::headSizeFactor
IL_002B: call System.Boolean System.Nullable`1<System.Single>::get_HasValue()
IL_0030: brfalse => Label1
IL_0035: ldloc.0
IL_0036: ldarg.0
IL_0037: ldfld Verse.Pawn_AgeTracker Verse.Pawn::ageTracker
IL_003C: callvirt RimWorld.LifeStageDef Verse.Pawn_AgeTracker::get_CurLifeStage()
IL_0041: ldflda System.Nullable`1<System.Single>
RimWorld.LifeStageDef::headSizeFactor
IL_0046: call System.Single System.Nullable`1<System.Single>::get_Value()
IL_004B: call static UnityEngine.Vector2
UnityEngine.Vector2::op_Multiply(UnityEngine.Vector2 a, System.Single d)
IL_0050: stloc.0
IL_0051: Label0
IL_0051: Label1
IL_0051: ldloc.0
IL_0052: ldarg.0
IL_0053: call static UnityEngine.Vector2
AlienRace.HarmonyPatches::GetHumanlikeHairSetForPawnHelper(UnityEngine.Vector2
headFactor, Verse.Pawn pawn)
IL_0058: stloc.0
IL_0059: Label0
IL_0059: Label1
IL_0059: ldloc.0
IL_005A: ldfld System.Single UnityEngine.Vector2::x
IL_005F: ldloc.0
IL_0060: ldfld System.Single UnityEngine.Vector2::y
IL_0065: call static Verse.GraphicMeshSet
Verse.MeshPool::GetMeshSetForWidth(System.Single width, System.Single height)
IL_006A: // end original
IL_006A: ret
DONE

### Patch: static Verse.GraphicMeshSet


Verse.HumanlikeMeshPoolUtility::GetHumanlikeBeardSetForPawn(Verse.Pawn pawn)
### Replacement: static Verse.GraphicMeshSet
Verse.HumanlikeMeshPoolUtility::Verse.HumanlikeMeshPoolUtility.GetHumanlikeBeardSet
ForPawn_Patch0(Verse.Pawn pawn)
IL_0000: Local var 0: UnityEngine.Vector2
IL_0000: // start original
IL_0000: ldarg.0
IL_0001: ldfld RimWorld.Pawn_StoryTracker Verse.Pawn::story
IL_0006: ldfld Verse.HeadTypeDef RimWorld.Pawn_StoryTracker::headType
IL_000B: ldfld UnityEngine.Vector2 Verse.HeadTypeDef::beardMeshSize
IL_0010: stloc.0
IL_0011: call static System.Boolean Verse.ModsConfig::get_BiotechActive()
IL_0016: brfalse => Label0
IL_001B: ldarg.0
IL_001C: ldfld Verse.Pawn_AgeTracker Verse.Pawn::ageTracker
IL_0021: callvirt RimWorld.LifeStageDef Verse.Pawn_AgeTracker::get_CurLifeStage()
IL_0026: ldflda System.Nullable`1<System.Single>
RimWorld.LifeStageDef::headSizeFactor
IL_002B: call System.Boolean System.Nullable`1<System.Single>::get_HasValue()
IL_0030: brfalse => Label1
IL_0035: ldloc.0
IL_0036: ldarg.0
IL_0037: ldfld Verse.Pawn_AgeTracker Verse.Pawn::ageTracker
IL_003C: callvirt RimWorld.LifeStageDef Verse.Pawn_AgeTracker::get_CurLifeStage()
IL_0041: ldflda System.Nullable`1<System.Single>
RimWorld.LifeStageDef::headSizeFactor
IL_0046: call System.Single System.Nullable`1<System.Single>::get_Value()
IL_004B: call static UnityEngine.Vector2
UnityEngine.Vector2::op_Multiply(UnityEngine.Vector2 a, System.Single d)
IL_0050: stloc.0
IL_0051: Label0
IL_0051: Label1
IL_0051: ldloc.0
IL_0052: ldarg.0
IL_0053: call static UnityEngine.Vector2
AlienRace.HarmonyPatches::GetHumanlikeHairSetForPawnHelper(UnityEngine.Vector2
headFactor, Verse.Pawn pawn)
IL_0058: stloc.0
IL_0059: Label0
IL_0059: Label1
IL_0059: ldloc.0
IL_005A: ldfld System.Single UnityEngine.Vector2::x
IL_005F: ldloc.0
IL_0060: ldfld System.Single UnityEngine.Vector2::y
IL_0065: call static Verse.GraphicMeshSet
Verse.MeshPool::GetMeshSetForWidth(System.Single width, System.Single height)
IL_006A: // end original
IL_006A: ret
DONE

### Patch: Verse.GraphicMeshSet Verse.PawnRenderer::GetBodyOverlayMeshSet()


### Replacement: static Verse.GraphicMeshSet
Verse.PawnRenderer::Verse.PawnRenderer.GetBodyOverlayMeshSet_Patch2(Verse.PawnRende
rer this)
IL_0000: Local var 0: RimWorld.BodyTypeDef
IL_0000: Local var 1: Verse.GraphicMeshSet
IL_0000: ldnull
IL_0001: stloc 1 (Verse.GraphicMeshSet)
IL_0005: // start original
IL_0005: ldarg.0
IL_0006: ldfld Verse.Pawn Verse.PawnRenderer::pawn
IL_000B: callvirt Verse.RaceProperties Verse.Pawn::get_RaceProps()
IL_0010: callvirt System.Boolean Verse.RaceProperties::get_Humanlike()
IL_0015: brtrue => Label0
IL_001A: ldarg.0
IL_001B: ldfld Verse.Pawn Verse.PawnRenderer::pawn
IL_0020: call static Verse.GraphicMeshSet
Verse.HumanlikeMeshPoolUtility::GetHumanlikeBodySetForPawn(Verse.Pawn pawn)
IL_0025: br => Label6
IL_002A: Label0
IL_002A: ldarg.0
IL_002B: ldfld Verse.Pawn Verse.PawnRenderer::pawn
IL_0030: ldfld RimWorld.Pawn_StoryTracker Verse.Pawn::story
IL_0035: ldfld RimWorld.BodyTypeDef RimWorld.Pawn_StoryTracker::bodyType
IL_003A: stloc.0
IL_003B: ldloc.0
IL_003C: ldsfld RimWorld.BodyTypeDef RimWorld.BodyTypeDefOf::Male
IL_0041: bne.un => Label1
IL_0046: ldsfld Verse.GraphicMeshSet Verse.MeshPool::humanlikeBodySet_Male
IL_004B: br => Label7
IL_0050: Label1
IL_0050: ldloc.0
IL_0051: ldsfld RimWorld.BodyTypeDef RimWorld.BodyTypeDefOf::Female
IL_0056: bne.un => Label2
IL_005B: ldsfld Verse.GraphicMeshSet Verse.MeshPool::humanlikeBodySet_Female
IL_0060: br => Label8
IL_0065: Label2
IL_0065: ldloc.0
IL_0066: ldsfld RimWorld.BodyTypeDef RimWorld.BodyTypeDefOf::Thin
IL_006B: bne.un => Label3
IL_0070: ldsfld Verse.GraphicMeshSet Verse.MeshPool::humanlikeBodySet_Thin
IL_0075: br => Label9
IL_007A: Label3
IL_007A: ldloc.0
IL_007B: ldsfld RimWorld.BodyTypeDef RimWorld.BodyTypeDefOf::Fat
IL_0080: bne.un => Label4
IL_0085: ldsfld Verse.GraphicMeshSet Verse.MeshPool::humanlikeBodySet_Fat
IL_008A: br => Label10
IL_008F: Label4
IL_008F: ldloc.0
IL_0090: ldsfld RimWorld.BodyTypeDef RimWorld.BodyTypeDefOf::Hulk
IL_0095: bne.un => Label5
IL_009A: ldsfld Verse.GraphicMeshSet Verse.MeshPool::humanlikeBodySet_Hulk
IL_009F: br => Label11
IL_00A4: Label5
IL_00A4: ldarg.0
IL_00A5: ldfld Verse.Pawn Verse.PawnRenderer::pawn
IL_00AA: call static Verse.GraphicMeshSet
Verse.HumanlikeMeshPoolUtility::GetHumanlikeBodySetForPawn(Verse.Pawn pawn)
IL_00AF: // end original
IL_00AF: Label6
IL_00AF: Label7
IL_00AF: Label8
IL_00AF: Label9
IL_00AF: Label10
IL_00AF: Label11
IL_00AF: stloc 1 (Verse.GraphicMeshSet)
IL_00B3: ldloca 1 (Verse.GraphicMeshSet)
IL_00B7: ldarg.0
IL_00B8: ldfld Verse.Pawn Verse.PawnRenderer::pawn
IL_00BD: call static System.Void
VanillaGenesExpanded.PawnRenderer_GetBodyOverlayMeshSet::Postfix(Verse.GraphicMeshS
et& __result, Verse.Pawn ___pawn)
IL_00C2: ldarg.0
IL_00C3: ldarg.0
IL_00C4: ldfld Verse.Pawn Verse.PawnRenderer::pawn
IL_00C9: ldloca 1 (Verse.GraphicMeshSet)
IL_00CD: call static System.Void
AlienRace.HarmonyPatches::GetBodyOverlayMeshSetPostfix(Verse.PawnRenderer
__instance, Verse.Pawn ___pawn, Verse.GraphicMeshSet& __result)
IL_00D2: ldloc 1 (Verse.GraphicMeshSet)
IL_00D6: ret
DONE

### Patch: static Verse.GraphicMeshSet


Verse.HumanlikeMeshPoolUtility::GetHumanlikeBodySetForPawn(Verse.Pawn pawn)
### Replacement: static Verse.GraphicMeshSet
Verse.HumanlikeMeshPoolUtility::Verse.HumanlikeMeshPoolUtility.GetHumanlikeBodySetF
orPawn_Patch0(Verse.Pawn pawn)
IL_0000: // start original
IL_0000: call static System.Boolean Verse.ModsConfig::get_BiotechActive()
IL_0005: brfalse => Label0
IL_000A: ldarg.0
IL_000B: ldfld Verse.Pawn_AgeTracker Verse.Pawn::ageTracker
IL_0010: callvirt RimWorld.LifeStageDef Verse.Pawn_AgeTracker::get_CurLifeStage()
IL_0015: ldflda System.Nullable`1<System.Single>
RimWorld.LifeStageDef::bodyWidth
IL_001A: call System.Boolean System.Nullable`1<System.Single>::get_HasValue()
IL_001F: brfalse => Label1
IL_0024: ldarg.0
IL_0025: ldfld Verse.Pawn_AgeTracker Verse.Pawn::ageTracker
IL_002A: callvirt RimWorld.LifeStageDef Verse.Pawn_AgeTracker::get_CurLifeStage()
IL_002F: ldflda System.Nullable`1<System.Single>
RimWorld.LifeStageDef::bodyWidth
IL_0034: call System.Single System.Nullable`1<System.Single>::get_Value()
IL_0039: box System.Single
IL_003E: ldarg.0
IL_003F: call static Verse.GraphicMeshSet
AlienRace.HarmonyPatches::GetHumanlikeBodySetForPawnHelper(System.Object
lifestageFactor, Verse.Pawn pawn)
IL_0044: br => Label2
IL_0049: Label0
IL_0049: Label1
IL_0049: ldc.r4 1.5
IL_004E: box System.Single
IL_0053: ldarg.0
IL_0054: call static Verse.GraphicMeshSet
AlienRace.HarmonyPatches::GetHumanlikeBodySetForPawnHelper(System.Object
lifestageFactor, Verse.Pawn pawn)
IL_0059: // end original
IL_0059: Label2
IL_0059: ret
DONE

### Patch: static Verse.GraphicMeshSet


Verse.HumanlikeMeshPoolUtility::GetHumanlikeHeadSetForPawn(Verse.Pawn pawn)
### Replacement: static Verse.GraphicMeshSet
Verse.HumanlikeMeshPoolUtility::Verse.HumanlikeMeshPoolUtility.GetHumanlikeHeadSetF
orPawn_Patch0(Verse.Pawn pawn)
IL_0000: // start original
IL_0000: call static System.Boolean Verse.ModsConfig::get_BiotechActive()
IL_0005: brfalse => Label0
IL_000A: ldarg.0
IL_000B: ldfld Verse.Pawn_AgeTracker Verse.Pawn::ageTracker
IL_0010: callvirt RimWorld.LifeStageDef Verse.Pawn_AgeTracker::get_CurLifeStage()
IL_0015: ldflda System.Nullable`1<System.Single>
RimWorld.LifeStageDef::bodyWidth
IL_001A: call System.Boolean System.Nullable`1<System.Single>::get_HasValue()
IL_001F: brfalse => Label1
IL_0024: ldarg.0
IL_0025: ldfld Verse.Pawn_AgeTracker Verse.Pawn::ageTracker
IL_002A: callvirt RimWorld.LifeStageDef Verse.Pawn_AgeTracker::get_CurLifeStage()
IL_002F: ldflda System.Nullable`1<System.Single>
RimWorld.LifeStageDef::bodyWidth
IL_0034: call System.Single System.Nullable`1<System.Single>::get_Value()
IL_0039: box System.Single
IL_003E: ldarg.0
IL_003F: call static Verse.GraphicMeshSet
AlienRace.HarmonyPatches::GetHumanlikeHeadSetForPawnHelper(System.Object
lifestageFactor, Verse.Pawn pawn)
IL_0044: br => Label2
IL_0049: Label0
IL_0049: Label1
IL_0049: ldc.r4 1.5
IL_004E: box System.Single
IL_0053: ldarg.0
IL_0054: call static Verse.GraphicMeshSet
AlienRace.HarmonyPatches::GetHumanlikeHeadSetForPawnHelper(System.Object
lifestageFactor, Verse.Pawn pawn)
IL_0059: // end original
IL_0059: Label2
IL_0059: ret
DONE

### Patch: static Verse.GraphicMeshSet


Verse.HumanlikeMeshPoolUtility::GetHumanlikeHairSetForPawn(Verse.Pawn pawn)
### Replacement: static Verse.GraphicMeshSet
Verse.HumanlikeMeshPoolUtility::Verse.HumanlikeMeshPoolUtility.GetHumanlikeHairSetF
orPawn_Patch0(Verse.Pawn pawn)
IL_0000: Local var 0: UnityEngine.Vector2
IL_0000: // start original
IL_0000: ldarg.0
IL_0001: ldfld RimWorld.Pawn_StoryTracker Verse.Pawn::story
IL_0006: ldfld Verse.HeadTypeDef RimWorld.Pawn_StoryTracker::headType
IL_000B: ldfld UnityEngine.Vector2 Verse.HeadTypeDef::hairMeshSize
IL_0010: stloc.0
IL_0011: call static System.Boolean Verse.ModsConfig::get_BiotechActive()
IL_0016: brfalse => Label0
IL_001B: ldarg.0
IL_001C: ldfld Verse.Pawn_AgeTracker Verse.Pawn::ageTracker
IL_0021: callvirt RimWorld.LifeStageDef Verse.Pawn_AgeTracker::get_CurLifeStage()
IL_0026: ldflda System.Nullable`1<System.Single>
RimWorld.LifeStageDef::headSizeFactor
IL_002B: call System.Boolean System.Nullable`1<System.Single>::get_HasValue()
IL_0030: brfalse => Label1
IL_0035: ldloc.0
IL_0036: ldarg.0
IL_0037: ldfld Verse.Pawn_AgeTracker Verse.Pawn::ageTracker
IL_003C: callvirt RimWorld.LifeStageDef Verse.Pawn_AgeTracker::get_CurLifeStage()
IL_0041: ldflda System.Nullable`1<System.Single>
RimWorld.LifeStageDef::headSizeFactor
IL_0046: call System.Single System.Nullable`1<System.Single>::get_Value()
IL_004B: call static UnityEngine.Vector2
UnityEngine.Vector2::op_Multiply(UnityEngine.Vector2 a, System.Single d)
IL_0050: stloc.0
IL_0051: Label0
IL_0051: Label1
IL_0051: ldloc.0
IL_0052: ldarg.0
IL_0053: call static UnityEngine.Vector2
AlienRace.HarmonyPatches::GetHumanlikeHairSetForPawnHelper(UnityEngine.Vector2
headFactor, Verse.Pawn pawn)
IL_0058: stloc.0
IL_0059: Label0
IL_0059: Label1
IL_0059: ldloc.0
IL_005A: ldfld System.Single UnityEngine.Vector2::x
IL_005F: ldloc.0
IL_0060: ldfld System.Single UnityEngine.Vector2::y
IL_0065: call static Verse.GraphicMeshSet
Verse.MeshPool::GetMeshSetForWidth(System.Single width, System.Single height)
IL_006A: // end original
IL_006A: ret
DONE

### Patch: static Verse.GraphicMeshSet


Verse.HumanlikeMeshPoolUtility::GetHumanlikeBeardSetForPawn(Verse.Pawn pawn)
### Replacement: static Verse.GraphicMeshSet
Verse.HumanlikeMeshPoolUtility::Verse.HumanlikeMeshPoolUtility.GetHumanlikeBeardSet
ForPawn_Patch0(Verse.Pawn pawn)
IL_0000: Local var 0: UnityEngine.Vector2
IL_0000: // start original
IL_0000: ldarg.0
IL_0001: ldfld RimWorld.Pawn_StoryTracker Verse.Pawn::story
IL_0006: ldfld Verse.HeadTypeDef RimWorld.Pawn_StoryTracker::headType
IL_000B: ldfld UnityEngine.Vector2 Verse.HeadTypeDef::beardMeshSize
IL_0010: stloc.0
IL_0011: call static System.Boolean Verse.ModsConfig::get_BiotechActive()
IL_0016: brfalse => Label0
IL_001B: ldarg.0
IL_001C: ldfld Verse.Pawn_AgeTracker Verse.Pawn::ageTracker
IL_0021: callvirt RimWorld.LifeStageDef Verse.Pawn_AgeTracker::get_CurLifeStage()
IL_0026: ldflda System.Nullable`1<System.Single>
RimWorld.LifeStageDef::headSizeFactor
IL_002B: call System.Boolean System.Nullable`1<System.Single>::get_HasValue()
IL_0030: brfalse => Label1
IL_0035: ldloc.0
IL_0036: ldarg.0
IL_0037: ldfld Verse.Pawn_AgeTracker Verse.Pawn::ageTracker
IL_003C: callvirt RimWorld.LifeStageDef Verse.Pawn_AgeTracker::get_CurLifeStage()
IL_0041: ldflda System.Nullable`1<System.Single>
RimWorld.LifeStageDef::headSizeFactor
IL_0046: call System.Single System.Nullable`1<System.Single>::get_Value()
IL_004B: call static UnityEngine.Vector2
UnityEngine.Vector2::op_Multiply(UnityEngine.Vector2 a, System.Single d)
IL_0050: stloc.0
IL_0051: Label0
IL_0051: Label1
IL_0051: ldloc.0
IL_0052: ldarg.0
IL_0053: call static UnityEngine.Vector2
AlienRace.HarmonyPatches::GetHumanlikeHairSetForPawnHelper(UnityEngine.Vector2
headFactor, Verse.Pawn pawn)
IL_0058: stloc.0
IL_0059: Label0
IL_0059: Label1
IL_0059: ldloc.0
IL_005A: ldfld System.Single UnityEngine.Vector2::x
IL_005F: ldloc.0
IL_0060: ldfld System.Single UnityEngine.Vector2::y
IL_0065: call static Verse.GraphicMeshSet
Verse.MeshPool::GetMeshSetForWidth(System.Single width, System.Single height)
IL_006A: // end original
IL_006A: ret
DONE

### Patch: Verse.GraphicMeshSet Verse.PawnRenderer::GetBodyOverlayMeshSet()


### Replacement: static Verse.GraphicMeshSet
Verse.PawnRenderer::Verse.PawnRenderer.GetBodyOverlayMeshSet_Patch2(Verse.PawnRende
rer this)
IL_0000: Local var 0: RimWorld.BodyTypeDef
IL_0000: Local var 1: Verse.GraphicMeshSet
IL_0000: ldnull
IL_0001: stloc 1 (Verse.GraphicMeshSet)
IL_0005: // start original
IL_0005: ldarg.0
IL_0006: ldfld Verse.Pawn Verse.PawnRenderer::pawn
IL_000B: callvirt Verse.RaceProperties Verse.Pawn::get_RaceProps()
IL_0010: callvirt System.Boolean Verse.RaceProperties::get_Humanlike()
IL_0015: brtrue => Label0
IL_001A: ldarg.0
IL_001B: ldfld Verse.Pawn Verse.PawnRenderer::pawn
IL_0020: call static Verse.GraphicMeshSet
Verse.HumanlikeMeshPoolUtility::GetHumanlikeBodySetForPawn(Verse.Pawn pawn)
IL_0025: br => Label6
IL_002A: Label0
IL_002A: ldarg.0
IL_002B: ldfld Verse.Pawn Verse.PawnRenderer::pawn
IL_0030: ldfld RimWorld.Pawn_StoryTracker Verse.Pawn::story
IL_0035: ldfld RimWorld.BodyTypeDef RimWorld.Pawn_StoryTracker::bodyType
IL_003A: stloc.0
IL_003B: ldloc.0
IL_003C: ldsfld RimWorld.BodyTypeDef RimWorld.BodyTypeDefOf::Male
IL_0041: bne.un => Label1
IL_0046: ldsfld Verse.GraphicMeshSet Verse.MeshPool::humanlikeBodySet_Male
IL_004B: br => Label7
IL_0050: Label1
IL_0050: ldloc.0
IL_0051: ldsfld RimWorld.BodyTypeDef RimWorld.BodyTypeDefOf::Female
IL_0056: bne.un => Label2
IL_005B: ldsfld Verse.GraphicMeshSet Verse.MeshPool::humanlikeBodySet_Female
IL_0060: br => Label8
IL_0065: Label2
IL_0065: ldloc.0
IL_0066: ldsfld RimWorld.BodyTypeDef RimWorld.BodyTypeDefOf::Thin
IL_006B: bne.un => Label3
IL_0070: ldsfld Verse.GraphicMeshSet Verse.MeshPool::humanlikeBodySet_Thin
IL_0075: br => Label9
IL_007A: Label3
IL_007A: ldloc.0
IL_007B: ldsfld RimWorld.BodyTypeDef RimWorld.BodyTypeDefOf::Fat
IL_0080: bne.un => Label4
IL_0085: ldsfld Verse.GraphicMeshSet Verse.MeshPool::humanlikeBodySet_Fat
IL_008A: br => Label10
IL_008F: Label4
IL_008F: ldloc.0
IL_0090: ldsfld RimWorld.BodyTypeDef RimWorld.BodyTypeDefOf::Hulk
IL_0095: bne.un => Label5
IL_009A: ldsfld Verse.GraphicMeshSet Verse.MeshPool::humanlikeBodySet_Hulk
IL_009F: br => Label11
IL_00A4: Label5
IL_00A4: ldarg.0
IL_00A5: ldfld Verse.Pawn Verse.PawnRenderer::pawn
IL_00AA: call static Verse.GraphicMeshSet
Verse.HumanlikeMeshPoolUtility::GetHumanlikeBodySetForPawn(Verse.Pawn pawn)
IL_00AF: // end original
IL_00AF: Label6
IL_00AF: Label7
IL_00AF: Label8
IL_00AF: Label9
IL_00AF: Label10
IL_00AF: Label11
IL_00AF: stloc 1 (Verse.GraphicMeshSet)
IL_00B3: ldloca 1 (Verse.GraphicMeshSet)
IL_00B7: ldarg.0
IL_00B8: ldfld Verse.Pawn Verse.PawnRenderer::pawn
IL_00BD: call static System.Void
VanillaGenesExpanded.PawnRenderer_GetBodyOverlayMeshSet::Postfix(Verse.GraphicMeshS
et& __result, Verse.Pawn ___pawn)
IL_00C2: ldarg.0
IL_00C3: ldarg.0
IL_00C4: ldfld Verse.Pawn Verse.PawnRenderer::pawn
IL_00C9: ldloca 1 (Verse.GraphicMeshSet)
IL_00CD: call static System.Void
AlienRace.HarmonyPatches::GetBodyOverlayMeshSetPostfix(Verse.PawnRenderer
__instance, Verse.Pawn ___pawn, Verse.GraphicMeshSet& __result)
IL_00D2: ldloc 1 (Verse.GraphicMeshSet)
IL_00D6: ret
DONE
### Patch: static Verse.GraphicMeshSet
Verse.HumanlikeMeshPoolUtility::GetHumanlikeBodySetForPawn(Verse.Pawn pawn)
### Replacement: static Verse.GraphicMeshSet
Verse.HumanlikeMeshPoolUtility::Verse.HumanlikeMeshPoolUtility.GetHumanlikeBodySetF
orPawn_Patch0(Verse.Pawn pawn)
IL_0000: // start original
IL_0000: call static System.Boolean Verse.ModsConfig::get_BiotechActive()
IL_0005: brfalse => Label0
IL_000A: ldarg.0
IL_000B: ldfld Verse.Pawn_AgeTracker Verse.Pawn::ageTracker
IL_0010: callvirt RimWorld.LifeStageDef Verse.Pawn_AgeTracker::get_CurLifeStage()
IL_0015: ldflda System.Nullable`1<System.Single>
RimWorld.LifeStageDef::bodyWidth
IL_001A: call System.Boolean System.Nullable`1<System.Single>::get_HasValue()
IL_001F: brfalse => Label1
IL_0024: ldarg.0
IL_0025: ldfld Verse.Pawn_AgeTracker Verse.Pawn::ageTracker
IL_002A: callvirt RimWorld.LifeStageDef Verse.Pawn_AgeTracker::get_CurLifeStage()
IL_002F: ldflda System.Nullable`1<System.Single>
RimWorld.LifeStageDef::bodyWidth
IL_0034: call System.Single System.Nullable`1<System.Single>::get_Value()
IL_0039: box System.Single
IL_003E: ldarg.0
IL_003F: call static Verse.GraphicMeshSet
AlienRace.HarmonyPatches::GetHumanlikeBodySetForPawnHelper(System.Object
lifestageFactor, Verse.Pawn pawn)
IL_0044: br => Label2
IL_0049: Label0
IL_0049: Label1
IL_0049: ldc.r4 1.5
IL_004E: box System.Single
IL_0053: ldarg.0
IL_0054: call static Verse.GraphicMeshSet
AlienRace.HarmonyPatches::GetHumanlikeBodySetForPawnHelper(System.Object
lifestageFactor, Verse.Pawn pawn)
IL_0059: // end original
IL_0059: Label2
IL_0059: ret
DONE

### Patch: static Verse.GraphicMeshSet


Verse.HumanlikeMeshPoolUtility::GetHumanlikeHeadSetForPawn(Verse.Pawn pawn)
### Replacement: static Verse.GraphicMeshSet
Verse.HumanlikeMeshPoolUtility::Verse.HumanlikeMeshPoolUtility.GetHumanlikeHeadSetF
orPawn_Patch0(Verse.Pawn pawn)
IL_0000: // start original
IL_0000: call static System.Boolean Verse.ModsConfig::get_BiotechActive()
IL_0005: brfalse => Label0
IL_000A: ldarg.0
IL_000B: ldfld Verse.Pawn_AgeTracker Verse.Pawn::ageTracker
IL_0010: callvirt RimWorld.LifeStageDef Verse.Pawn_AgeTracker::get_CurLifeStage()
IL_0015: ldflda System.Nullable`1<System.Single>
RimWorld.LifeStageDef::bodyWidth
IL_001A: call System.Boolean System.Nullable`1<System.Single>::get_HasValue()
IL_001F: brfalse => Label1
IL_0024: ldarg.0
IL_0025: ldfld Verse.Pawn_AgeTracker Verse.Pawn::ageTracker
IL_002A: callvirt RimWorld.LifeStageDef Verse.Pawn_AgeTracker::get_CurLifeStage()
IL_002F: ldflda System.Nullable`1<System.Single>
RimWorld.LifeStageDef::bodyWidth
IL_0034: call System.Single System.Nullable`1<System.Single>::get_Value()
IL_0039: box System.Single
IL_003E: ldarg.0
IL_003F: call static Verse.GraphicMeshSet
AlienRace.HarmonyPatches::GetHumanlikeHeadSetForPawnHelper(System.Object
lifestageFactor, Verse.Pawn pawn)
IL_0044: br => Label2
IL_0049: Label0
IL_0049: Label1
IL_0049: ldc.r4 1.5
IL_004E: box System.Single
IL_0053: ldarg.0
IL_0054: call static Verse.GraphicMeshSet
AlienRace.HarmonyPatches::GetHumanlikeHeadSetForPawnHelper(System.Object
lifestageFactor, Verse.Pawn pawn)
IL_0059: // end original
IL_0059: Label2
IL_0059: ret
DONE

### Patch: static Verse.GraphicMeshSet


Verse.HumanlikeMeshPoolUtility::GetHumanlikeHairSetForPawn(Verse.Pawn pawn)
### Replacement: static Verse.GraphicMeshSet
Verse.HumanlikeMeshPoolUtility::Verse.HumanlikeMeshPoolUtility.GetHumanlikeHairSetF
orPawn_Patch0(Verse.Pawn pawn)
IL_0000: Local var 0: UnityEngine.Vector2
IL_0000: // start original
IL_0000: ldarg.0
IL_0001: ldfld RimWorld.Pawn_StoryTracker Verse.Pawn::story
IL_0006: ldfld Verse.HeadTypeDef RimWorld.Pawn_StoryTracker::headType
IL_000B: ldfld UnityEngine.Vector2 Verse.HeadTypeDef::hairMeshSize
IL_0010: stloc.0
IL_0011: call static System.Boolean Verse.ModsConfig::get_BiotechActive()
IL_0016: brfalse => Label0
IL_001B: ldarg.0
IL_001C: ldfld Verse.Pawn_AgeTracker Verse.Pawn::ageTracker
IL_0021: callvirt RimWorld.LifeStageDef Verse.Pawn_AgeTracker::get_CurLifeStage()
IL_0026: ldflda System.Nullable`1<System.Single>
RimWorld.LifeStageDef::headSizeFactor
IL_002B: call System.Boolean System.Nullable`1<System.Single>::get_HasValue()
IL_0030: brfalse => Label1
IL_0035: ldloc.0
IL_0036: ldarg.0
IL_0037: ldfld Verse.Pawn_AgeTracker Verse.Pawn::ageTracker
IL_003C: callvirt RimWorld.LifeStageDef Verse.Pawn_AgeTracker::get_CurLifeStage()
IL_0041: ldflda System.Nullable`1<System.Single>
RimWorld.LifeStageDef::headSizeFactor
IL_0046: call System.Single System.Nullable`1<System.Single>::get_Value()
IL_004B: call static UnityEngine.Vector2
UnityEngine.Vector2::op_Multiply(UnityEngine.Vector2 a, System.Single d)
IL_0050: stloc.0
IL_0051: Label0
IL_0051: Label1
IL_0051: ldloc.0
IL_0052: ldarg.0
IL_0053: call static UnityEngine.Vector2
AlienRace.HarmonyPatches::GetHumanlikeHairSetForPawnHelper(UnityEngine.Vector2
headFactor, Verse.Pawn pawn)
IL_0058: stloc.0
IL_0059: Label0
IL_0059: Label1
IL_0059: ldloc.0
IL_005A: ldfld System.Single UnityEngine.Vector2::x
IL_005F: ldloc.0
IL_0060: ldfld System.Single UnityEngine.Vector2::y
IL_0065: call static Verse.GraphicMeshSet
Verse.MeshPool::GetMeshSetForWidth(System.Single width, System.Single height)
IL_006A: // end original
IL_006A: ret
DONE

### Patch: static Verse.GraphicMeshSet


Verse.HumanlikeMeshPoolUtility::GetHumanlikeBeardSetForPawn(Verse.Pawn pawn)
### Replacement: static Verse.GraphicMeshSet
Verse.HumanlikeMeshPoolUtility::Verse.HumanlikeMeshPoolUtility.GetHumanlikeBeardSet
ForPawn_Patch0(Verse.Pawn pawn)
IL_0000: Local var 0: UnityEngine.Vector2
IL_0000: // start original
IL_0000: ldarg.0
IL_0001: ldfld RimWorld.Pawn_StoryTracker Verse.Pawn::story
IL_0006: ldfld Verse.HeadTypeDef RimWorld.Pawn_StoryTracker::headType
IL_000B: ldfld UnityEngine.Vector2 Verse.HeadTypeDef::beardMeshSize
IL_0010: stloc.0
IL_0011: call static System.Boolean Verse.ModsConfig::get_BiotechActive()
IL_0016: brfalse => Label0
IL_001B: ldarg.0
IL_001C: ldfld Verse.Pawn_AgeTracker Verse.Pawn::ageTracker
IL_0021: callvirt RimWorld.LifeStageDef Verse.Pawn_AgeTracker::get_CurLifeStage()
IL_0026: ldflda System.Nullable`1<System.Single>
RimWorld.LifeStageDef::headSizeFactor
IL_002B: call System.Boolean System.Nullable`1<System.Single>::get_HasValue()
IL_0030: brfalse => Label1
IL_0035: ldloc.0
IL_0036: ldarg.0
IL_0037: ldfld Verse.Pawn_AgeTracker Verse.Pawn::ageTracker
IL_003C: callvirt RimWorld.LifeStageDef Verse.Pawn_AgeTracker::get_CurLifeStage()
IL_0041: ldflda System.Nullable`1<System.Single>
RimWorld.LifeStageDef::headSizeFactor
IL_0046: call System.Single System.Nullable`1<System.Single>::get_Value()
IL_004B: call static UnityEngine.Vector2
UnityEngine.Vector2::op_Multiply(UnityEngine.Vector2 a, System.Single d)
IL_0050: stloc.0
IL_0051: Label0
IL_0051: Label1
IL_0051: ldloc.0
IL_0052: ldarg.0
IL_0053: call static UnityEngine.Vector2
AlienRace.HarmonyPatches::GetHumanlikeHairSetForPawnHelper(UnityEngine.Vector2
headFactor, Verse.Pawn pawn)
IL_0058: stloc.0
IL_0059: Label0
IL_0059: Label1
IL_0059: ldloc.0
IL_005A: ldfld System.Single UnityEngine.Vector2::x
IL_005F: ldloc.0
IL_0060: ldfld System.Single UnityEngine.Vector2::y
IL_0065: call static Verse.GraphicMeshSet
Verse.MeshPool::GetMeshSetForWidth(System.Single width, System.Single height)
IL_006A: // end original
IL_006A: ret
DONE

### Patch: Verse.GraphicMeshSet Verse.PawnRenderer::GetBodyOverlayMeshSet()


### Replacement: static Verse.GraphicMeshSet
Verse.PawnRenderer::Verse.PawnRenderer.GetBodyOverlayMeshSet_Patch2(Verse.PawnRende
rer this)
IL_0000: Local var 0: RimWorld.BodyTypeDef
IL_0000: Local var 1: Verse.GraphicMeshSet
IL_0000: ldnull
IL_0001: stloc 1 (Verse.GraphicMeshSet)
IL_0005: // start original
IL_0005: ldarg.0
IL_0006: ldfld Verse.Pawn Verse.PawnRenderer::pawn
IL_000B: callvirt Verse.RaceProperties Verse.Pawn::get_RaceProps()
IL_0010: callvirt System.Boolean Verse.RaceProperties::get_Humanlike()
IL_0015: brtrue => Label0
IL_001A: ldarg.0
IL_001B: ldfld Verse.Pawn Verse.PawnRenderer::pawn
IL_0020: call static Verse.GraphicMeshSet
Verse.HumanlikeMeshPoolUtility::GetHumanlikeBodySetForPawn(Verse.Pawn pawn)
IL_0025: br => Label6
IL_002A: Label0
IL_002A: ldarg.0
IL_002B: ldfld Verse.Pawn Verse.PawnRenderer::pawn
IL_0030: ldfld RimWorld.Pawn_StoryTracker Verse.Pawn::story
IL_0035: ldfld RimWorld.BodyTypeDef RimWorld.Pawn_StoryTracker::bodyType
IL_003A: stloc.0
IL_003B: ldloc.0
IL_003C: ldsfld RimWorld.BodyTypeDef RimWorld.BodyTypeDefOf::Male
IL_0041: bne.un => Label1
IL_0046: ldsfld Verse.GraphicMeshSet Verse.MeshPool::humanlikeBodySet_Male
IL_004B: br => Label7
IL_0050: Label1
IL_0050: ldloc.0
IL_0051: ldsfld RimWorld.BodyTypeDef RimWorld.BodyTypeDefOf::Female
IL_0056: bne.un => Label2
IL_005B: ldsfld Verse.GraphicMeshSet Verse.MeshPool::humanlikeBodySet_Female
IL_0060: br => Label8
IL_0065: Label2
IL_0065: ldloc.0
IL_0066: ldsfld RimWorld.BodyTypeDef RimWorld.BodyTypeDefOf::Thin
IL_006B: bne.un => Label3
IL_0070: ldsfld Verse.GraphicMeshSet Verse.MeshPool::humanlikeBodySet_Thin
IL_0075: br => Label9
IL_007A: Label3
IL_007A: ldloc.0
IL_007B: ldsfld RimWorld.BodyTypeDef RimWorld.BodyTypeDefOf::Fat
IL_0080: bne.un => Label4
IL_0085: ldsfld Verse.GraphicMeshSet Verse.MeshPool::humanlikeBodySet_Fat
IL_008A: br => Label10
IL_008F: Label4
IL_008F: ldloc.0
IL_0090: ldsfld RimWorld.BodyTypeDef RimWorld.BodyTypeDefOf::Hulk
IL_0095: bne.un => Label5
IL_009A: ldsfld Verse.GraphicMeshSet Verse.MeshPool::humanlikeBodySet_Hulk
IL_009F: br => Label11
IL_00A4: Label5
IL_00A4: ldarg.0
IL_00A5: ldfld Verse.Pawn Verse.PawnRenderer::pawn
IL_00AA: call static Verse.GraphicMeshSet
Verse.HumanlikeMeshPoolUtility::GetHumanlikeBodySetForPawn(Verse.Pawn pawn)
IL_00AF: // end original
IL_00AF: Label6
IL_00AF: Label7
IL_00AF: Label8
IL_00AF: Label9
IL_00AF: Label10
IL_00AF: Label11
IL_00AF: stloc 1 (Verse.GraphicMeshSet)
IL_00B3: ldloca 1 (Verse.GraphicMeshSet)
IL_00B7: ldarg.0
IL_00B8: ldfld Verse.Pawn Verse.PawnRenderer::pawn
IL_00BD: call static System.Void
VanillaGenesExpanded.PawnRenderer_GetBodyOverlayMeshSet::Postfix(Verse.GraphicMeshS
et& __result, Verse.Pawn ___pawn)
IL_00C2: ldarg.0
IL_00C3: ldarg.0
IL_00C4: ldfld Verse.Pawn Verse.PawnRenderer::pawn
IL_00C9: ldloca 1 (Verse.GraphicMeshSet)
IL_00CD: call static System.Void
AlienRace.HarmonyPatches::GetBodyOverlayMeshSetPostfix(Verse.PawnRenderer
__instance, Verse.Pawn ___pawn, Verse.GraphicMeshSet& __result)
IL_00D2: ldloc 1 (Verse.GraphicMeshSet)
IL_00D6: ret
DONE

### Patch: static Verse.GraphicMeshSet


Verse.HumanlikeMeshPoolUtility::GetHumanlikeBodySetForPawn(Verse.Pawn pawn)
### Replacement: static Verse.GraphicMeshSet
Verse.HumanlikeMeshPoolUtility::Verse.HumanlikeMeshPoolUtility.GetHumanlikeBodySetF
orPawn_Patch0(Verse.Pawn pawn)
IL_0000: // start original
IL_0000: call static System.Boolean Verse.ModsConfig::get_BiotechActive()
IL_0005: brfalse => Label0
IL_000A: ldarg.0
IL_000B: ldfld Verse.Pawn_AgeTracker Verse.Pawn::ageTracker
IL_0010: callvirt RimWorld.LifeStageDef Verse.Pawn_AgeTracker::get_CurLifeStage()
IL_0015: ldflda System.Nullable`1<System.Single>
RimWorld.LifeStageDef::bodyWidth
IL_001A: call System.Boolean System.Nullable`1<System.Single>::get_HasValue()
IL_001F: brfalse => Label1
IL_0024: ldarg.0
IL_0025: ldfld Verse.Pawn_AgeTracker Verse.Pawn::ageTracker
IL_002A: callvirt RimWorld.LifeStageDef Verse.Pawn_AgeTracker::get_CurLifeStage()
IL_002F: ldflda System.Nullable`1<System.Single>
RimWorld.LifeStageDef::bodyWidth
IL_0034: call System.Single System.Nullable`1<System.Single>::get_Value()
IL_0039: box System.Single
IL_003E: ldarg.0
IL_003F: call static Verse.GraphicMeshSet
AlienRace.HarmonyPatches::GetHumanlikeBodySetForPawnHelper(System.Object
lifestageFactor, Verse.Pawn pawn)
IL_0044: br => Label2
IL_0049: Label0
IL_0049: Label1
IL_0049: ldc.r4 1.5
IL_004E: box System.Single
IL_0053: ldarg.0
IL_0054: call static Verse.GraphicMeshSet
AlienRace.HarmonyPatches::GetHumanlikeBodySetForPawnHelper(System.Object
lifestageFactor, Verse.Pawn pawn)
IL_0059: // end original
IL_0059: Label2
IL_0059: ret
DONE

### Patch: static Verse.GraphicMeshSet


Verse.HumanlikeMeshPoolUtility::GetHumanlikeHeadSetForPawn(Verse.Pawn pawn)
### Replacement: static Verse.GraphicMeshSet
Verse.HumanlikeMeshPoolUtility::Verse.HumanlikeMeshPoolUtility.GetHumanlikeHeadSetF
orPawn_Patch0(Verse.Pawn pawn)
IL_0000: // start original
IL_0000: call static System.Boolean Verse.ModsConfig::get_BiotechActive()
IL_0005: brfalse => Label0
IL_000A: ldarg.0
IL_000B: ldfld Verse.Pawn_AgeTracker Verse.Pawn::ageTracker
IL_0010: callvirt RimWorld.LifeStageDef Verse.Pawn_AgeTracker::get_CurLifeStage()
IL_0015: ldflda System.Nullable`1<System.Single>
RimWorld.LifeStageDef::bodyWidth
IL_001A: call System.Boolean System.Nullable`1<System.Single>::get_HasValue()
IL_001F: brfalse => Label1
IL_0024: ldarg.0
IL_0025: ldfld Verse.Pawn_AgeTracker Verse.Pawn::ageTracker
IL_002A: callvirt RimWorld.LifeStageDef Verse.Pawn_AgeTracker::get_CurLifeStage()
IL_002F: ldflda System.Nullable`1<System.Single>
RimWorld.LifeStageDef::bodyWidth
IL_0034: call System.Single System.Nullable`1<System.Single>::get_Value()
IL_0039: box System.Single
IL_003E: ldarg.0
IL_003F: call static Verse.GraphicMeshSet
AlienRace.HarmonyPatches::GetHumanlikeHeadSetForPawnHelper(System.Object
lifestageFactor, Verse.Pawn pawn)
IL_0044: br => Label2
IL_0049: Label0
IL_0049: Label1
IL_0049: ldc.r4 1.5
IL_004E: box System.Single
IL_0053: ldarg.0
IL_0054: call static Verse.GraphicMeshSet
AlienRace.HarmonyPatches::GetHumanlikeHeadSetForPawnHelper(System.Object
lifestageFactor, Verse.Pawn pawn)
IL_0059: // end original
IL_0059: Label2
IL_0059: ret
DONE

### Patch: static Verse.GraphicMeshSet


Verse.HumanlikeMeshPoolUtility::GetHumanlikeHairSetForPawn(Verse.Pawn pawn)
### Replacement: static Verse.GraphicMeshSet
Verse.HumanlikeMeshPoolUtility::Verse.HumanlikeMeshPoolUtility.GetHumanlikeHairSetF
orPawn_Patch0(Verse.Pawn pawn)
IL_0000: Local var 0: UnityEngine.Vector2
IL_0000: // start original
IL_0000: ldarg.0
IL_0001: ldfld RimWorld.Pawn_StoryTracker Verse.Pawn::story
IL_0006: ldfld Verse.HeadTypeDef RimWorld.Pawn_StoryTracker::headType
IL_000B: ldfld UnityEngine.Vector2 Verse.HeadTypeDef::hairMeshSize
IL_0010: stloc.0
IL_0011: call static System.Boolean Verse.ModsConfig::get_BiotechActive()
IL_0016: brfalse => Label0
IL_001B: ldarg.0
IL_001C: ldfld Verse.Pawn_AgeTracker Verse.Pawn::ageTracker
IL_0021: callvirt RimWorld.LifeStageDef Verse.Pawn_AgeTracker::get_CurLifeStage()
IL_0026: ldflda System.Nullable`1<System.Single>
RimWorld.LifeStageDef::headSizeFactor
IL_002B: call System.Boolean System.Nullable`1<System.Single>::get_HasValue()
IL_0030: brfalse => Label1
IL_0035: ldloc.0
IL_0036: ldarg.0
IL_0037: ldfld Verse.Pawn_AgeTracker Verse.Pawn::ageTracker
IL_003C: callvirt RimWorld.LifeStageDef Verse.Pawn_AgeTracker::get_CurLifeStage()
IL_0041: ldflda System.Nullable`1<System.Single>
RimWorld.LifeStageDef::headSizeFactor
IL_0046: call System.Single System.Nullable`1<System.Single>::get_Value()
IL_004B: call static UnityEngine.Vector2
UnityEngine.Vector2::op_Multiply(UnityEngine.Vector2 a, System.Single d)
IL_0050: stloc.0
IL_0051: Label0
IL_0051: Label1
IL_0051: ldloc.0
IL_0052: ldarg.0
IL_0053: call static UnityEngine.Vector2
AlienRace.HarmonyPatches::GetHumanlikeHairSetForPawnHelper(UnityEngine.Vector2
headFactor, Verse.Pawn pawn)
IL_0058: stloc.0
IL_0059: Label0
IL_0059: Label1
IL_0059: ldloc.0
IL_005A: ldfld System.Single UnityEngine.Vector2::x
IL_005F: ldloc.0
IL_0060: ldfld System.Single UnityEngine.Vector2::y
IL_0065: call static Verse.GraphicMeshSet
Verse.MeshPool::GetMeshSetForWidth(System.Single width, System.Single height)
IL_006A: // end original
IL_006A: ret
DONE

### Patch: static Verse.GraphicMeshSet


Verse.HumanlikeMeshPoolUtility::GetHumanlikeBeardSetForPawn(Verse.Pawn pawn)
### Replacement: static Verse.GraphicMeshSet
Verse.HumanlikeMeshPoolUtility::Verse.HumanlikeMeshPoolUtility.GetHumanlikeBeardSet
ForPawn_Patch0(Verse.Pawn pawn)
IL_0000: Local var 0: UnityEngine.Vector2
IL_0000: // start original
IL_0000: ldarg.0
IL_0001: ldfld RimWorld.Pawn_StoryTracker Verse.Pawn::story
IL_0006: ldfld Verse.HeadTypeDef RimWorld.Pawn_StoryTracker::headType
IL_000B: ldfld UnityEngine.Vector2 Verse.HeadTypeDef::beardMeshSize
IL_0010: stloc.0
IL_0011: call static System.Boolean Verse.ModsConfig::get_BiotechActive()
IL_0016: brfalse => Label0
IL_001B: ldarg.0
IL_001C: ldfld Verse.Pawn_AgeTracker Verse.Pawn::ageTracker
IL_0021: callvirt RimWorld.LifeStageDef Verse.Pawn_AgeTracker::get_CurLifeStage()
IL_0026: ldflda System.Nullable`1<System.Single>
RimWorld.LifeStageDef::headSizeFactor
IL_002B: call System.Boolean System.Nullable`1<System.Single>::get_HasValue()
IL_0030: brfalse => Label1
IL_0035: ldloc.0
IL_0036: ldarg.0
IL_0037: ldfld Verse.Pawn_AgeTracker Verse.Pawn::ageTracker
IL_003C: callvirt RimWorld.LifeStageDef Verse.Pawn_AgeTracker::get_CurLifeStage()
IL_0041: ldflda System.Nullable`1<System.Single>
RimWorld.LifeStageDef::headSizeFactor
IL_0046: call System.Single System.Nullable`1<System.Single>::get_Value()
IL_004B: call static UnityEngine.Vector2
UnityEngine.Vector2::op_Multiply(UnityEngine.Vector2 a, System.Single d)
IL_0050: stloc.0
IL_0051: Label0
IL_0051: Label1
IL_0051: ldloc.0
IL_0052: ldarg.0
IL_0053: call static UnityEngine.Vector2
AlienRace.HarmonyPatches::GetHumanlikeHairSetForPawnHelper(UnityEngine.Vector2
headFactor, Verse.Pawn pawn)
IL_0058: stloc.0
IL_0059: Label0
IL_0059: Label1
IL_0059: ldloc.0
IL_005A: ldfld System.Single UnityEngine.Vector2::x
IL_005F: ldloc.0
IL_0060: ldfld System.Single UnityEngine.Vector2::y
IL_0065: call static Verse.GraphicMeshSet
Verse.MeshPool::GetMeshSetForWidth(System.Single width, System.Single height)
IL_006A: // end original
IL_006A: ret
DONE

### Patch: Verse.GraphicMeshSet Verse.PawnRenderer::GetBodyOverlayMeshSet()


### Replacement: static Verse.GraphicMeshSet
Verse.PawnRenderer::Verse.PawnRenderer.GetBodyOverlayMeshSet_Patch2(Verse.PawnRende
rer this)
IL_0000: Local var 0: RimWorld.BodyTypeDef
IL_0000: Local var 1: Verse.GraphicMeshSet
IL_0000: ldnull
IL_0001: stloc 1 (Verse.GraphicMeshSet)
IL_0005: // start original
IL_0005: ldarg.0
IL_0006: ldfld Verse.Pawn Verse.PawnRenderer::pawn
IL_000B: callvirt Verse.RaceProperties Verse.Pawn::get_RaceProps()
IL_0010: callvirt System.Boolean Verse.RaceProperties::get_Humanlike()
IL_0015: brtrue => Label0
IL_001A: ldarg.0
IL_001B: ldfld Verse.Pawn Verse.PawnRenderer::pawn
IL_0020: call static Verse.GraphicMeshSet
Verse.HumanlikeMeshPoolUtility::GetHumanlikeBodySetForPawn(Verse.Pawn pawn)
IL_0025: br => Label6
IL_002A: Label0
IL_002A: ldarg.0
IL_002B: ldfld Verse.Pawn Verse.PawnRenderer::pawn
IL_0030: ldfld RimWorld.Pawn_StoryTracker Verse.Pawn::story
IL_0035: ldfld RimWorld.BodyTypeDef RimWorld.Pawn_StoryTracker::bodyType
IL_003A: stloc.0
IL_003B: ldloc.0
IL_003C: ldsfld RimWorld.BodyTypeDef RimWorld.BodyTypeDefOf::Male
IL_0041: bne.un => Label1
IL_0046: ldsfld Verse.GraphicMeshSet Verse.MeshPool::humanlikeBodySet_Male
IL_004B: br => Label7
IL_0050: Label1
IL_0050: ldloc.0
IL_0051: ldsfld RimWorld.BodyTypeDef RimWorld.BodyTypeDefOf::Female
IL_0056: bne.un => Label2
IL_005B: ldsfld Verse.GraphicMeshSet Verse.MeshPool::humanlikeBodySet_Female
IL_0060: br => Label8
IL_0065: Label2
IL_0065: ldloc.0
IL_0066: ldsfld RimWorld.BodyTypeDef RimWorld.BodyTypeDefOf::Thin
IL_006B: bne.un => Label3
IL_0070: ldsfld Verse.GraphicMeshSet Verse.MeshPool::humanlikeBodySet_Thin
IL_0075: br => Label9
IL_007A: Label3
IL_007A: ldloc.0
IL_007B: ldsfld RimWorld.BodyTypeDef RimWorld.BodyTypeDefOf::Fat
IL_0080: bne.un => Label4
IL_0085: ldsfld Verse.GraphicMeshSet Verse.MeshPool::humanlikeBodySet_Fat
IL_008A: br => Label10
IL_008F: Label4
IL_008F: ldloc.0
IL_0090: ldsfld RimWorld.BodyTypeDef RimWorld.BodyTypeDefOf::Hulk
IL_0095: bne.un => Label5
IL_009A: ldsfld Verse.GraphicMeshSet Verse.MeshPool::humanlikeBodySet_Hulk
IL_009F: br => Label11
IL_00A4: Label5
IL_00A4: ldarg.0
IL_00A5: ldfld Verse.Pawn Verse.PawnRenderer::pawn
IL_00AA: call static Verse.GraphicMeshSet
Verse.HumanlikeMeshPoolUtility::GetHumanlikeBodySetForPawn(Verse.Pawn pawn)
IL_00AF: // end original
IL_00AF: Label6
IL_00AF: Label7
IL_00AF: Label8
IL_00AF: Label9
IL_00AF: Label10
IL_00AF: Label11
IL_00AF: stloc 1 (Verse.GraphicMeshSet)
IL_00B3: ldloca 1 (Verse.GraphicMeshSet)
IL_00B7: ldarg.0
IL_00B8: ldfld Verse.Pawn Verse.PawnRenderer::pawn
IL_00BD: call static System.Void
VanillaGenesExpanded.PawnRenderer_GetBodyOverlayMeshSet::Postfix(Verse.GraphicMeshS
et& __result, Verse.Pawn ___pawn)
IL_00C2: ldarg.0
IL_00C3: ldarg.0
IL_00C4: ldfld Verse.Pawn Verse.PawnRenderer::pawn
IL_00C9: ldloca 1 (Verse.GraphicMeshSet)
IL_00CD: call static System.Void
AlienRace.HarmonyPatches::GetBodyOverlayMeshSetPostfix(Verse.PawnRenderer
__instance, Verse.Pawn ___pawn, Verse.GraphicMeshSet& __result)
IL_00D2: ldloc 1 (Verse.GraphicMeshSet)
IL_00D6: ret
DONE

### Patch: static Verse.GraphicMeshSet


Verse.HumanlikeMeshPoolUtility::GetHumanlikeBodySetForPawn(Verse.Pawn pawn)
### Replacement: static Verse.GraphicMeshSet
Verse.HumanlikeMeshPoolUtility::Verse.HumanlikeMeshPoolUtility.GetHumanlikeBodySetF
orPawn_Patch0(Verse.Pawn pawn)
IL_0000: // start original
IL_0000: call static System.Boolean Verse.ModsConfig::get_BiotechActive()
IL_0005: brfalse => Label0
IL_000A: ldarg.0
IL_000B: ldfld Verse.Pawn_AgeTracker Verse.Pawn::ageTracker
IL_0010: callvirt RimWorld.LifeStageDef Verse.Pawn_AgeTracker::get_CurLifeStage()
IL_0015: ldflda System.Nullable`1<System.Single>
RimWorld.LifeStageDef::bodyWidth
IL_001A: call System.Boolean System.Nullable`1<System.Single>::get_HasValue()
IL_001F: brfalse => Label1
IL_0024: ldarg.0
IL_0025: ldfld Verse.Pawn_AgeTracker Verse.Pawn::ageTracker
IL_002A: callvirt RimWorld.LifeStageDef Verse.Pawn_AgeTracker::get_CurLifeStage()
IL_002F: ldflda System.Nullable`1<System.Single>
RimWorld.LifeStageDef::bodyWidth
IL_0034: call System.Single System.Nullable`1<System.Single>::get_Value()
IL_0039: box System.Single
IL_003E: ldarg.0
IL_003F: call static Verse.GraphicMeshSet
AlienRace.HarmonyPatches::GetHumanlikeBodySetForPawnHelper(System.Object
lifestageFactor, Verse.Pawn pawn)
IL_0044: br => Label2
IL_0049: Label0
IL_0049: Label1
IL_0049: ldc.r4 1.5
IL_004E: box System.Single
IL_0053: ldarg.0
IL_0054: call static Verse.GraphicMeshSet
AlienRace.HarmonyPatches::GetHumanlikeBodySetForPawnHelper(System.Object
lifestageFactor, Verse.Pawn pawn)
IL_0059: // end original
IL_0059: Label2
IL_0059: ret
DONE

### Patch: static Verse.GraphicMeshSet


Verse.HumanlikeMeshPoolUtility::GetHumanlikeHeadSetForPawn(Verse.Pawn pawn)
### Replacement: static Verse.GraphicMeshSet
Verse.HumanlikeMeshPoolUtility::Verse.HumanlikeMeshPoolUtility.GetHumanlikeHeadSetF
orPawn_Patch0(Verse.Pawn pawn)
IL_0000: // start original
IL_0000: call static System.Boolean Verse.ModsConfig::get_BiotechActive()
IL_0005: brfalse => Label0
IL_000A: ldarg.0
IL_000B: ldfld Verse.Pawn_AgeTracker Verse.Pawn::ageTracker
IL_0010: callvirt RimWorld.LifeStageDef Verse.Pawn_AgeTracker::get_CurLifeStage()
IL_0015: ldflda System.Nullable`1<System.Single>
RimWorld.LifeStageDef::bodyWidth
IL_001A: call System.Boolean System.Nullable`1<System.Single>::get_HasValue()
IL_001F: brfalse => Label1
IL_0024: ldarg.0
IL_0025: ldfld Verse.Pawn_AgeTracker Verse.Pawn::ageTracker
IL_002A: callvirt RimWorld.LifeStageDef Verse.Pawn_AgeTracker::get_CurLifeStage()
IL_002F: ldflda System.Nullable`1<System.Single>
RimWorld.LifeStageDef::bodyWidth
IL_0034: call System.Single System.Nullable`1<System.Single>::get_Value()
IL_0039: box System.Single
IL_003E: ldarg.0
IL_003F: call static Verse.GraphicMeshSet
AlienRace.HarmonyPatches::GetHumanlikeHeadSetForPawnHelper(System.Object
lifestageFactor, Verse.Pawn pawn)
IL_0044: br => Label2
IL_0049: Label0
IL_0049: Label1
IL_0049: ldc.r4 1.5
IL_004E: box System.Single
IL_0053: ldarg.0
IL_0054: call static Verse.GraphicMeshSet
AlienRace.HarmonyPatches::GetHumanlikeHeadSetForPawnHelper(System.Object
lifestageFactor, Verse.Pawn pawn)
IL_0059: // end original
IL_0059: Label2
IL_0059: ret
DONE

### Patch: static Verse.GraphicMeshSet


Verse.HumanlikeMeshPoolUtility::GetHumanlikeHairSetForPawn(Verse.Pawn pawn)
### Replacement: static Verse.GraphicMeshSet
Verse.HumanlikeMeshPoolUtility::Verse.HumanlikeMeshPoolUtility.GetHumanlikeHairSetF
orPawn_Patch0(Verse.Pawn pawn)
IL_0000: Local var 0: UnityEngine.Vector2
IL_0000: // start original
IL_0000: ldarg.0
IL_0001: ldfld RimWorld.Pawn_StoryTracker Verse.Pawn::story
IL_0006: ldfld Verse.HeadTypeDef RimWorld.Pawn_StoryTracker::headType
IL_000B: ldfld UnityEngine.Vector2 Verse.HeadTypeDef::hairMeshSize
IL_0010: stloc.0
IL_0011: call static System.Boolean Verse.ModsConfig::get_BiotechActive()
IL_0016: brfalse => Label0
IL_001B: ldarg.0
IL_001C: ldfld Verse.Pawn_AgeTracker Verse.Pawn::ageTracker
IL_0021: callvirt RimWorld.LifeStageDef Verse.Pawn_AgeTracker::get_CurLifeStage()
IL_0026: ldflda System.Nullable`1<System.Single>
RimWorld.LifeStageDef::headSizeFactor
IL_002B: call System.Boolean System.Nullable`1<System.Single>::get_HasValue()
IL_0030: brfalse => Label1
IL_0035: ldloc.0
IL_0036: ldarg.0
IL_0037: ldfld Verse.Pawn_AgeTracker Verse.Pawn::ageTracker
IL_003C: callvirt RimWorld.LifeStageDef Verse.Pawn_AgeTracker::get_CurLifeStage()
IL_0041: ldflda System.Nullable`1<System.Single>
RimWorld.LifeStageDef::headSizeFactor
IL_0046: call System.Single System.Nullable`1<System.Single>::get_Value()
IL_004B: call static UnityEngine.Vector2
UnityEngine.Vector2::op_Multiply(UnityEngine.Vector2 a, System.Single d)
IL_0050: stloc.0
IL_0051: Label0
IL_0051: Label1
IL_0051: ldloc.0
IL_0052: ldarg.0
IL_0053: call static UnityEngine.Vector2
AlienRace.HarmonyPatches::GetHumanlikeHairSetForPawnHelper(UnityEngine.Vector2
headFactor, Verse.Pawn pawn)
IL_0058: stloc.0
IL_0059: Label0
IL_0059: Label1
IL_0059: ldloc.0
IL_005A: ldfld System.Single UnityEngine.Vector2::x
IL_005F: ldloc.0
IL_0060: ldfld System.Single UnityEngine.Vector2::y
IL_0065: call static Verse.GraphicMeshSet
Verse.MeshPool::GetMeshSetForWidth(System.Single width, System.Single height)
IL_006A: // end original
IL_006A: ret
DONE

### Patch: static Verse.GraphicMeshSet


Verse.HumanlikeMeshPoolUtility::GetHumanlikeBeardSetForPawn(Verse.Pawn pawn)
### Replacement: static Verse.GraphicMeshSet
Verse.HumanlikeMeshPoolUtility::Verse.HumanlikeMeshPoolUtility.GetHumanlikeBeardSet
ForPawn_Patch0(Verse.Pawn pawn)
IL_0000: Local var 0: UnityEngine.Vector2
IL_0000: // start original
IL_0000: ldarg.0
IL_0001: ldfld RimWorld.Pawn_StoryTracker Verse.Pawn::story
IL_0006: ldfld Verse.HeadTypeDef RimWorld.Pawn_StoryTracker::headType
IL_000B: ldfld UnityEngine.Vector2 Verse.HeadTypeDef::beardMeshSize
IL_0010: stloc.0
IL_0011: call static System.Boolean Verse.ModsConfig::get_BiotechActive()
IL_0016: brfalse => Label0
IL_001B: ldarg.0
IL_001C: ldfld Verse.Pawn_AgeTracker Verse.Pawn::ageTracker
IL_0021: callvirt RimWorld.LifeStageDef Verse.Pawn_AgeTracker::get_CurLifeStage()
IL_0026: ldflda System.Nullable`1<System.Single>
RimWorld.LifeStageDef::headSizeFactor
IL_002B: call System.Boolean System.Nullable`1<System.Single>::get_HasValue()
IL_0030: brfalse => Label1
IL_0035: ldloc.0
IL_0036: ldarg.0
IL_0037: ldfld Verse.Pawn_AgeTracker Verse.Pawn::ageTracker
IL_003C: callvirt RimWorld.LifeStageDef Verse.Pawn_AgeTracker::get_CurLifeStage()
IL_0041: ldflda System.Nullable`1<System.Single>
RimWorld.LifeStageDef::headSizeFactor
IL_0046: call System.Single System.Nullable`1<System.Single>::get_Value()
IL_004B: call static UnityEngine.Vector2
UnityEngine.Vector2::op_Multiply(UnityEngine.Vector2 a, System.Single d)
IL_0050: stloc.0
IL_0051: Label0
IL_0051: Label1
IL_0051: ldloc.0
IL_0052: ldarg.0
IL_0053: call static UnityEngine.Vector2
AlienRace.HarmonyPatches::GetHumanlikeHairSetForPawnHelper(UnityEngine.Vector2
headFactor, Verse.Pawn pawn)
IL_0058: stloc.0
IL_0059: Label0
IL_0059: Label1
IL_0059: ldloc.0
IL_005A: ldfld System.Single UnityEngine.Vector2::x
IL_005F: ldloc.0
IL_0060: ldfld System.Single UnityEngine.Vector2::y
IL_0065: call static Verse.GraphicMeshSet
Verse.MeshPool::GetMeshSetForWidth(System.Single width, System.Single height)
IL_006A: // end original
IL_006A: ret
DONE

### Patch: Verse.GraphicMeshSet Verse.PawnRenderer::GetBodyOverlayMeshSet()


### Replacement: static Verse.GraphicMeshSet
Verse.PawnRenderer::Verse.PawnRenderer.GetBodyOverlayMeshSet_Patch2(Verse.PawnRende
rer this)
IL_0000: Local var 0: RimWorld.BodyTypeDef
IL_0000: Local var 1: Verse.GraphicMeshSet
IL_0000: ldnull
IL_0001: stloc 1 (Verse.GraphicMeshSet)
IL_0005: // start original
IL_0005: ldarg.0
IL_0006: ldfld Verse.Pawn Verse.PawnRenderer::pawn
IL_000B: callvirt Verse.RaceProperties Verse.Pawn::get_RaceProps()
IL_0010: callvirt System.Boolean Verse.RaceProperties::get_Humanlike()
IL_0015: brtrue => Label0
IL_001A: ldarg.0
IL_001B: ldfld Verse.Pawn Verse.PawnRenderer::pawn
IL_0020: call static Verse.GraphicMeshSet
Verse.HumanlikeMeshPoolUtility::GetHumanlikeBodySetForPawn(Verse.Pawn pawn)
IL_0025: br => Label6
IL_002A: Label0
IL_002A: ldarg.0
IL_002B: ldfld Verse.Pawn Verse.PawnRenderer::pawn
IL_0030: ldfld RimWorld.Pawn_StoryTracker Verse.Pawn::story
IL_0035: ldfld RimWorld.BodyTypeDef RimWorld.Pawn_StoryTracker::bodyType
IL_003A: stloc.0
IL_003B: ldloc.0
IL_003C: ldsfld RimWorld.BodyTypeDef RimWorld.BodyTypeDefOf::Male
IL_0041: bne.un => Label1
IL_0046: ldsfld Verse.GraphicMeshSet Verse.MeshPool::humanlikeBodySet_Male
IL_004B: br => Label7
IL_0050: Label1
IL_0050: ldloc.0
IL_0051: ldsfld RimWorld.BodyTypeDef RimWorld.BodyTypeDefOf::Female
IL_0056: bne.un => Label2
IL_005B: ldsfld Verse.GraphicMeshSet Verse.MeshPool::humanlikeBodySet_Female
IL_0060: br => Label8
IL_0065: Label2
IL_0065: ldloc.0
IL_0066: ldsfld RimWorld.BodyTypeDef RimWorld.BodyTypeDefOf::Thin
IL_006B: bne.un => Label3
IL_0070: ldsfld Verse.GraphicMeshSet Verse.MeshPool::humanlikeBodySet_Thin
IL_0075: br => Label9
IL_007A: Label3
IL_007A: ldloc.0
IL_007B: ldsfld RimWorld.BodyTypeDef RimWorld.BodyTypeDefOf::Fat
IL_0080: bne.un => Label4
IL_0085: ldsfld Verse.GraphicMeshSet Verse.MeshPool::humanlikeBodySet_Fat
IL_008A: br => Label10
IL_008F: Label4
IL_008F: ldloc.0
IL_0090: ldsfld RimWorld.BodyTypeDef RimWorld.BodyTypeDefOf::Hulk
IL_0095: bne.un => Label5
IL_009A: ldsfld Verse.GraphicMeshSet Verse.MeshPool::humanlikeBodySet_Hulk
IL_009F: br => Label11
IL_00A4: Label5
IL_00A4: ldarg.0
IL_00A5: ldfld Verse.Pawn Verse.PawnRenderer::pawn
IL_00AA: call static Verse.GraphicMeshSet
Verse.HumanlikeMeshPoolUtility::GetHumanlikeBodySetForPawn(Verse.Pawn pawn)
IL_00AF: // end original
IL_00AF: Label6
IL_00AF: Label7
IL_00AF: Label8
IL_00AF: Label9
IL_00AF: Label10
IL_00AF: Label11
IL_00AF: stloc 1 (Verse.GraphicMeshSet)
IL_00B3: ldloca 1 (Verse.GraphicMeshSet)
IL_00B7: ldarg.0
IL_00B8: ldfld Verse.Pawn Verse.PawnRenderer::pawn
IL_00BD: call static System.Void
VanillaGenesExpanded.PawnRenderer_GetBodyOverlayMeshSet::Postfix(Verse.GraphicMeshS
et& __result, Verse.Pawn ___pawn)
IL_00C2: ldarg.0
IL_00C3: ldarg.0
IL_00C4: ldfld Verse.Pawn Verse.PawnRenderer::pawn
IL_00C9: ldloca 1 (Verse.GraphicMeshSet)
IL_00CD: call static System.Void
AlienRace.HarmonyPatches::GetBodyOverlayMeshSetPostfix(Verse.PawnRenderer
__instance, Verse.Pawn ___pawn, Verse.GraphicMeshSet& __result)
IL_00D2: ldloc 1 (Verse.GraphicMeshSet)
IL_00D6: ret
DONE

### Patch: static Verse.GraphicMeshSet


Verse.HumanlikeMeshPoolUtility::GetHumanlikeBodySetForPawn(Verse.Pawn pawn)
### Replacement: static Verse.GraphicMeshSet
Verse.HumanlikeMeshPoolUtility::Verse.HumanlikeMeshPoolUtility.GetHumanlikeBodySetF
orPawn_Patch0(Verse.Pawn pawn)
IL_0000: // start original
IL_0000: call static System.Boolean Verse.ModsConfig::get_BiotechActive()
IL_0005: brfalse => Label0
IL_000A: ldarg.0
IL_000B: ldfld Verse.Pawn_AgeTracker Verse.Pawn::ageTracker
IL_0010: callvirt RimWorld.LifeStageDef Verse.Pawn_AgeTracker::get_CurLifeStage()
IL_0015: ldflda System.Nullable`1<System.Single>
RimWorld.LifeStageDef::bodyWidth
IL_001A: call System.Boolean System.Nullable`1<System.Single>::get_HasValue()
IL_001F: brfalse => Label1
IL_0024: ldarg.0
IL_0025: ldfld Verse.Pawn_AgeTracker Verse.Pawn::ageTracker
IL_002A: callvirt RimWorld.LifeStageDef Verse.Pawn_AgeTracker::get_CurLifeStage()
IL_002F: ldflda System.Nullable`1<System.Single>
RimWorld.LifeStageDef::bodyWidth
IL_0034: call System.Single System.Nullable`1<System.Single>::get_Value()
IL_0039: box System.Single
IL_003E: ldarg.0
IL_003F: call static Verse.GraphicMeshSet
AlienRace.HarmonyPatches::GetHumanlikeBodySetForPawnHelper(System.Object
lifestageFactor, Verse.Pawn pawn)
IL_0044: br => Label2
IL_0049: Label0
IL_0049: Label1
IL_0049: ldc.r4 1.5
IL_004E: box System.Single
IL_0053: ldarg.0
IL_0054: call static Verse.GraphicMeshSet
AlienRace.HarmonyPatches::GetHumanlikeBodySetForPawnHelper(System.Object
lifestageFactor, Verse.Pawn pawn)
IL_0059: // end original
IL_0059: Label2
IL_0059: ret
DONE

### Patch: static Verse.GraphicMeshSet


Verse.HumanlikeMeshPoolUtility::GetHumanlikeHeadSetForPawn(Verse.Pawn pawn)
### Replacement: static Verse.GraphicMeshSet
Verse.HumanlikeMeshPoolUtility::Verse.HumanlikeMeshPoolUtility.GetHumanlikeHeadSetF
orPawn_Patch0(Verse.Pawn pawn)
IL_0000: // start original
IL_0000: call static System.Boolean Verse.ModsConfig::get_BiotechActive()
IL_0005: brfalse => Label0
IL_000A: ldarg.0
IL_000B: ldfld Verse.Pawn_AgeTracker Verse.Pawn::ageTracker
IL_0010: callvirt RimWorld.LifeStageDef Verse.Pawn_AgeTracker::get_CurLifeStage()
IL_0015: ldflda System.Nullable`1<System.Single>
RimWorld.LifeStageDef::bodyWidth
IL_001A: call System.Boolean System.Nullable`1<System.Single>::get_HasValue()
IL_001F: brfalse => Label1
IL_0024: ldarg.0
IL_0025: ldfld Verse.Pawn_AgeTracker Verse.Pawn::ageTracker
IL_002A: callvirt RimWorld.LifeStageDef Verse.Pawn_AgeTracker::get_CurLifeStage()
IL_002F: ldflda System.Nullable`1<System.Single>
RimWorld.LifeStageDef::bodyWidth
IL_0034: call System.Single System.Nullable`1<System.Single>::get_Value()
IL_0039: box System.Single
IL_003E: ldarg.0
IL_003F: call static Verse.GraphicMeshSet
AlienRace.HarmonyPatches::GetHumanlikeHeadSetForPawnHelper(System.Object
lifestageFactor, Verse.Pawn pawn)
IL_0044: br => Label2
IL_0049: Label0
IL_0049: Label1
IL_0049: ldc.r4 1.5
IL_004E: box System.Single
IL_0053: ldarg.0
IL_0054: call static Verse.GraphicMeshSet
AlienRace.HarmonyPatches::GetHumanlikeHeadSetForPawnHelper(System.Object
lifestageFactor, Verse.Pawn pawn)
IL_0059: // end original
IL_0059: Label2
IL_0059: ret
DONE

### Patch: static Verse.GraphicMeshSet


Verse.HumanlikeMeshPoolUtility::GetHumanlikeHairSetForPawn(Verse.Pawn pawn)
### Replacement: static Verse.GraphicMeshSet
Verse.HumanlikeMeshPoolUtility::Verse.HumanlikeMeshPoolUtility.GetHumanlikeHairSetF
orPawn_Patch0(Verse.Pawn pawn)
IL_0000: Local var 0: UnityEngine.Vector2
IL_0000: // start original
IL_0000: ldarg.0
IL_0001: ldfld RimWorld.Pawn_StoryTracker Verse.Pawn::story
IL_0006: ldfld Verse.HeadTypeDef RimWorld.Pawn_StoryTracker::headType
IL_000B: ldfld UnityEngine.Vector2 Verse.HeadTypeDef::hairMeshSize
IL_0010: stloc.0
IL_0011: call static System.Boolean Verse.ModsConfig::get_BiotechActive()
IL_0016: brfalse => Label0
IL_001B: ldarg.0
IL_001C: ldfld Verse.Pawn_AgeTracker Verse.Pawn::ageTracker
IL_0021: callvirt RimWorld.LifeStageDef Verse.Pawn_AgeTracker::get_CurLifeStage()
IL_0026: ldflda System.Nullable`1<System.Single>
RimWorld.LifeStageDef::headSizeFactor
IL_002B: call System.Boolean System.Nullable`1<System.Single>::get_HasValue()
IL_0030: brfalse => Label1
IL_0035: ldloc.0
IL_0036: ldarg.0
IL_0037: ldfld Verse.Pawn_AgeTracker Verse.Pawn::ageTracker
IL_003C: callvirt RimWorld.LifeStageDef Verse.Pawn_AgeTracker::get_CurLifeStage()
IL_0041: ldflda System.Nullable`1<System.Single>
RimWorld.LifeStageDef::headSizeFactor
IL_0046: call System.Single System.Nullable`1<System.Single>::get_Value()
IL_004B: call static UnityEngine.Vector2
UnityEngine.Vector2::op_Multiply(UnityEngine.Vector2 a, System.Single d)
IL_0050: stloc.0
IL_0051: Label0
IL_0051: Label1
IL_0051: ldloc.0
IL_0052: ldarg.0
IL_0053: call static UnityEngine.Vector2
AlienRace.HarmonyPatches::GetHumanlikeHairSetForPawnHelper(UnityEngine.Vector2
headFactor, Verse.Pawn pawn)
IL_0058: stloc.0
IL_0059: Label0
IL_0059: Label1
IL_0059: ldloc.0
IL_005A: ldfld System.Single UnityEngine.Vector2::x
IL_005F: ldloc.0
IL_0060: ldfld System.Single UnityEngine.Vector2::y
IL_0065: call static Verse.GraphicMeshSet
Verse.MeshPool::GetMeshSetForWidth(System.Single width, System.Single height)
IL_006A: // end original
IL_006A: ret
DONE

### Patch: static Verse.GraphicMeshSet


Verse.HumanlikeMeshPoolUtility::GetHumanlikeBeardSetForPawn(Verse.Pawn pawn)
### Replacement: static Verse.GraphicMeshSet
Verse.HumanlikeMeshPoolUtility::Verse.HumanlikeMeshPoolUtility.GetHumanlikeBeardSet
ForPawn_Patch0(Verse.Pawn pawn)
IL_0000: Local var 0: UnityEngine.Vector2
IL_0000: // start original
IL_0000: ldarg.0
IL_0001: ldfld RimWorld.Pawn_StoryTracker Verse.Pawn::story
IL_0006: ldfld Verse.HeadTypeDef RimWorld.Pawn_StoryTracker::headType
IL_000B: ldfld UnityEngine.Vector2 Verse.HeadTypeDef::beardMeshSize
IL_0010: stloc.0
IL_0011: call static System.Boolean Verse.ModsConfig::get_BiotechActive()
IL_0016: brfalse => Label0
IL_001B: ldarg.0
IL_001C: ldfld Verse.Pawn_AgeTracker Verse.Pawn::ageTracker
IL_0021: callvirt RimWorld.LifeStageDef Verse.Pawn_AgeTracker::get_CurLifeStage()
IL_0026: ldflda System.Nullable`1<System.Single>
RimWorld.LifeStageDef::headSizeFactor
IL_002B: call System.Boolean System.Nullable`1<System.Single>::get_HasValue()
IL_0030: brfalse => Label1
IL_0035: ldloc.0
IL_0036: ldarg.0
IL_0037: ldfld Verse.Pawn_AgeTracker Verse.Pawn::ageTracker
IL_003C: callvirt RimWorld.LifeStageDef Verse.Pawn_AgeTracker::get_CurLifeStage()
IL_0041: ldflda System.Nullable`1<System.Single>
RimWorld.LifeStageDef::headSizeFactor
IL_0046: call System.Single System.Nullable`1<System.Single>::get_Value()
IL_004B: call static UnityEngine.Vector2
UnityEngine.Vector2::op_Multiply(UnityEngine.Vector2 a, System.Single d)
IL_0050: stloc.0
IL_0051: Label0
IL_0051: Label1
IL_0051: ldloc.0
IL_0052: ldarg.0
IL_0053: call static UnityEngine.Vector2
AlienRace.HarmonyPatches::GetHumanlikeHairSetForPawnHelper(UnityEngine.Vector2
headFactor, Verse.Pawn pawn)
IL_0058: stloc.0
IL_0059: Label0
IL_0059: Label1
IL_0059: ldloc.0
IL_005A: ldfld System.Single UnityEngine.Vector2::x
IL_005F: ldloc.0
IL_0060: ldfld System.Single UnityEngine.Vector2::y
IL_0065: call static Verse.GraphicMeshSet
Verse.MeshPool::GetMeshSetForWidth(System.Single width, System.Single height)
IL_006A: // end original
IL_006A: ret
DONE

### Patch: Verse.GraphicMeshSet Verse.PawnRenderer::GetBodyOverlayMeshSet()


### Replacement: static Verse.GraphicMeshSet
Verse.PawnRenderer::Verse.PawnRenderer.GetBodyOverlayMeshSet_Patch2(Verse.PawnRende
rer this)
IL_0000: Local var 0: RimWorld.BodyTypeDef
IL_0000: Local var 1: Verse.GraphicMeshSet
IL_0000: ldnull
IL_0001: stloc 1 (Verse.GraphicMeshSet)
IL_0005: // start original
IL_0005: ldarg.0
IL_0006: ldfld Verse.Pawn Verse.PawnRenderer::pawn
IL_000B: callvirt Verse.RaceProperties Verse.Pawn::get_RaceProps()
IL_0010: callvirt System.Boolean Verse.RaceProperties::get_Humanlike()
IL_0015: brtrue => Label0
IL_001A: ldarg.0
IL_001B: ldfld Verse.Pawn Verse.PawnRenderer::pawn
IL_0020: call static Verse.GraphicMeshSet
Verse.HumanlikeMeshPoolUtility::GetHumanlikeBodySetForPawn(Verse.Pawn pawn)
IL_0025: br => Label6
IL_002A: Label0
IL_002A: ldarg.0
IL_002B: ldfld Verse.Pawn Verse.PawnRenderer::pawn
IL_0030: ldfld RimWorld.Pawn_StoryTracker Verse.Pawn::story
IL_0035: ldfld RimWorld.BodyTypeDef RimWorld.Pawn_StoryTracker::bodyType
IL_003A: stloc.0
IL_003B: ldloc.0
IL_003C: ldsfld RimWorld.BodyTypeDef RimWorld.BodyTypeDefOf::Male
IL_0041: bne.un => Label1
IL_0046: ldsfld Verse.GraphicMeshSet Verse.MeshPool::humanlikeBodySet_Male
IL_004B: br => Label7
IL_0050: Label1
IL_0050: ldloc.0
IL_0051: ldsfld RimWorld.BodyTypeDef RimWorld.BodyTypeDefOf::Female
IL_0056: bne.un => Label2
IL_005B: ldsfld Verse.GraphicMeshSet Verse.MeshPool::humanlikeBodySet_Female
IL_0060: br => Label8
IL_0065: Label2
IL_0065: ldloc.0
IL_0066: ldsfld RimWorld.BodyTypeDef RimWorld.BodyTypeDefOf::Thin
IL_006B: bne.un => Label3
IL_0070: ldsfld Verse.GraphicMeshSet Verse.MeshPool::humanlikeBodySet_Thin
IL_0075: br => Label9
IL_007A: Label3
IL_007A: ldloc.0
IL_007B: ldsfld RimWorld.BodyTypeDef RimWorld.BodyTypeDefOf::Fat
IL_0080: bne.un => Label4
IL_0085: ldsfld Verse.GraphicMeshSet Verse.MeshPool::humanlikeBodySet_Fat
IL_008A: br => Label10
IL_008F: Label4
IL_008F: ldloc.0
IL_0090: ldsfld RimWorld.BodyTypeDef RimWorld.BodyTypeDefOf::Hulk
IL_0095: bne.un => Label5
IL_009A: ldsfld Verse.GraphicMeshSet Verse.MeshPool::humanlikeBodySet_Hulk
IL_009F: br => Label11
IL_00A4: Label5
IL_00A4: ldarg.0
IL_00A5: ldfld Verse.Pawn Verse.PawnRenderer::pawn
IL_00AA: call static Verse.GraphicMeshSet
Verse.HumanlikeMeshPoolUtility::GetHumanlikeBodySetForPawn(Verse.Pawn pawn)
IL_00AF: // end original
IL_00AF: Label6
IL_00AF: Label7
IL_00AF: Label8
IL_00AF: Label9
IL_00AF: Label10
IL_00AF: Label11
IL_00AF: stloc 1 (Verse.GraphicMeshSet)
IL_00B3: ldloca 1 (Verse.GraphicMeshSet)
IL_00B7: ldarg.0
IL_00B8: ldfld Verse.Pawn Verse.PawnRenderer::pawn
IL_00BD: call static System.Void
VanillaGenesExpanded.PawnRenderer_GetBodyOverlayMeshSet::Postfix(Verse.GraphicMeshS
et& __result, Verse.Pawn ___pawn)
IL_00C2: ldarg.0
IL_00C3: ldarg.0
IL_00C4: ldfld Verse.Pawn Verse.PawnRenderer::pawn
IL_00C9: ldloca 1 (Verse.GraphicMeshSet)
IL_00CD: call static System.Void
AlienRace.HarmonyPatches::GetBodyOverlayMeshSetPostfix(Verse.PawnRenderer
__instance, Verse.Pawn ___pawn, Verse.GraphicMeshSet& __result)
IL_00D2: ldloc 1 (Verse.GraphicMeshSet)
IL_00D6: ret
DONE

### Patch: static Verse.GraphicMeshSet


Verse.HumanlikeMeshPoolUtility::GetHumanlikeBodySetForPawn(Verse.Pawn pawn)
### Replacement: static Verse.GraphicMeshSet
Verse.HumanlikeMeshPoolUtility::Verse.HumanlikeMeshPoolUtility.GetHumanlikeBodySetF
orPawn_Patch0(Verse.Pawn pawn)
IL_0000: // start original
IL_0000: call static System.Boolean Verse.ModsConfig::get_BiotechActive()
IL_0005: brfalse => Label0
IL_000A: ldarg.0
IL_000B: ldfld Verse.Pawn_AgeTracker Verse.Pawn::ageTracker
IL_0010: callvirt RimWorld.LifeStageDef Verse.Pawn_AgeTracker::get_CurLifeStage()
IL_0015: ldflda System.Nullable`1<System.Single>
RimWorld.LifeStageDef::bodyWidth
IL_001A: call System.Boolean System.Nullable`1<System.Single>::get_HasValue()
IL_001F: brfalse => Label1
IL_0024: ldarg.0
IL_0025: ldfld Verse.Pawn_AgeTracker Verse.Pawn::ageTracker
IL_002A: callvirt RimWorld.LifeStageDef Verse.Pawn_AgeTracker::get_CurLifeStage()
IL_002F: ldflda System.Nullable`1<System.Single>
RimWorld.LifeStageDef::bodyWidth
IL_0034: call System.Single System.Nullable`1<System.Single>::get_Value()
IL_0039: box System.Single
IL_003E: ldarg.0
IL_003F: call static Verse.GraphicMeshSet
AlienRace.HarmonyPatches::GetHumanlikeBodySetForPawnHelper(System.Object
lifestageFactor, Verse.Pawn pawn)
IL_0044: br => Label2
IL_0049: Label0
IL_0049: Label1
IL_0049: ldc.r4 1.5
IL_004E: box System.Single
IL_0053: ldarg.0
IL_0054: call static Verse.GraphicMeshSet
AlienRace.HarmonyPatches::GetHumanlikeBodySetForPawnHelper(System.Object
lifestageFactor, Verse.Pawn pawn)
IL_0059: // end original
IL_0059: Label2
IL_0059: ret
DONE

### Patch: static Verse.GraphicMeshSet


Verse.HumanlikeMeshPoolUtility::GetHumanlikeHeadSetForPawn(Verse.Pawn pawn)
### Replacement: static Verse.GraphicMeshSet
Verse.HumanlikeMeshPoolUtility::Verse.HumanlikeMeshPoolUtility.GetHumanlikeHeadSetF
orPawn_Patch0(Verse.Pawn pawn)
IL_0000: // start original
IL_0000: call static System.Boolean Verse.ModsConfig::get_BiotechActive()
IL_0005: brfalse => Label0
IL_000A: ldarg.0
IL_000B: ldfld Verse.Pawn_AgeTracker Verse.Pawn::ageTracker
IL_0010: callvirt RimWorld.LifeStageDef Verse.Pawn_AgeTracker::get_CurLifeStage()
IL_0015: ldflda System.Nullable`1<System.Single>
RimWorld.LifeStageDef::bodyWidth
IL_001A: call System.Boolean System.Nullable`1<System.Single>::get_HasValue()
IL_001F: brfalse => Label1
IL_0024: ldarg.0
IL_0025: ldfld Verse.Pawn_AgeTracker Verse.Pawn::ageTracker
IL_002A: callvirt RimWorld.LifeStageDef Verse.Pawn_AgeTracker::get_CurLifeStage()
IL_002F: ldflda System.Nullable`1<System.Single>
RimWorld.LifeStageDef::bodyWidth
IL_0034: call System.Single System.Nullable`1<System.Single>::get_Value()
IL_0039: box System.Single
IL_003E: ldarg.0
IL_003F: call static Verse.GraphicMeshSet
AlienRace.HarmonyPatches::GetHumanlikeHeadSetForPawnHelper(System.Object
lifestageFactor, Verse.Pawn pawn)
IL_0044: br => Label2
IL_0049: Label0
IL_0049: Label1
IL_0049: ldc.r4 1.5
IL_004E: box System.Single
IL_0053: ldarg.0
IL_0054: call static Verse.GraphicMeshSet
AlienRace.HarmonyPatches::GetHumanlikeHeadSetForPawnHelper(System.Object
lifestageFactor, Verse.Pawn pawn)
IL_0059: // end original
IL_0059: Label2
IL_0059: ret
DONE

### Patch: static Verse.GraphicMeshSet


Verse.HumanlikeMeshPoolUtility::GetHumanlikeHairSetForPawn(Verse.Pawn pawn)
### Replacement: static Verse.GraphicMeshSet
Verse.HumanlikeMeshPoolUtility::Verse.HumanlikeMeshPoolUtility.GetHumanlikeHairSetF
orPawn_Patch0(Verse.Pawn pawn)
IL_0000: Local var 0: UnityEngine.Vector2
IL_0000: // start original
IL_0000: ldarg.0
IL_0001: ldfld RimWorld.Pawn_StoryTracker Verse.Pawn::story
IL_0006: ldfld Verse.HeadTypeDef RimWorld.Pawn_StoryTracker::headType
IL_000B: ldfld UnityEngine.Vector2 Verse.HeadTypeDef::hairMeshSize
IL_0010: stloc.0
IL_0011: call static System.Boolean Verse.ModsConfig::get_BiotechActive()
IL_0016: brfalse => Label0
IL_001B: ldarg.0
IL_001C: ldfld Verse.Pawn_AgeTracker Verse.Pawn::ageTracker
IL_0021: callvirt RimWorld.LifeStageDef Verse.Pawn_AgeTracker::get_CurLifeStage()
IL_0026: ldflda System.Nullable`1<System.Single>
RimWorld.LifeStageDef::headSizeFactor
IL_002B: call System.Boolean System.Nullable`1<System.Single>::get_HasValue()
IL_0030: brfalse => Label1
IL_0035: ldloc.0
IL_0036: ldarg.0
IL_0037: ldfld Verse.Pawn_AgeTracker Verse.Pawn::ageTracker
IL_003C: callvirt RimWorld.LifeStageDef Verse.Pawn_AgeTracker::get_CurLifeStage()
IL_0041: ldflda System.Nullable`1<System.Single>
RimWorld.LifeStageDef::headSizeFactor
IL_0046: call System.Single System.Nullable`1<System.Single>::get_Value()
IL_004B: call static UnityEngine.Vector2
UnityEngine.Vector2::op_Multiply(UnityEngine.Vector2 a, System.Single d)
IL_0050: stloc.0
IL_0051: Label0
IL_0051: Label1
IL_0051: ldloc.0
IL_0052: ldarg.0
IL_0053: call static UnityEngine.Vector2
AlienRace.HarmonyPatches::GetHumanlikeHairSetForPawnHelper(UnityEngine.Vector2
headFactor, Verse.Pawn pawn)
IL_0058: stloc.0
IL_0059: Label0
IL_0059: Label1
IL_0059: ldloc.0
IL_005A: ldfld System.Single UnityEngine.Vector2::x
IL_005F: ldloc.0
IL_0060: ldfld System.Single UnityEngine.Vector2::y
IL_0065: call static Verse.GraphicMeshSet
Verse.MeshPool::GetMeshSetForWidth(System.Single width, System.Single height)
IL_006A: // end original
IL_006A: ret
DONE

### Patch: static Verse.GraphicMeshSet


Verse.HumanlikeMeshPoolUtility::GetHumanlikeBeardSetForPawn(Verse.Pawn pawn)
### Replacement: static Verse.GraphicMeshSet
Verse.HumanlikeMeshPoolUtility::Verse.HumanlikeMeshPoolUtility.GetHumanlikeBeardSet
ForPawn_Patch0(Verse.Pawn pawn)
IL_0000: Local var 0: UnityEngine.Vector2
IL_0000: // start original
IL_0000: ldarg.0
IL_0001: ldfld RimWorld.Pawn_StoryTracker Verse.Pawn::story
IL_0006: ldfld Verse.HeadTypeDef RimWorld.Pawn_StoryTracker::headType
IL_000B: ldfld UnityEngine.Vector2 Verse.HeadTypeDef::beardMeshSize
IL_0010: stloc.0
IL_0011: call static System.Boolean Verse.ModsConfig::get_BiotechActive()
IL_0016: brfalse => Label0
IL_001B: ldarg.0
IL_001C: ldfld Verse.Pawn_AgeTracker Verse.Pawn::ageTracker
IL_0021: callvirt RimWorld.LifeStageDef Verse.Pawn_AgeTracker::get_CurLifeStage()
IL_0026: ldflda System.Nullable`1<System.Single>
RimWorld.LifeStageDef::headSizeFactor
IL_002B: call System.Boolean System.Nullable`1<System.Single>::get_HasValue()
IL_0030: brfalse => Label1
IL_0035: ldloc.0
IL_0036: ldarg.0
IL_0037: ldfld Verse.Pawn_AgeTracker Verse.Pawn::ageTracker
IL_003C: callvirt RimWorld.LifeStageDef Verse.Pawn_AgeTracker::get_CurLifeStage()
IL_0041: ldflda System.Nullable`1<System.Single>
RimWorld.LifeStageDef::headSizeFactor
IL_0046: call System.Single System.Nullable`1<System.Single>::get_Value()
IL_004B: call static UnityEngine.Vector2
UnityEngine.Vector2::op_Multiply(UnityEngine.Vector2 a, System.Single d)
IL_0050: stloc.0
IL_0051: Label0
IL_0051: Label1
IL_0051: ldloc.0
IL_0052: ldarg.0
IL_0053: call static UnityEngine.Vector2
AlienRace.HarmonyPatches::GetHumanlikeHairSetForPawnHelper(UnityEngine.Vector2
headFactor, Verse.Pawn pawn)
IL_0058: stloc.0
IL_0059: Label0
IL_0059: Label1
IL_0059: ldloc.0
IL_005A: ldfld System.Single UnityEngine.Vector2::x
IL_005F: ldloc.0
IL_0060: ldfld System.Single UnityEngine.Vector2::y
IL_0065: call static Verse.GraphicMeshSet
Verse.MeshPool::GetMeshSetForWidth(System.Single width, System.Single height)
IL_006A: // end original
IL_006A: ret
DONE

### Patch: Verse.GraphicMeshSet Verse.PawnRenderer::GetBodyOverlayMeshSet()


### Replacement: static Verse.GraphicMeshSet
Verse.PawnRenderer::Verse.PawnRenderer.GetBodyOverlayMeshSet_Patch2(Verse.PawnRende
rer this)
IL_0000: Local var 0: RimWorld.BodyTypeDef
IL_0000: Local var 1: Verse.GraphicMeshSet
IL_0000: ldnull
IL_0001: stloc 1 (Verse.GraphicMeshSet)
IL_0005: // start original
IL_0005: ldarg.0
IL_0006: ldfld Verse.Pawn Verse.PawnRenderer::pawn
IL_000B: callvirt Verse.RaceProperties Verse.Pawn::get_RaceProps()
IL_0010: callvirt System.Boolean Verse.RaceProperties::get_Humanlike()
IL_0015: brtrue => Label0
IL_001A: ldarg.0
IL_001B: ldfld Verse.Pawn Verse.PawnRenderer::pawn
IL_0020: call static Verse.GraphicMeshSet
Verse.HumanlikeMeshPoolUtility::GetHumanlikeBodySetForPawn(Verse.Pawn pawn)
IL_0025: br => Label6
IL_002A: Label0
IL_002A: ldarg.0
IL_002B: ldfld Verse.Pawn Verse.PawnRenderer::pawn
IL_0030: ldfld RimWorld.Pawn_StoryTracker Verse.Pawn::story
IL_0035: ldfld RimWorld.BodyTypeDef RimWorld.Pawn_StoryTracker::bodyType
IL_003A: stloc.0
IL_003B: ldloc.0
IL_003C: ldsfld RimWorld.BodyTypeDef RimWorld.BodyTypeDefOf::Male
IL_0041: bne.un => Label1
IL_0046: ldsfld Verse.GraphicMeshSet Verse.MeshPool::humanlikeBodySet_Male
IL_004B: br => Label7
IL_0050: Label1
IL_0050: ldloc.0
IL_0051: ldsfld RimWorld.BodyTypeDef RimWorld.BodyTypeDefOf::Female
IL_0056: bne.un => Label2
IL_005B: ldsfld Verse.GraphicMeshSet Verse.MeshPool::humanlikeBodySet_Female
IL_0060: br => Label8
IL_0065: Label2
IL_0065: ldloc.0
IL_0066: ldsfld RimWorld.BodyTypeDef RimWorld.BodyTypeDefOf::Thin
IL_006B: bne.un => Label3
IL_0070: ldsfld Verse.GraphicMeshSet Verse.MeshPool::humanlikeBodySet_Thin
IL_0075: br => Label9
IL_007A: Label3
IL_007A: ldloc.0
IL_007B: ldsfld RimWorld.BodyTypeDef RimWorld.BodyTypeDefOf::Fat
IL_0080: bne.un => Label4
IL_0085: ldsfld Verse.GraphicMeshSet Verse.MeshPool::humanlikeBodySet_Fat
IL_008A: br => Label10
IL_008F: Label4
IL_008F: ldloc.0
IL_0090: ldsfld RimWorld.BodyTypeDef RimWorld.BodyTypeDefOf::Hulk
IL_0095: bne.un => Label5
IL_009A: ldsfld Verse.GraphicMeshSet Verse.MeshPool::humanlikeBodySet_Hulk
IL_009F: br => Label11
IL_00A4: Label5
IL_00A4: ldarg.0
IL_00A5: ldfld Verse.Pawn Verse.PawnRenderer::pawn
IL_00AA: call static Verse.GraphicMeshSet
Verse.HumanlikeMeshPoolUtility::GetHumanlikeBodySetForPawn(Verse.Pawn pawn)
IL_00AF: // end original
IL_00AF: Label6
IL_00AF: Label7
IL_00AF: Label8
IL_00AF: Label9
IL_00AF: Label10
IL_00AF: Label11
IL_00AF: stloc 1 (Verse.GraphicMeshSet)
IL_00B3: ldloca 1 (Verse.GraphicMeshSet)
IL_00B7: ldarg.0
IL_00B8: ldfld Verse.Pawn Verse.PawnRenderer::pawn
IL_00BD: call static System.Void
VanillaGenesExpanded.PawnRenderer_GetBodyOverlayMeshSet::Postfix(Verse.GraphicMeshS
et& __result, Verse.Pawn ___pawn)
IL_00C2: ldarg.0
IL_00C3: ldarg.0
IL_00C4: ldfld Verse.Pawn Verse.PawnRenderer::pawn
IL_00C9: ldloca 1 (Verse.GraphicMeshSet)
IL_00CD: call static System.Void
AlienRace.HarmonyPatches::GetBodyOverlayMeshSetPostfix(Verse.PawnRenderer
__instance, Verse.Pawn ___pawn, Verse.GraphicMeshSet& __result)
IL_00D2: ldloc 1 (Verse.GraphicMeshSet)
IL_00D6: ret
DONE

### Patch: static Verse.GraphicMeshSet


Verse.HumanlikeMeshPoolUtility::GetHumanlikeBodySetForPawn(Verse.Pawn pawn)
### Replacement: static Verse.GraphicMeshSet
Verse.HumanlikeMeshPoolUtility::Verse.HumanlikeMeshPoolUtility.GetHumanlikeBodySetF
orPawn_Patch0(Verse.Pawn pawn)
IL_0000: // start original
IL_0000: call static System.Boolean Verse.ModsConfig::get_BiotechActive()
IL_0005: brfalse => Label0
IL_000A: ldarg.0
IL_000B: ldfld Verse.Pawn_AgeTracker Verse.Pawn::ageTracker
IL_0010: callvirt RimWorld.LifeStageDef Verse.Pawn_AgeTracker::get_CurLifeStage()
IL_0015: ldflda System.Nullable`1<System.Single>
RimWorld.LifeStageDef::bodyWidth
IL_001A: call System.Boolean System.Nullable`1<System.Single>::get_HasValue()
IL_001F: brfalse => Label1
IL_0024: ldarg.0
IL_0025: ldfld Verse.Pawn_AgeTracker Verse.Pawn::ageTracker
IL_002A: callvirt RimWorld.LifeStageDef Verse.Pawn_AgeTracker::get_CurLifeStage()
IL_002F: ldflda System.Nullable`1<System.Single>
RimWorld.LifeStageDef::bodyWidth
IL_0034: call System.Single System.Nullable`1<System.Single>::get_Value()
IL_0039: box System.Single
IL_003E: ldarg.0
IL_003F: call static Verse.GraphicMeshSet
AlienRace.HarmonyPatches::GetHumanlikeBodySetForPawnHelper(System.Object
lifestageFactor, Verse.Pawn pawn)
IL_0044: br => Label2
IL_0049: Label0
IL_0049: Label1
IL_0049: ldc.r4 1.5
IL_004E: box System.Single
IL_0053: ldarg.0
IL_0054: call static Verse.GraphicMeshSet
AlienRace.HarmonyPatches::GetHumanlikeBodySetForPawnHelper(System.Object
lifestageFactor, Verse.Pawn pawn)
IL_0059: // end original
IL_0059: Label2
IL_0059: ret
DONE

### Patch: static Verse.GraphicMeshSet


Verse.HumanlikeMeshPoolUtility::GetHumanlikeHeadSetForPawn(Verse.Pawn pawn)
### Replacement: static Verse.GraphicMeshSet
Verse.HumanlikeMeshPoolUtility::Verse.HumanlikeMeshPoolUtility.GetHumanlikeHeadSetF
orPawn_Patch0(Verse.Pawn pawn)
IL_0000: // start original
IL_0000: call static System.Boolean Verse.ModsConfig::get_BiotechActive()
IL_0005: brfalse => Label0
IL_000A: ldarg.0
IL_000B: ldfld Verse.Pawn_AgeTracker Verse.Pawn::ageTracker
IL_0010: callvirt RimWorld.LifeStageDef Verse.Pawn_AgeTracker::get_CurLifeStage()
IL_0015: ldflda System.Nullable`1<System.Single>
RimWorld.LifeStageDef::bodyWidth
IL_001A: call System.Boolean System.Nullable`1<System.Single>::get_HasValue()
IL_001F: brfalse => Label1
IL_0024: ldarg.0
IL_0025: ldfld Verse.Pawn_AgeTracker Verse.Pawn::ageTracker
IL_002A: callvirt RimWorld.LifeStageDef Verse.Pawn_AgeTracker::get_CurLifeStage()
IL_002F: ldflda System.Nullable`1<System.Single>
RimWorld.LifeStageDef::bodyWidth
IL_0034: call System.Single System.Nullable`1<System.Single>::get_Value()
IL_0039: box System.Single
IL_003E: ldarg.0
IL_003F: call static Verse.GraphicMeshSet
AlienRace.HarmonyPatches::GetHumanlikeHeadSetForPawnHelper(System.Object
lifestageFactor, Verse.Pawn pawn)
IL_0044: br => Label2
IL_0049: Label0
IL_0049: Label1
IL_0049: ldc.r4 1.5
IL_004E: box System.Single
IL_0053: ldarg.0
IL_0054: call static Verse.GraphicMeshSet
AlienRace.HarmonyPatches::GetHumanlikeHeadSetForPawnHelper(System.Object
lifestageFactor, Verse.Pawn pawn)
IL_0059: // end original
IL_0059: Label2
IL_0059: ret
DONE

### Patch: static Verse.GraphicMeshSet


Verse.HumanlikeMeshPoolUtility::GetHumanlikeHairSetForPawn(Verse.Pawn pawn)
### Replacement: static Verse.GraphicMeshSet
Verse.HumanlikeMeshPoolUtility::Verse.HumanlikeMeshPoolUtility.GetHumanlikeHairSetF
orPawn_Patch0(Verse.Pawn pawn)
IL_0000: Local var 0: UnityEngine.Vector2
IL_0000: // start original
IL_0000: ldarg.0
IL_0001: ldfld RimWorld.Pawn_StoryTracker Verse.Pawn::story
IL_0006: ldfld Verse.HeadTypeDef RimWorld.Pawn_StoryTracker::headType
IL_000B: ldfld UnityEngine.Vector2 Verse.HeadTypeDef::hairMeshSize
IL_0010: stloc.0
IL_0011: call static System.Boolean Verse.ModsConfig::get_BiotechActive()
IL_0016: brfalse => Label0
IL_001B: ldarg.0
IL_001C: ldfld Verse.Pawn_AgeTracker Verse.Pawn::ageTracker
IL_0021: callvirt RimWorld.LifeStageDef Verse.Pawn_AgeTracker::get_CurLifeStage()
IL_0026: ldflda System.Nullable`1<System.Single>
RimWorld.LifeStageDef::headSizeFactor
IL_002B: call System.Boolean System.Nullable`1<System.Single>::get_HasValue()
IL_0030: brfalse => Label1
IL_0035: ldloc.0
IL_0036: ldarg.0
IL_0037: ldfld Verse.Pawn_AgeTracker Verse.Pawn::ageTracker
IL_003C: callvirt RimWorld.LifeStageDef Verse.Pawn_AgeTracker::get_CurLifeStage()
IL_0041: ldflda System.Nullable`1<System.Single>
RimWorld.LifeStageDef::headSizeFactor
IL_0046: call System.Single System.Nullable`1<System.Single>::get_Value()
IL_004B: call static UnityEngine.Vector2
UnityEngine.Vector2::op_Multiply(UnityEngine.Vector2 a, System.Single d)
IL_0050: stloc.0
IL_0051: Label0
IL_0051: Label1
IL_0051: ldloc.0
IL_0052: ldarg.0
IL_0053: call static UnityEngine.Vector2
AlienRace.HarmonyPatches::GetHumanlikeHairSetForPawnHelper(UnityEngine.Vector2
headFactor, Verse.Pawn pawn)
IL_0058: stloc.0
IL_0059: Label0
IL_0059: Label1
IL_0059: ldloc.0
IL_005A: ldfld System.Single UnityEngine.Vector2::x
IL_005F: ldloc.0
IL_0060: ldfld System.Single UnityEngine.Vector2::y
IL_0065: call static Verse.GraphicMeshSet
Verse.MeshPool::GetMeshSetForWidth(System.Single width, System.Single height)
IL_006A: // end original
IL_006A: ret
DONE

### Patch: static Verse.GraphicMeshSet


Verse.HumanlikeMeshPoolUtility::GetHumanlikeBeardSetForPawn(Verse.Pawn pawn)
### Replacement: static Verse.GraphicMeshSet
Verse.HumanlikeMeshPoolUtility::Verse.HumanlikeMeshPoolUtility.GetHumanlikeBeardSet
ForPawn_Patch0(Verse.Pawn pawn)
IL_0000: Local var 0: UnityEngine.Vector2
IL_0000: // start original
IL_0000: ldarg.0
IL_0001: ldfld RimWorld.Pawn_StoryTracker Verse.Pawn::story
IL_0006: ldfld Verse.HeadTypeDef RimWorld.Pawn_StoryTracker::headType
IL_000B: ldfld UnityEngine.Vector2 Verse.HeadTypeDef::beardMeshSize
IL_0010: stloc.0
IL_0011: call static System.Boolean Verse.ModsConfig::get_BiotechActive()
IL_0016: brfalse => Label0
IL_001B: ldarg.0
IL_001C: ldfld Verse.Pawn_AgeTracker Verse.Pawn::ageTracker
IL_0021: callvirt RimWorld.LifeStageDef Verse.Pawn_AgeTracker::get_CurLifeStage()
IL_0026: ldflda System.Nullable`1<System.Single>
RimWorld.LifeStageDef::headSizeFactor
IL_002B: call System.Boolean System.Nullable`1<System.Single>::get_HasValue()
IL_0030: brfalse => Label1
IL_0035: ldloc.0
IL_0036: ldarg.0
IL_0037: ldfld Verse.Pawn_AgeTracker Verse.Pawn::ageTracker
IL_003C: callvirt RimWorld.LifeStageDef Verse.Pawn_AgeTracker::get_CurLifeStage()
IL_0041: ldflda System.Nullable`1<System.Single>
RimWorld.LifeStageDef::headSizeFactor
IL_0046: call System.Single System.Nullable`1<System.Single>::get_Value()
IL_004B: call static UnityEngine.Vector2
UnityEngine.Vector2::op_Multiply(UnityEngine.Vector2 a, System.Single d)
IL_0050: stloc.0
IL_0051: Label0
IL_0051: Label1
IL_0051: ldloc.0
IL_0052: ldarg.0
IL_0053: call static UnityEngine.Vector2
AlienRace.HarmonyPatches::GetHumanlikeHairSetForPawnHelper(UnityEngine.Vector2
headFactor, Verse.Pawn pawn)
IL_0058: stloc.0
IL_0059: Label0
IL_0059: Label1
IL_0059: ldloc.0
IL_005A: ldfld System.Single UnityEngine.Vector2::x
IL_005F: ldloc.0
IL_0060: ldfld System.Single UnityEngine.Vector2::y
IL_0065: call static Verse.GraphicMeshSet
Verse.MeshPool::GetMeshSetForWidth(System.Single width, System.Single height)
IL_006A: // end original
IL_006A: ret
DONE

### Patch: Verse.GraphicMeshSet Verse.PawnRenderer::GetBodyOverlayMeshSet()


### Replacement: static Verse.GraphicMeshSet
Verse.PawnRenderer::Verse.PawnRenderer.GetBodyOverlayMeshSet_Patch2(Verse.PawnRende
rer this)
IL_0000: Local var 0: RimWorld.BodyTypeDef
IL_0000: Local var 1: Verse.GraphicMeshSet
IL_0000: ldnull
IL_0001: stloc 1 (Verse.GraphicMeshSet)
IL_0005: // start original
IL_0005: ldarg.0
IL_0006: ldfld Verse.Pawn Verse.PawnRenderer::pawn
IL_000B: callvirt Verse.RaceProperties Verse.Pawn::get_RaceProps()
IL_0010: callvirt System.Boolean Verse.RaceProperties::get_Humanlike()
IL_0015: brtrue => Label0
IL_001A: ldarg.0
IL_001B: ldfld Verse.Pawn Verse.PawnRenderer::pawn
IL_0020: call static Verse.GraphicMeshSet
Verse.HumanlikeMeshPoolUtility::GetHumanlikeBodySetForPawn(Verse.Pawn pawn)
IL_0025: br => Label6
IL_002A: Label0
IL_002A: ldarg.0
IL_002B: ldfld Verse.Pawn Verse.PawnRenderer::pawn
IL_0030: ldfld RimWorld.Pawn_StoryTracker Verse.Pawn::story
IL_0035: ldfld RimWorld.BodyTypeDef RimWorld.Pawn_StoryTracker::bodyType
IL_003A: stloc.0
IL_003B: ldloc.0
IL_003C: ldsfld RimWorld.BodyTypeDef RimWorld.BodyTypeDefOf::Male
IL_0041: bne.un => Label1
IL_0046: ldsfld Verse.GraphicMeshSet Verse.MeshPool::humanlikeBodySet_Male
IL_004B: br => Label7
IL_0050: Label1
IL_0050: ldloc.0
IL_0051: ldsfld RimWorld.BodyTypeDef RimWorld.BodyTypeDefOf::Female
IL_0056: bne.un => Label2
IL_005B: ldsfld Verse.GraphicMeshSet Verse.MeshPool::humanlikeBodySet_Female
IL_0060: br => Label8
IL_0065: Label2
IL_0065: ldloc.0
IL_0066: ldsfld RimWorld.BodyTypeDef RimWorld.BodyTypeDefOf::Thin
IL_006B: bne.un => Label3
IL_0070: ldsfld Verse.GraphicMeshSet Verse.MeshPool::humanlikeBodySet_Thin
IL_0075: br => Label9
IL_007A: Label3
IL_007A: ldloc.0
IL_007B: ldsfld RimWorld.BodyTypeDef RimWorld.BodyTypeDefOf::Fat
IL_0080: bne.un => Label4
IL_0085: ldsfld Verse.GraphicMeshSet Verse.MeshPool::humanlikeBodySet_Fat
IL_008A: br => Label10
IL_008F: Label4
IL_008F: ldloc.0
IL_0090: ldsfld RimWorld.BodyTypeDef RimWorld.BodyTypeDefOf::Hulk
IL_0095: bne.un => Label5
IL_009A: ldsfld Verse.GraphicMeshSet Verse.MeshPool::humanlikeBodySet_Hulk
IL_009F: br => Label11
IL_00A4: Label5
IL_00A4: ldarg.0
IL_00A5: ldfld Verse.Pawn Verse.PawnRenderer::pawn
IL_00AA: call static Verse.GraphicMeshSet
Verse.HumanlikeMeshPoolUtility::GetHumanlikeBodySetForPawn(Verse.Pawn pawn)
IL_00AF: // end original
IL_00AF: Label6
IL_00AF: Label7
IL_00AF: Label8
IL_00AF: Label9
IL_00AF: Label10
IL_00AF: Label11
IL_00AF: stloc 1 (Verse.GraphicMeshSet)
IL_00B3: ldloca 1 (Verse.GraphicMeshSet)
IL_00B7: ldarg.0
IL_00B8: ldfld Verse.Pawn Verse.PawnRenderer::pawn
IL_00BD: call static System.Void
VanillaGenesExpanded.PawnRenderer_GetBodyOverlayMeshSet::Postfix(Verse.GraphicMeshS
et& __result, Verse.Pawn ___pawn)
IL_00C2: ldarg.0
IL_00C3: ldarg.0
IL_00C4: ldfld Verse.Pawn Verse.PawnRenderer::pawn
IL_00C9: ldloca 1 (Verse.GraphicMeshSet)
IL_00CD: call static System.Void
AlienRace.HarmonyPatches::GetBodyOverlayMeshSetPostfix(Verse.PawnRenderer
__instance, Verse.Pawn ___pawn, Verse.GraphicMeshSet& __result)
IL_00D2: ldloc 1 (Verse.GraphicMeshSet)
IL_00D6: ret
DONE

### Patch: static Verse.GraphicMeshSet


Verse.HumanlikeMeshPoolUtility::GetHumanlikeBodySetForPawn(Verse.Pawn pawn)
### Replacement: static Verse.GraphicMeshSet
Verse.HumanlikeMeshPoolUtility::Verse.HumanlikeMeshPoolUtility.GetHumanlikeBodySetF
orPawn_Patch0(Verse.Pawn pawn)
IL_0000: // start original
IL_0000: call static System.Boolean Verse.ModsConfig::get_BiotechActive()
IL_0005: brfalse => Label0
IL_000A: ldarg.0
IL_000B: ldfld Verse.Pawn_AgeTracker Verse.Pawn::ageTracker
IL_0010: callvirt RimWorld.LifeStageDef Verse.Pawn_AgeTracker::get_CurLifeStage()
IL_0015: ldflda System.Nullable`1<System.Single>
RimWorld.LifeStageDef::bodyWidth
IL_001A: call System.Boolean System.Nullable`1<System.Single>::get_HasValue()
IL_001F: brfalse => Label1
IL_0024: ldarg.0
IL_0025: ldfld Verse.Pawn_AgeTracker Verse.Pawn::ageTracker
IL_002A: callvirt RimWorld.LifeStageDef Verse.Pawn_AgeTracker::get_CurLifeStage()
IL_002F: ldflda System.Nullable`1<System.Single>
RimWorld.LifeStageDef::bodyWidth
IL_0034: call System.Single System.Nullable`1<System.Single>::get_Value()
IL_0039: box System.Single
IL_003E: ldarg.0
IL_003F: call static Verse.GraphicMeshSet
AlienRace.HarmonyPatches::GetHumanlikeBodySetForPawnHelper(System.Object
lifestageFactor, Verse.Pawn pawn)
IL_0044: br => Label2
IL_0049: Label0
IL_0049: Label1
IL_0049: ldc.r4 1.5
IL_004E: box System.Single
IL_0053: ldarg.0
IL_0054: call static Verse.GraphicMeshSet
AlienRace.HarmonyPatches::GetHumanlikeBodySetForPawnHelper(System.Object
lifestageFactor, Verse.Pawn pawn)
IL_0059: // end original
IL_0059: Label2
IL_0059: ret
DONE

### Patch: static Verse.GraphicMeshSet


Verse.HumanlikeMeshPoolUtility::GetHumanlikeHeadSetForPawn(Verse.Pawn pawn)
### Replacement: static Verse.GraphicMeshSet
Verse.HumanlikeMeshPoolUtility::Verse.HumanlikeMeshPoolUtility.GetHumanlikeHeadSetF
orPawn_Patch0(Verse.Pawn pawn)
IL_0000: // start original
IL_0000: call static System.Boolean Verse.ModsConfig::get_BiotechActive()
IL_0005: brfalse => Label0
IL_000A: ldarg.0
IL_000B: ldfld Verse.Pawn_AgeTracker Verse.Pawn::ageTracker
IL_0010: callvirt RimWorld.LifeStageDef Verse.Pawn_AgeTracker::get_CurLifeStage()
IL_0015: ldflda System.Nullable`1<System.Single>
RimWorld.LifeStageDef::bodyWidth
IL_001A: call System.Boolean System.Nullable`1<System.Single>::get_HasValue()
IL_001F: brfalse => Label1
IL_0024: ldarg.0
IL_0025: ldfld Verse.Pawn_AgeTracker Verse.Pawn::ageTracker
IL_002A: callvirt RimWorld.LifeStageDef Verse.Pawn_AgeTracker::get_CurLifeStage()
IL_002F: ldflda System.Nullable`1<System.Single>
RimWorld.LifeStageDef::bodyWidth
IL_0034: call System.Single System.Nullable`1<System.Single>::get_Value()
IL_0039: box System.Single
IL_003E: ldarg.0
IL_003F: call static Verse.GraphicMeshSet
AlienRace.HarmonyPatches::GetHumanlikeHeadSetForPawnHelper(System.Object
lifestageFactor, Verse.Pawn pawn)
IL_0044: br => Label2
IL_0049: Label0
IL_0049: Label1
IL_0049: ldc.r4 1.5
IL_004E: box System.Single
IL_0053: ldarg.0
IL_0054: call static Verse.GraphicMeshSet
AlienRace.HarmonyPatches::GetHumanlikeHeadSetForPawnHelper(System.Object
lifestageFactor, Verse.Pawn pawn)
IL_0059: // end original
IL_0059: Label2
IL_0059: ret
DONE

### Patch: static Verse.GraphicMeshSet


Verse.HumanlikeMeshPoolUtility::GetHumanlikeHairSetForPawn(Verse.Pawn pawn)
### Replacement: static Verse.GraphicMeshSet
Verse.HumanlikeMeshPoolUtility::Verse.HumanlikeMeshPoolUtility.GetHumanlikeHairSetF
orPawn_Patch0(Verse.Pawn pawn)
IL_0000: Local var 0: UnityEngine.Vector2
IL_0000: // start original
IL_0000: ldarg.0
IL_0001: ldfld RimWorld.Pawn_StoryTracker Verse.Pawn::story
IL_0006: ldfld Verse.HeadTypeDef RimWorld.Pawn_StoryTracker::headType
IL_000B: ldfld UnityEngine.Vector2 Verse.HeadTypeDef::hairMeshSize
IL_0010: stloc.0
IL_0011: call static System.Boolean Verse.ModsConfig::get_BiotechActive()
IL_0016: brfalse => Label0
IL_001B: ldarg.0
IL_001C: ldfld Verse.Pawn_AgeTracker Verse.Pawn::ageTracker
IL_0021: callvirt RimWorld.LifeStageDef Verse.Pawn_AgeTracker::get_CurLifeStage()
IL_0026: ldflda System.Nullable`1<System.Single>
RimWorld.LifeStageDef::headSizeFactor
IL_002B: call System.Boolean System.Nullable`1<System.Single>::get_HasValue()
IL_0030: brfalse => Label1
IL_0035: ldloc.0
IL_0036: ldarg.0
IL_0037: ldfld Verse.Pawn_AgeTracker Verse.Pawn::ageTracker
IL_003C: callvirt RimWorld.LifeStageDef Verse.Pawn_AgeTracker::get_CurLifeStage()
IL_0041: ldflda System.Nullable`1<System.Single>
RimWorld.LifeStageDef::headSizeFactor
IL_0046: call System.Single System.Nullable`1<System.Single>::get_Value()
IL_004B: call static UnityEngine.Vector2
UnityEngine.Vector2::op_Multiply(UnityEngine.Vector2 a, System.Single d)
IL_0050: stloc.0
IL_0051: Label0
IL_0051: Label1
IL_0051: ldloc.0
IL_0052: ldarg.0
IL_0053: call static UnityEngine.Vector2
AlienRace.HarmonyPatches::GetHumanlikeHairSetForPawnHelper(UnityEngine.Vector2
headFactor, Verse.Pawn pawn)
IL_0058: stloc.0
IL_0059: Label0
IL_0059: Label1
IL_0059: ldloc.0
IL_005A: ldfld System.Single UnityEngine.Vector2::x
IL_005F: ldloc.0
IL_0060: ldfld System.Single UnityEngine.Vector2::y
IL_0065: call static Verse.GraphicMeshSet
Verse.MeshPool::GetMeshSetForWidth(System.Single width, System.Single height)
IL_006A: // end original
IL_006A: ret
DONE

### Patch: static Verse.GraphicMeshSet


Verse.HumanlikeMeshPoolUtility::GetHumanlikeBeardSetForPawn(Verse.Pawn pawn)
### Replacement: static Verse.GraphicMeshSet
Verse.HumanlikeMeshPoolUtility::Verse.HumanlikeMeshPoolUtility.GetHumanlikeBeardSet
ForPawn_Patch0(Verse.Pawn pawn)
IL_0000: Local var 0: UnityEngine.Vector2
IL_0000: // start original
IL_0000: ldarg.0
IL_0001: ldfld RimWorld.Pawn_StoryTracker Verse.Pawn::story
IL_0006: ldfld Verse.HeadTypeDef RimWorld.Pawn_StoryTracker::headType
IL_000B: ldfld UnityEngine.Vector2 Verse.HeadTypeDef::beardMeshSize
IL_0010: stloc.0
IL_0011: call static System.Boolean Verse.ModsConfig::get_BiotechActive()
IL_0016: brfalse => Label0
IL_001B: ldarg.0
IL_001C: ldfld Verse.Pawn_AgeTracker Verse.Pawn::ageTracker
IL_0021: callvirt RimWorld.LifeStageDef Verse.Pawn_AgeTracker::get_CurLifeStage()
IL_0026: ldflda System.Nullable`1<System.Single>
RimWorld.LifeStageDef::headSizeFactor
IL_002B: call System.Boolean System.Nullable`1<System.Single>::get_HasValue()
IL_0030: brfalse => Label1
IL_0035: ldloc.0
IL_0036: ldarg.0
IL_0037: ldfld Verse.Pawn_AgeTracker Verse.Pawn::ageTracker
IL_003C: callvirt RimWorld.LifeStageDef Verse.Pawn_AgeTracker::get_CurLifeStage()
IL_0041: ldflda System.Nullable`1<System.Single>
RimWorld.LifeStageDef::headSizeFactor
IL_0046: call System.Single System.Nullable`1<System.Single>::get_Value()
IL_004B: call static UnityEngine.Vector2
UnityEngine.Vector2::op_Multiply(UnityEngine.Vector2 a, System.Single d)
IL_0050: stloc.0
IL_0051: Label0
IL_0051: Label1
IL_0051: ldloc.0
IL_0052: ldarg.0
IL_0053: call static UnityEngine.Vector2
AlienRace.HarmonyPatches::GetHumanlikeHairSetForPawnHelper(UnityEngine.Vector2
headFactor, Verse.Pawn pawn)
IL_0058: stloc.0
IL_0059: Label0
IL_0059: Label1
IL_0059: ldloc.0
IL_005A: ldfld System.Single UnityEngine.Vector2::x
IL_005F: ldloc.0
IL_0060: ldfld System.Single UnityEngine.Vector2::y
IL_0065: call static Verse.GraphicMeshSet
Verse.MeshPool::GetMeshSetForWidth(System.Single width, System.Single height)
IL_006A: // end original
IL_006A: ret
DONE

### Patch: Verse.GraphicMeshSet Verse.PawnRenderer::GetBodyOverlayMeshSet()


### Replacement: static Verse.GraphicMeshSet
Verse.PawnRenderer::Verse.PawnRenderer.GetBodyOverlayMeshSet_Patch2(Verse.PawnRende
rer this)
IL_0000: Local var 0: RimWorld.BodyTypeDef
IL_0000: Local var 1: Verse.GraphicMeshSet
IL_0000: ldnull
IL_0001: stloc 1 (Verse.GraphicMeshSet)
IL_0005: // start original
IL_0005: ldarg.0
IL_0006: ldfld Verse.Pawn Verse.PawnRenderer::pawn
IL_000B: callvirt Verse.RaceProperties Verse.Pawn::get_RaceProps()
IL_0010: callvirt System.Boolean Verse.RaceProperties::get_Humanlike()
IL_0015: brtrue => Label0
IL_001A: ldarg.0
IL_001B: ldfld Verse.Pawn Verse.PawnRenderer::pawn
IL_0020: call static Verse.GraphicMeshSet
Verse.HumanlikeMeshPoolUtility::GetHumanlikeBodySetForPawn(Verse.Pawn pawn)
IL_0025: br => Label6
IL_002A: Label0
IL_002A: ldarg.0
IL_002B: ldfld Verse.Pawn Verse.PawnRenderer::pawn
IL_0030: ldfld RimWorld.Pawn_StoryTracker Verse.Pawn::story
IL_0035: ldfld RimWorld.BodyTypeDef RimWorld.Pawn_StoryTracker::bodyType
IL_003A: stloc.0
IL_003B: ldloc.0
IL_003C: ldsfld RimWorld.BodyTypeDef RimWorld.BodyTypeDefOf::Male
IL_0041: bne.un => Label1
IL_0046: ldsfld Verse.GraphicMeshSet Verse.MeshPool::humanlikeBodySet_Male
IL_004B: br => Label7
IL_0050: Label1
IL_0050: ldloc.0
IL_0051: ldsfld RimWorld.BodyTypeDef RimWorld.BodyTypeDefOf::Female
IL_0056: bne.un => Label2
IL_005B: ldsfld Verse.GraphicMeshSet Verse.MeshPool::humanlikeBodySet_Female
IL_0060: br => Label8
IL_0065: Label2
IL_0065: ldloc.0
IL_0066: ldsfld RimWorld.BodyTypeDef RimWorld.BodyTypeDefOf::Thin
IL_006B: bne.un => Label3
IL_0070: ldsfld Verse.GraphicMeshSet Verse.MeshPool::humanlikeBodySet_Thin
IL_0075: br => Label9
IL_007A: Label3
IL_007A: ldloc.0
IL_007B: ldsfld RimWorld.BodyTypeDef RimWorld.BodyTypeDefOf::Fat
IL_0080: bne.un => Label4
IL_0085: ldsfld Verse.GraphicMeshSet Verse.MeshPool::humanlikeBodySet_Fat
IL_008A: br => Label10
IL_008F: Label4
IL_008F: ldloc.0
IL_0090: ldsfld RimWorld.BodyTypeDef RimWorld.BodyTypeDefOf::Hulk
IL_0095: bne.un => Label5
IL_009A: ldsfld Verse.GraphicMeshSet Verse.MeshPool::humanlikeBodySet_Hulk
IL_009F: br => Label11
IL_00A4: Label5
IL_00A4: ldarg.0
IL_00A5: ldfld Verse.Pawn Verse.PawnRenderer::pawn
IL_00AA: call static Verse.GraphicMeshSet
Verse.HumanlikeMeshPoolUtility::GetHumanlikeBodySetForPawn(Verse.Pawn pawn)
IL_00AF: // end original
IL_00AF: Label6
IL_00AF: Label7
IL_00AF: Label8
IL_00AF: Label9
IL_00AF: Label10
IL_00AF: Label11
IL_00AF: stloc 1 (Verse.GraphicMeshSet)
IL_00B3: ldloca 1 (Verse.GraphicMeshSet)
IL_00B7: ldarg.0
IL_00B8: ldfld Verse.Pawn Verse.PawnRenderer::pawn
IL_00BD: call static System.Void
VanillaGenesExpanded.PawnRenderer_GetBodyOverlayMeshSet::Postfix(Verse.GraphicMeshS
et& __result, Verse.Pawn ___pawn)
IL_00C2: ldarg.0
IL_00C3: ldarg.0
IL_00C4: ldfld Verse.Pawn Verse.PawnRenderer::pawn
IL_00C9: ldloca 1 (Verse.GraphicMeshSet)
IL_00CD: call static System.Void
AlienRace.HarmonyPatches::GetBodyOverlayMeshSetPostfix(Verse.PawnRenderer
__instance, Verse.Pawn ___pawn, Verse.GraphicMeshSet& __result)
IL_00D2: ldloc 1 (Verse.GraphicMeshSet)
IL_00D6: ret
DONE

### Patch: static Verse.GraphicMeshSet


Verse.HumanlikeMeshPoolUtility::GetHumanlikeBodySetForPawn(Verse.Pawn pawn)
### Replacement: static Verse.GraphicMeshSet
Verse.HumanlikeMeshPoolUtility::Verse.HumanlikeMeshPoolUtility.GetHumanlikeBodySetF
orPawn_Patch0(Verse.Pawn pawn)
IL_0000: // start original
IL_0000: call static System.Boolean Verse.ModsConfig::get_BiotechActive()
IL_0005: brfalse => Label0
IL_000A: ldarg.0
IL_000B: ldfld Verse.Pawn_AgeTracker Verse.Pawn::ageTracker
IL_0010: callvirt RimWorld.LifeStageDef Verse.Pawn_AgeTracker::get_CurLifeStage()
IL_0015: ldflda System.Nullable`1<System.Single>
RimWorld.LifeStageDef::bodyWidth
IL_001A: call System.Boolean System.Nullable`1<System.Single>::get_HasValue()
IL_001F: brfalse => Label1
IL_0024: ldarg.0
IL_0025: ldfld Verse.Pawn_AgeTracker Verse.Pawn::ageTracker
IL_002A: callvirt RimWorld.LifeStageDef Verse.Pawn_AgeTracker::get_CurLifeStage()
IL_002F: ldflda System.Nullable`1<System.Single>
RimWorld.LifeStageDef::bodyWidth
IL_0034: call System.Single System.Nullable`1<System.Single>::get_Value()
IL_0039: box System.Single
IL_003E: ldarg.0
IL_003F: call static Verse.GraphicMeshSet
AlienRace.HarmonyPatches::GetHumanlikeBodySetForPawnHelper(System.Object
lifestageFactor, Verse.Pawn pawn)
IL_0044: br => Label2
IL_0049: Label0
IL_0049: Label1
IL_0049: ldc.r4 1.5
IL_004E: box System.Single
IL_0053: ldarg.0
IL_0054: call static Verse.GraphicMeshSet
AlienRace.HarmonyPatches::GetHumanlikeBodySetForPawnHelper(System.Object
lifestageFactor, Verse.Pawn pawn)
IL_0059: // end original
IL_0059: Label2
IL_0059: ret
DONE

### Patch: static Verse.GraphicMeshSet


Verse.HumanlikeMeshPoolUtility::GetHumanlikeHeadSetForPawn(Verse.Pawn pawn)
### Replacement: static Verse.GraphicMeshSet
Verse.HumanlikeMeshPoolUtility::Verse.HumanlikeMeshPoolUtility.GetHumanlikeHeadSetF
orPawn_Patch0(Verse.Pawn pawn)
IL_0000: // start original
IL_0000: call static System.Boolean Verse.ModsConfig::get_BiotechActive()
IL_0005: brfalse => Label0
IL_000A: ldarg.0
IL_000B: ldfld Verse.Pawn_AgeTracker Verse.Pawn::ageTracker
IL_0010: callvirt RimWorld.LifeStageDef Verse.Pawn_AgeTracker::get_CurLifeStage()
IL_0015: ldflda System.Nullable`1<System.Single>
RimWorld.LifeStageDef::bodyWidth
IL_001A: call System.Boolean System.Nullable`1<System.Single>::get_HasValue()
IL_001F: brfalse => Label1
IL_0024: ldarg.0
IL_0025: ldfld Verse.Pawn_AgeTracker Verse.Pawn::ageTracker
IL_002A: callvirt RimWorld.LifeStageDef Verse.Pawn_AgeTracker::get_CurLifeStage()
IL_002F: ldflda System.Nullable`1<System.Single>
RimWorld.LifeStageDef::bodyWidth
IL_0034: call System.Single System.Nullable`1<System.Single>::get_Value()
IL_0039: box System.Single
IL_003E: ldarg.0
IL_003F: call static Verse.GraphicMeshSet
AlienRace.HarmonyPatches::GetHumanlikeHeadSetForPawnHelper(System.Object
lifestageFactor, Verse.Pawn pawn)
IL_0044: br => Label2
IL_0049: Label0
IL_0049: Label1
IL_0049: ldc.r4 1.5
IL_004E: box System.Single
IL_0053: ldarg.0
IL_0054: call static Verse.GraphicMeshSet
AlienRace.HarmonyPatches::GetHumanlikeHeadSetForPawnHelper(System.Object
lifestageFactor, Verse.Pawn pawn)
IL_0059: // end original
IL_0059: Label2
IL_0059: ret
DONE

### Patch: static Verse.GraphicMeshSet


Verse.HumanlikeMeshPoolUtility::GetHumanlikeHairSetForPawn(Verse.Pawn pawn)
### Replacement: static Verse.GraphicMeshSet
Verse.HumanlikeMeshPoolUtility::Verse.HumanlikeMeshPoolUtility.GetHumanlikeHairSetF
orPawn_Patch0(Verse.Pawn pawn)
IL_0000: Local var 0: UnityEngine.Vector2
IL_0000: // start original
IL_0000: ldarg.0
IL_0001: ldfld RimWorld.Pawn_StoryTracker Verse.Pawn::story
IL_0006: ldfld Verse.HeadTypeDef RimWorld.Pawn_StoryTracker::headType
IL_000B: ldfld UnityEngine.Vector2 Verse.HeadTypeDef::hairMeshSize
IL_0010: stloc.0
IL_0011: call static System.Boolean Verse.ModsConfig::get_BiotechActive()
IL_0016: brfalse => Label0
IL_001B: ldarg.0
IL_001C: ldfld Verse.Pawn_AgeTracker Verse.Pawn::ageTracker
IL_0021: callvirt RimWorld.LifeStageDef Verse.Pawn_AgeTracker::get_CurLifeStage()
IL_0026: ldflda System.Nullable`1<System.Single>
RimWorld.LifeStageDef::headSizeFactor
IL_002B: call System.Boolean System.Nullable`1<System.Single>::get_HasValue()
IL_0030: brfalse => Label1
IL_0035: ldloc.0
IL_0036: ldarg.0
IL_0037: ldfld Verse.Pawn_AgeTracker Verse.Pawn::ageTracker
IL_003C: callvirt RimWorld.LifeStageDef Verse.Pawn_AgeTracker::get_CurLifeStage()
IL_0041: ldflda System.Nullable`1<System.Single>
RimWorld.LifeStageDef::headSizeFactor
IL_0046: call System.Single System.Nullable`1<System.Single>::get_Value()
IL_004B: call static UnityEngine.Vector2
UnityEngine.Vector2::op_Multiply(UnityEngine.Vector2 a, System.Single d)
IL_0050: stloc.0
IL_0051: Label0
IL_0051: Label1
IL_0051: ldloc.0
IL_0052: ldarg.0
IL_0053: call static UnityEngine.Vector2
AlienRace.HarmonyPatches::GetHumanlikeHairSetForPawnHelper(UnityEngine.Vector2
headFactor, Verse.Pawn pawn)
IL_0058: stloc.0
IL_0059: Label0
IL_0059: Label1
IL_0059: ldloc.0
IL_005A: ldfld System.Single UnityEngine.Vector2::x
IL_005F: ldloc.0
IL_0060: ldfld System.Single UnityEngine.Vector2::y
IL_0065: call static Verse.GraphicMeshSet
Verse.MeshPool::GetMeshSetForWidth(System.Single width, System.Single height)
IL_006A: // end original
IL_006A: ret
DONE

### Patch: static Verse.GraphicMeshSet


Verse.HumanlikeMeshPoolUtility::GetHumanlikeBeardSetForPawn(Verse.Pawn pawn)
### Replacement: static Verse.GraphicMeshSet
Verse.HumanlikeMeshPoolUtility::Verse.HumanlikeMeshPoolUtility.GetHumanlikeBeardSet
ForPawn_Patch0(Verse.Pawn pawn)
IL_0000: Local var 0: UnityEngine.Vector2
IL_0000: // start original
IL_0000: ldarg.0
IL_0001: ldfld RimWorld.Pawn_StoryTracker Verse.Pawn::story
IL_0006: ldfld Verse.HeadTypeDef RimWorld.Pawn_StoryTracker::headType
IL_000B: ldfld UnityEngine.Vector2 Verse.HeadTypeDef::beardMeshSize
IL_0010: stloc.0
IL_0011: call static System.Boolean Verse.ModsConfig::get_BiotechActive()
IL_0016: brfalse => Label0
IL_001B: ldarg.0
IL_001C: ldfld Verse.Pawn_AgeTracker Verse.Pawn::ageTracker
IL_0021: callvirt RimWorld.LifeStageDef Verse.Pawn_AgeTracker::get_CurLifeStage()
IL_0026: ldflda System.Nullable`1<System.Single>
RimWorld.LifeStageDef::headSizeFactor
IL_002B: call System.Boolean System.Nullable`1<System.Single>::get_HasValue()
IL_0030: brfalse => Label1
IL_0035: ldloc.0
IL_0036: ldarg.0
IL_0037: ldfld Verse.Pawn_AgeTracker Verse.Pawn::ageTracker
IL_003C: callvirt RimWorld.LifeStageDef Verse.Pawn_AgeTracker::get_CurLifeStage()
IL_0041: ldflda System.Nullable`1<System.Single>
RimWorld.LifeStageDef::headSizeFactor
IL_0046: call System.Single System.Nullable`1<System.Single>::get_Value()
IL_004B: call static UnityEngine.Vector2
UnityEngine.Vector2::op_Multiply(UnityEngine.Vector2 a, System.Single d)
IL_0050: stloc.0
IL_0051: Label0
IL_0051: Label1
IL_0051: ldloc.0
IL_0052: ldarg.0
IL_0053: call static UnityEngine.Vector2
AlienRace.HarmonyPatches::GetHumanlikeHairSetForPawnHelper(UnityEngine.Vector2
headFactor, Verse.Pawn pawn)
IL_0058: stloc.0
IL_0059: Label0
IL_0059: Label1
IL_0059: ldloc.0
IL_005A: ldfld System.Single UnityEngine.Vector2::x
IL_005F: ldloc.0
IL_0060: ldfld System.Single UnityEngine.Vector2::y
IL_0065: call static Verse.GraphicMeshSet
Verse.MeshPool::GetMeshSetForWidth(System.Single width, System.Single height)
IL_006A: // end original
IL_006A: ret
DONE

### Patch: Verse.GraphicMeshSet Verse.PawnRenderer::GetBodyOverlayMeshSet()


### Replacement: static Verse.GraphicMeshSet
Verse.PawnRenderer::Verse.PawnRenderer.GetBodyOverlayMeshSet_Patch2(Verse.PawnRende
rer this)
IL_0000: Local var 0: RimWorld.BodyTypeDef
IL_0000: Local var 1: Verse.GraphicMeshSet
IL_0000: ldnull
IL_0001: stloc 1 (Verse.GraphicMeshSet)
IL_0005: // start original
IL_0005: ldarg.0
IL_0006: ldfld Verse.Pawn Verse.PawnRenderer::pawn
IL_000B: callvirt Verse.RaceProperties Verse.Pawn::get_RaceProps()
IL_0010: callvirt System.Boolean Verse.RaceProperties::get_Humanlike()
IL_0015: brtrue => Label0
IL_001A: ldarg.0
IL_001B: ldfld Verse.Pawn Verse.PawnRenderer::pawn
IL_0020: call static Verse.GraphicMeshSet
Verse.HumanlikeMeshPoolUtility::GetHumanlikeBodySetForPawn(Verse.Pawn pawn)
IL_0025: br => Label6
IL_002A: Label0
IL_002A: ldarg.0
IL_002B: ldfld Verse.Pawn Verse.PawnRenderer::pawn
IL_0030: ldfld RimWorld.Pawn_StoryTracker Verse.Pawn::story
IL_0035: ldfld RimWorld.BodyTypeDef RimWorld.Pawn_StoryTracker::bodyType
IL_003A: stloc.0
IL_003B: ldloc.0
IL_003C: ldsfld RimWorld.BodyTypeDef RimWorld.BodyTypeDefOf::Male
IL_0041: bne.un => Label1
IL_0046: ldsfld Verse.GraphicMeshSet Verse.MeshPool::humanlikeBodySet_Male
IL_004B: br => Label7
IL_0050: Label1
IL_0050: ldloc.0
IL_0051: ldsfld RimWorld.BodyTypeDef RimWorld.BodyTypeDefOf::Female
IL_0056: bne.un => Label2
IL_005B: ldsfld Verse.GraphicMeshSet Verse.MeshPool::humanlikeBodySet_Female
IL_0060: br => Label8
IL_0065: Label2
IL_0065: ldloc.0
IL_0066: ldsfld RimWorld.BodyTypeDef RimWorld.BodyTypeDefOf::Thin
IL_006B: bne.un => Label3
IL_0070: ldsfld Verse.GraphicMeshSet Verse.MeshPool::humanlikeBodySet_Thin
IL_0075: br => Label9
IL_007A: Label3
IL_007A: ldloc.0
IL_007B: ldsfld RimWorld.BodyTypeDef RimWorld.BodyTypeDefOf::Fat
IL_0080: bne.un => Label4
IL_0085: ldsfld Verse.GraphicMeshSet Verse.MeshPool::humanlikeBodySet_Fat
IL_008A: br => Label10
IL_008F: Label4
IL_008F: ldloc.0
IL_0090: ldsfld RimWorld.BodyTypeDef RimWorld.BodyTypeDefOf::Hulk
IL_0095: bne.un => Label5
IL_009A: ldsfld Verse.GraphicMeshSet Verse.MeshPool::humanlikeBodySet_Hulk
IL_009F: br => Label11
IL_00A4: Label5
IL_00A4: ldarg.0
IL_00A5: ldfld Verse.Pawn Verse.PawnRenderer::pawn
IL_00AA: call static Verse.GraphicMeshSet
Verse.HumanlikeMeshPoolUtility::GetHumanlikeBodySetForPawn(Verse.Pawn pawn)
IL_00AF: // end original
IL_00AF: Label6
IL_00AF: Label7
IL_00AF: Label8
IL_00AF: Label9
IL_00AF: Label10
IL_00AF: Label11
IL_00AF: stloc 1 (Verse.GraphicMeshSet)
IL_00B3: ldloca 1 (Verse.GraphicMeshSet)
IL_00B7: ldarg.0
IL_00B8: ldfld Verse.Pawn Verse.PawnRenderer::pawn
IL_00BD: call static System.Void
VanillaGenesExpanded.PawnRenderer_GetBodyOverlayMeshSet::Postfix(Verse.GraphicMeshS
et& __result, Verse.Pawn ___pawn)
IL_00C2: ldarg.0
IL_00C3: ldarg.0
IL_00C4: ldfld Verse.Pawn Verse.PawnRenderer::pawn
IL_00C9: ldloca 1 (Verse.GraphicMeshSet)
IL_00CD: call static System.Void
AlienRace.HarmonyPatches::GetBodyOverlayMeshSetPostfix(Verse.PawnRenderer
__instance, Verse.Pawn ___pawn, Verse.GraphicMeshSet& __result)
IL_00D2: ldloc 1 (Verse.GraphicMeshSet)
IL_00D6: ret
DONE

### Patch: static Verse.GraphicMeshSet


Verse.HumanlikeMeshPoolUtility::GetHumanlikeBodySetForPawn(Verse.Pawn pawn)
### Replacement: static Verse.GraphicMeshSet
Verse.HumanlikeMeshPoolUtility::Verse.HumanlikeMeshPoolUtility.GetHumanlikeBodySetF
orPawn_Patch0(Verse.Pawn pawn)
IL_0000: // start original
IL_0000: call static System.Boolean Verse.ModsConfig::get_BiotechActive()
IL_0005: brfalse => Label0
IL_000A: ldarg.0
IL_000B: ldfld Verse.Pawn_AgeTracker Verse.Pawn::ageTracker
IL_0010: callvirt RimWorld.LifeStageDef Verse.Pawn_AgeTracker::get_CurLifeStage()
IL_0015: ldflda System.Nullable`1<System.Single>
RimWorld.LifeStageDef::bodyWidth
IL_001A: call System.Boolean System.Nullable`1<System.Single>::get_HasValue()
IL_001F: brfalse => Label1
IL_0024: ldarg.0
IL_0025: ldfld Verse.Pawn_AgeTracker Verse.Pawn::ageTracker
IL_002A: callvirt RimWorld.LifeStageDef Verse.Pawn_AgeTracker::get_CurLifeStage()
IL_002F: ldflda System.Nullable`1<System.Single>
RimWorld.LifeStageDef::bodyWidth
IL_0034: call System.Single System.Nullable`1<System.Single>::get_Value()
IL_0039: box System.Single
IL_003E: ldarg.0
IL_003F: call static Verse.GraphicMeshSet
AlienRace.HarmonyPatches::GetHumanlikeBodySetForPawnHelper(System.Object
lifestageFactor, Verse.Pawn pawn)
IL_0044: br => Label2
IL_0049: Label0
IL_0049: Label1
IL_0049: ldc.r4 1.5
IL_004E: box System.Single
IL_0053: ldarg.0
IL_0054: call static Verse.GraphicMeshSet
AlienRace.HarmonyPatches::GetHumanlikeBodySetForPawnHelper(System.Object
lifestageFactor, Verse.Pawn pawn)
IL_0059: // end original
IL_0059: Label2
IL_0059: ret
DONE

### Patch: static Verse.GraphicMeshSet


Verse.HumanlikeMeshPoolUtility::GetHumanlikeHeadSetForPawn(Verse.Pawn pawn)
### Replacement: static Verse.GraphicMeshSet
Verse.HumanlikeMeshPoolUtility::Verse.HumanlikeMeshPoolUtility.GetHumanlikeHeadSetF
orPawn_Patch0(Verse.Pawn pawn)
IL_0000: // start original
IL_0000: call static System.Boolean Verse.ModsConfig::get_BiotechActive()
IL_0005: brfalse => Label0
IL_000A: ldarg.0
IL_000B: ldfld Verse.Pawn_AgeTracker Verse.Pawn::ageTracker
IL_0010: callvirt RimWorld.LifeStageDef Verse.Pawn_AgeTracker::get_CurLifeStage()
IL_0015: ldflda System.Nullable`1<System.Single>
RimWorld.LifeStageDef::bodyWidth
IL_001A: call System.Boolean System.Nullable`1<System.Single>::get_HasValue()
IL_001F: brfalse => Label1
IL_0024: ldarg.0
IL_0025: ldfld Verse.Pawn_AgeTracker Verse.Pawn::ageTracker
IL_002A: callvirt RimWorld.LifeStageDef Verse.Pawn_AgeTracker::get_CurLifeStage()
IL_002F: ldflda System.Nullable`1<System.Single>
RimWorld.LifeStageDef::bodyWidth
IL_0034: call System.Single System.Nullable`1<System.Single>::get_Value()
IL_0039: box System.Single
IL_003E: ldarg.0
IL_003F: call static Verse.GraphicMeshSet
AlienRace.HarmonyPatches::GetHumanlikeHeadSetForPawnHelper(System.Object
lifestageFactor, Verse.Pawn pawn)
IL_0044: br => Label2
IL_0049: Label0
IL_0049: Label1
IL_0049: ldc.r4 1.5
IL_004E: box System.Single
IL_0053: ldarg.0
IL_0054: call static Verse.GraphicMeshSet
AlienRace.HarmonyPatches::GetHumanlikeHeadSetForPawnHelper(System.Object
lifestageFactor, Verse.Pawn pawn)
IL_0059: // end original
IL_0059: Label2
IL_0059: ret
DONE

### Patch: static Verse.GraphicMeshSet


Verse.HumanlikeMeshPoolUtility::GetHumanlikeHairSetForPawn(Verse.Pawn pawn)
### Replacement: static Verse.GraphicMeshSet
Verse.HumanlikeMeshPoolUtility::Verse.HumanlikeMeshPoolUtility.GetHumanlikeHairSetF
orPawn_Patch0(Verse.Pawn pawn)
IL_0000: Local var 0: UnityEngine.Vector2
IL_0000: // start original
IL_0000: ldarg.0
IL_0001: ldfld RimWorld.Pawn_StoryTracker Verse.Pawn::story
IL_0006: ldfld Verse.HeadTypeDef RimWorld.Pawn_StoryTracker::headType
IL_000B: ldfld UnityEngine.Vector2 Verse.HeadTypeDef::hairMeshSize
IL_0010: stloc.0
IL_0011: call static System.Boolean Verse.ModsConfig::get_BiotechActive()
IL_0016: brfalse => Label0
IL_001B: ldarg.0
IL_001C: ldfld Verse.Pawn_AgeTracker Verse.Pawn::ageTracker
IL_0021: callvirt RimWorld.LifeStageDef Verse.Pawn_AgeTracker::get_CurLifeStage()
IL_0026: ldflda System.Nullable`1<System.Single>
RimWorld.LifeStageDef::headSizeFactor
IL_002B: call System.Boolean System.Nullable`1<System.Single>::get_HasValue()
IL_0030: brfalse => Label1
IL_0035: ldloc.0
IL_0036: ldarg.0
IL_0037: ldfld Verse.Pawn_AgeTracker Verse.Pawn::ageTracker
IL_003C: callvirt RimWorld.LifeStageDef Verse.Pawn_AgeTracker::get_CurLifeStage()
IL_0041: ldflda System.Nullable`1<System.Single>
RimWorld.LifeStageDef::headSizeFactor
IL_0046: call System.Single System.Nullable`1<System.Single>::get_Value()
IL_004B: call static UnityEngine.Vector2
UnityEngine.Vector2::op_Multiply(UnityEngine.Vector2 a, System.Single d)
IL_0050: stloc.0
IL_0051: Label0
IL_0051: Label1
IL_0051: ldloc.0
IL_0052: ldarg.0
IL_0053: call static UnityEngine.Vector2
AlienRace.HarmonyPatches::GetHumanlikeHairSetForPawnHelper(UnityEngine.Vector2
headFactor, Verse.Pawn pawn)
IL_0058: stloc.0
IL_0059: Label0
IL_0059: Label1
IL_0059: ldloc.0
IL_005A: ldfld System.Single UnityEngine.Vector2::x
IL_005F: ldloc.0
IL_0060: ldfld System.Single UnityEngine.Vector2::y
IL_0065: call static Verse.GraphicMeshSet
Verse.MeshPool::GetMeshSetForWidth(System.Single width, System.Single height)
IL_006A: // end original
IL_006A: ret
DONE

### Patch: static Verse.GraphicMeshSet


Verse.HumanlikeMeshPoolUtility::GetHumanlikeBeardSetForPawn(Verse.Pawn pawn)
### Replacement: static Verse.GraphicMeshSet
Verse.HumanlikeMeshPoolUtility::Verse.HumanlikeMeshPoolUtility.GetHumanlikeBeardSet
ForPawn_Patch0(Verse.Pawn pawn)
IL_0000: Local var 0: UnityEngine.Vector2
IL_0000: // start original
IL_0000: ldarg.0
IL_0001: ldfld RimWorld.Pawn_StoryTracker Verse.Pawn::story
IL_0006: ldfld Verse.HeadTypeDef RimWorld.Pawn_StoryTracker::headType
IL_000B: ldfld UnityEngine.Vector2 Verse.HeadTypeDef::beardMeshSize
IL_0010: stloc.0
IL_0011: call static System.Boolean Verse.ModsConfig::get_BiotechActive()
IL_0016: brfalse => Label0
IL_001B: ldarg.0
IL_001C: ldfld Verse.Pawn_AgeTracker Verse.Pawn::ageTracker
IL_0021: callvirt RimWorld.LifeStageDef Verse.Pawn_AgeTracker::get_CurLifeStage()
IL_0026: ldflda System.Nullable`1<System.Single>
RimWorld.LifeStageDef::headSizeFactor
IL_002B: call System.Boolean System.Nullable`1<System.Single>::get_HasValue()
IL_0030: brfalse => Label1
IL_0035: ldloc.0
IL_0036: ldarg.0
IL_0037: ldfld Verse.Pawn_AgeTracker Verse.Pawn::ageTracker
IL_003C: callvirt RimWorld.LifeStageDef Verse.Pawn_AgeTracker::get_CurLifeStage()
IL_0041: ldflda System.Nullable`1<System.Single>
RimWorld.LifeStageDef::headSizeFactor
IL_0046: call System.Single System.Nullable`1<System.Single>::get_Value()
IL_004B: call static UnityEngine.Vector2
UnityEngine.Vector2::op_Multiply(UnityEngine.Vector2 a, System.Single d)
IL_0050: stloc.0
IL_0051: Label0
IL_0051: Label1
IL_0051: ldloc.0
IL_0052: ldarg.0
IL_0053: call static UnityEngine.Vector2
AlienRace.HarmonyPatches::GetHumanlikeHairSetForPawnHelper(UnityEngine.Vector2
headFactor, Verse.Pawn pawn)
IL_0058: stloc.0
IL_0059: Label0
IL_0059: Label1
IL_0059: ldloc.0
IL_005A: ldfld System.Single UnityEngine.Vector2::x
IL_005F: ldloc.0
IL_0060: ldfld System.Single UnityEngine.Vector2::y
IL_0065: call static Verse.GraphicMeshSet
Verse.MeshPool::GetMeshSetForWidth(System.Single width, System.Single height)
IL_006A: // end original
IL_006A: ret
DONE

### Patch: Verse.GraphicMeshSet Verse.PawnRenderer::GetBodyOverlayMeshSet()


### Replacement: static Verse.GraphicMeshSet
Verse.PawnRenderer::Verse.PawnRenderer.GetBodyOverlayMeshSet_Patch2(Verse.PawnRende
rer this)
IL_0000: Local var 0: RimWorld.BodyTypeDef
IL_0000: Local var 1: Verse.GraphicMeshSet
IL_0000: ldnull
IL_0001: stloc 1 (Verse.GraphicMeshSet)
IL_0005: // start original
IL_0005: ldarg.0
IL_0006: ldfld Verse.Pawn Verse.PawnRenderer::pawn
IL_000B: callvirt Verse.RaceProperties Verse.Pawn::get_RaceProps()
IL_0010: callvirt System.Boolean Verse.RaceProperties::get_Humanlike()
IL_0015: brtrue => Label0
IL_001A: ldarg.0
IL_001B: ldfld Verse.Pawn Verse.PawnRenderer::pawn
IL_0020: call static Verse.GraphicMeshSet
Verse.HumanlikeMeshPoolUtility::GetHumanlikeBodySetForPawn(Verse.Pawn pawn)
IL_0025: br => Label6
IL_002A: Label0
IL_002A: ldarg.0
IL_002B: ldfld Verse.Pawn Verse.PawnRenderer::pawn
IL_0030: ldfld RimWorld.Pawn_StoryTracker Verse.Pawn::story
IL_0035: ldfld RimWorld.BodyTypeDef RimWorld.Pawn_StoryTracker::bodyType
IL_003A: stloc.0
IL_003B: ldloc.0
IL_003C: ldsfld RimWorld.BodyTypeDef RimWorld.BodyTypeDefOf::Male
IL_0041: bne.un => Label1
IL_0046: ldsfld Verse.GraphicMeshSet Verse.MeshPool::humanlikeBodySet_Male
IL_004B: br => Label7
IL_0050: Label1
IL_0050: ldloc.0
IL_0051: ldsfld RimWorld.BodyTypeDef RimWorld.BodyTypeDefOf::Female
IL_0056: bne.un => Label2
IL_005B: ldsfld Verse.GraphicMeshSet Verse.MeshPool::humanlikeBodySet_Female
IL_0060: br => Label8
IL_0065: Label2
IL_0065: ldloc.0
IL_0066: ldsfld RimWorld.BodyTypeDef RimWorld.BodyTypeDefOf::Thin
IL_006B: bne.un => Label3
IL_0070: ldsfld Verse.GraphicMeshSet Verse.MeshPool::humanlikeBodySet_Thin
IL_0075: br => Label9
IL_007A: Label3
IL_007A: ldloc.0
IL_007B: ldsfld RimWorld.BodyTypeDef RimWorld.BodyTypeDefOf::Fat
IL_0080: bne.un => Label4
IL_0085: ldsfld Verse.GraphicMeshSet Verse.MeshPool::humanlikeBodySet_Fat
IL_008A: br => Label10
IL_008F: Label4
IL_008F: ldloc.0
IL_0090: ldsfld RimWorld.BodyTypeDef RimWorld.BodyTypeDefOf::Hulk
IL_0095: bne.un => Label5
IL_009A: ldsfld Verse.GraphicMeshSet Verse.MeshPool::humanlikeBodySet_Hulk
IL_009F: br => Label11
IL_00A4: Label5
IL_00A4: ldarg.0
IL_00A5: ldfld Verse.Pawn Verse.PawnRenderer::pawn
IL_00AA: call static Verse.GraphicMeshSet
Verse.HumanlikeMeshPoolUtility::GetHumanlikeBodySetForPawn(Verse.Pawn pawn)
IL_00AF: // end original
IL_00AF: Label6
IL_00AF: Label7
IL_00AF: Label8
IL_00AF: Label9
IL_00AF: Label10
IL_00AF: Label11
IL_00AF: stloc 1 (Verse.GraphicMeshSet)
IL_00B3: ldloca 1 (Verse.GraphicMeshSet)
IL_00B7: ldarg.0
IL_00B8: ldfld Verse.Pawn Verse.PawnRenderer::pawn
IL_00BD: call static System.Void
VanillaGenesExpanded.PawnRenderer_GetBodyOverlayMeshSet::Postfix(Verse.GraphicMeshS
et& __result, Verse.Pawn ___pawn)
IL_00C2: ldarg.0
IL_00C3: ldarg.0
IL_00C4: ldfld Verse.Pawn Verse.PawnRenderer::pawn
IL_00C9: ldloca 1 (Verse.GraphicMeshSet)
IL_00CD: call static System.Void
AlienRace.HarmonyPatches::GetBodyOverlayMeshSetPostfix(Verse.PawnRenderer
__instance, Verse.Pawn ___pawn, Verse.GraphicMeshSet& __result)
IL_00D2: ldloc 1 (Verse.GraphicMeshSet)
IL_00D6: ret
DONE

You might also like